SimGrid
3.11
Versatile Simulation of Distributed Systems
|
SURF model interface class. More...
#include <surf_interface.hpp>
Public Member Functions | |
Model (const char *name) | |
Model constructor. More... | |
virtual | ~Model () |
Model destructor. | |
const char * | getName () |
Get the name of the current Model. More... | |
virtual ActionListPtr | getReadyActionSet () |
Get the set of actions in ready state. More... | |
virtual ActionListPtr | getRunningActionSet () |
Get the set of actions in running state. More... | |
virtual ActionListPtr | getFailedActionSet () |
Get the set of actions in failed state. More... | |
virtual ActionListPtr | getDoneActionSet () |
Get the set of actions in done state. More... | |
virtual ActionLmmListPtr | getModifiedSet () |
Get the set of modified actions. More... | |
lmm_system_t | getMaxminSystem () |
Get the maxmin system of the current Model. More... | |
e_UM_t | getUpdateMechanism () |
Get the update mechanism of the current Model. More... | |
xbt_heap_t | getActionHeap () |
Get Action heap. More... | |
virtual double | shareResources (double now) |
share the resources More... | |
virtual void | updateActionsState (double now, double delta) |
Update state of actions. More... | |
SURF model interface class.
A model is an object which handle the interactions between its Resources and its Actions
Model::Model | ( | const char * | name | ) |
Model constructor.
name | the name of the model |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
virtual |
share the resources
Share the resources between the actions
now | The current time of the simulation |
|
virtual |
Update state of actions.
Update action to the current time
now | The current time of the simulation |
delta | The delta of time since the last update |