|
| Link (NetworkModel *model, const char *name, xbt_dict_t props) |
| Link constructor. More...
|
|
| Link (NetworkModel *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint, tmgr_history_t history, tmgr_trace_t state_trace) |
| Link constructor. More...
|
|
| ~Link () |
| Link destructor.
|
|
virtual double | getBandwidth () |
| Get the bandwidth in bytes per second of current Link.
|
|
virtual void | updateBandwidth (double value, double date=surf_get_clock())=0 |
| Update the bandwidth in bytes per second of current Link.
|
|
virtual double | getLatency () |
| Get the latency in seconds of current Link.
|
|
virtual void | updateLatency (double value, double date=surf_get_clock())=0 |
| Update the latency in seconds of current Link.
|
|
virtual bool | isShared () |
| Check if the Link is shared. More...
|
|
bool | isUsed () |
| Check if the Link is used.
|
|
void | setState (e_surf_resource_state_t state) |
| Set the state of the current Resource. More...
|
|
| 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...
|
|
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...
|
|
lmm_constraint_t | getConstraint () |
| Get the lmm constraint associated to this Resource if it is part of a LMM component. More...
|
|
SURF network link interface class.
A Link represents the link between two hosts