|
| Resource () |
| Resource constructor.
|
|
| Resource (Model *model, const char *name, xbt_dict_t props) |
| Resource constructor. More...
|
|
| Resource (Model *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint) |
| Resource constructor. More...
|
|
| Resource (Model *model, const char *name, xbt_dict_t props, e_surf_resource_state_t stateInit) |
| Resource constructor. More...
|
|
virtual | ~Resource () |
| Resource destructor.
|
|
Model * | getModel () |
| Get the Model of the current Resource. More...
|
|
const char * | getName () |
| Get the name of the current Resource. More...
|
|
virtual xbt_dict_t | getProperties () |
| Get the properties of the current Resource. More...
|
|
virtual void | updateState (tmgr_trace_event_t event_type, double value, double date)=0 |
| Update the state of the current Resource. More...
|
|
virtual bool | isUsed ()=0 |
| Check if the current Resource is used. More...
|
|
bool | isOn () |
| Check if the current Resource is active. More...
|
|
void | turnOn () |
| Turn on the current Resource.
|
|
void | turnOff () |
| Turn off the current Resource.
|
|
virtual e_surf_resource_state_t | getState () |
| Get the state of the current Resource. More...
|
|
virtual void | setState (e_surf_resource_state_t state) |
| Set the state of the current Resource. More...
|
|
lmm_constraint_t | getConstraint () |
| Get the lmm constraint associated to this Resource if it is part of a LMM component. More...
|
|
SURF resource interface class.
A resource represent an element of a component (e.g.: a link for the network)