SimGrid  3.11
Versatile Simulation of Distributed Systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Model Class Referenceabstract

SURF model interface class. More...

#include <surf_interface.hpp>

Inheritance diagram for Model:
CpuModel NetworkModel StorageModel WorkstationModel WorkstationVMModel

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...
 

Detailed Description

SURF model interface class.

A model is an object which handle the interactions between its Resources and its Actions

Constructor & Destructor Documentation

Model::Model ( const char *  name)

Model constructor.

Parameters
namethe name of the model

Member Function Documentation

const char* Model::getName ( )
inline

Get the name of the current Model.

Returns
The name of the current Model
virtual ActionListPtr Model::getReadyActionSet ( )
inlinevirtual

Get the set of actions in ready state.

Returns
The set of actions in ready state
virtual ActionListPtr Model::getRunningActionSet ( )
inlinevirtual

Get the set of actions in running state.

Returns
The set of actions in running state
virtual ActionListPtr Model::getFailedActionSet ( )
inlinevirtual

Get the set of actions in failed state.

Returns
The set of actions in failed state
virtual ActionListPtr Model::getDoneActionSet ( )
inlinevirtual

Get the set of actions in done state.

Returns
The set of actions in done state
virtual ActionLmmListPtr Model::getModifiedSet ( )
inlinevirtual

Get the set of modified actions.

Returns
The set of modified actions
lmm_system_t Model::getMaxminSystem ( )
inline

Get the maxmin system of the current Model.

Returns
The maxmin system of the current Model
e_UM_t Model::getUpdateMechanism ( )
inline

Get the update mechanism of the current Model.

See also
e_UM_t
Returns
[description]
xbt_heap_t Model::getActionHeap ( )
inline

Get Action heap.

[TODO]

Returns
The Action heap
double Model::shareResources ( double  now)
virtual

share the resources

Share the resources between the actions

Parameters
nowThe current time of the simulation
Returns
The delta of time till the next action will finish
void Model::updateActionsState ( double  now,
double  delta 
)
virtual

Update state of actions.

Update action to the current time

Parameters
nowThe current time of the simulation
deltaThe delta of time since the last update

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