|
SimGrid
3.18
Versatile Simulation of Distributed Systems
|
Public Member Functions | |
| MockedResource () | |
| void | apply_event (tmgr_trace_event_t event, double value) |
| Apply an event of external load event to that resource. More... | |
| bool | isUsed () |
| Check if the current Resource is used (if it currently serves an action) More... | |
Public Member Functions inherited from simgrid::surf::Resource | |
| Resource (Model *model, const std::string &name, lmm_constraint_t constraint) | |
| Constructor of LMM Resources. More... | |
| virtual | ~Resource () |
| Model * | model () const |
| Get the Model of the current Resource. More... | |
| const std::string & | getName () const |
| Get the name of the current Resource. More... | |
| const char * | getCname () const |
| Get the name of the current Resource. More... | |
| bool | operator== (const Resource &other) const |
| virtual double | getLoad () |
| returns the current load (in flops per second, byte per second or similar) More... | |
| virtual bool | isOn () const |
| Check if the current Resource is active. More... | |
| virtual bool | isOff () const |
| Check if the current Resource is shut down. More... | |
| virtual void | turnOn () |
| Turn on the current Resource. More... | |
| virtual void | turnOff () |
| Turn off the current Resource. More... | |
| lmm_constraint_t | constraint () const |
| Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) More... | |
Additional Inherited Members | |
Protected Attributes inherited from simgrid::surf::Resource | |
| const lmm_constraint_t | constraint_ = nullptr |
|
inlineexplicit |
|
inlinevirtual |
Apply an event of external load event to that resource.
| event | What happened |
| value | [TODO] |
Implements simgrid::surf::Resource.
|
inlinevirtual |
Check if the current Resource is used (if it currently serves an action)
Implements simgrid::surf::Resource.