SimGrid  3.11
Versatile Simulation of Distributed Systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
StorageAction Class Reference

SURF storage action interface class. More...

#include <storage_interface.hpp>

Inheritance diagram for StorageAction:
Action

Public Member Functions

 StorageAction (ModelPtr model, double cost, bool failed, StoragePtr storage, e_surf_action_storage_type_t type)
 StorageAction constructor. More...
 
 StorageAction (ModelPtr model, double cost, bool failed, lmm_variable_t var, StoragePtr storage, e_surf_action_storage_type_t type)
 StorageAction constructor. More...
 
void setState (e_surf_action_state_t state)
 Set the state of the current Action. More...
 
- Public Member Functions inherited from Action
 Action (ModelPtr model, double cost, bool failed)
 Action constructor. More...
 
 Action (ModelPtr model, double cost, bool failed, lmm_variable_t var)
 Action constructor. More...
 
virtual ~Action ()
 Action destructor.
 
void finish ()
 Finish the action.
 
e_surf_action_state_t getState ()
 Get the state of the current Action. More...
 
double getBound ()
 Get the bound of the current Action. More...
 
void setBound (double bound)
 Set the bound of the current Action. More...
 
double getStartTime ()
 Get the start time of the current action. More...
 
double getFinishTime ()
 Get the finish time of the current action. More...
 
void * getData ()
 Get the data associated to the current action. More...
 
void setData (void *data)
 Set the data associated to the current action. More...
 
double getMaxDuration ()
 Get the maximum duration of the current action. More...
 
char * getCategory ()
 Get the category associated to the current action. More...
 
double getCost ()
 Get the cost of the current action. More...
 
void setCost (double cost)
 Set the cost of the current action. More...
 
void updateMaxDuration (double delta)
 Update the maximum duration of the current action. More...
 
void updateRemains (double delta)
 Update the remaining time of the current action. More...
 
void setRemains (double value)
 Set the remaining time of the current action. More...
 
void setFinishTime (double value)
 Set the finish time of the current action. More...
 
void ref ()
 Add a reference to the current action.
 
virtual int unref ()
 Remove a reference to the current action. More...
 
virtual void cancel ()
 Cancel the current Action if running.
 
virtual void recycle ()
 Recycle an Action.
 
virtual void suspend ()
 Suspend the current Action.
 
virtual void resume ()
 Resume the current Action.
 
virtual bool isSuspended ()
 Check if the current action is running. More...
 
virtual void setMaxDuration (double duration)
 Set the maximum duration of the current Action. More...
 
virtual void setPriority (double priority)
 Set the priority of the current Action. More...
 
void setCategory (const char *category)
 Set the category of the current Action. More...
 
virtual double getRemains ()
 Get the remaining time of the current action after updating the resource. More...
 
double getRemainsNoUpdate ()
 Get the remaining time of the current action without updating the resource. More...
 
double getPriority ()
 Get the priority of the current Action. More...
 
ActionListPtr getStateSet ()
 Get the state set in which the action is. More...
 

Additional Inherited Members

- Protected Attributes inherited from Action
double m_priority
 
double m_remains
 
double m_finish
 

Detailed Description

SURF storage action interface class.

Constructor & Destructor Documentation

StorageAction::StorageAction ( ModelPtr  model,
double  cost,
bool  failed,
StoragePtr  storage,
e_surf_action_storage_type_t  type 
)

StorageAction constructor.

Parameters
modelThe StorageModel associated to this StorageAction
costThe cost of this NetworkAction in [TODO]
failed[description]
storageThe Storage associated to this StorageAction
type[description]
StorageAction::StorageAction ( ModelPtr  model,
double  cost,
bool  failed,
lmm_variable_t  var,
StoragePtr  storage,
e_surf_action_storage_type_t  type 
)

StorageAction constructor.

Parameters
modelThe StorageModel associated to this StorageAction
costThe cost of this StorageAction in [TODO]
failed[description]
varThe lmm variable associated to this StorageAction if it is part of a LMM component
storageThe Storage associated to this StorageAction
type[description]

Member Function Documentation

void StorageAction::setState ( e_surf_action_state_t  state)
virtual

Set the state of the current Action.

Parameters
stateThe new state of the current Action

Reimplemented from Action.


The documentation for this class was generated from the following files: