SimGrid  3.12
Versatile Simulation of Distributed Systems
CpuModel Class Referenceabstract

SURF cpu model interface class. More...

#include <cpu_interface.hpp>

Inheritance diagram for CpuModel:
Model

Public Member Functions

 CpuModel ()
 Constructor.
 
virtual CpucreateCpu (const char *name, xbt_dynar_t power_peak, int pstate, double power_scale, tmgr_trace_t power_trace, int core, e_surf_resource_state_t state_initial, tmgr_trace_t state_trace, xbt_dict_t cpu_properties)=0
 Create a Cpu. More...
 
bool shareResourcesIsIdempotent ()
 Returns whether this model have an idempotent shareResource() More...
 
- Public Member Functions inherited from Model
 Model ()
 Constructor.
 
virtual ~Model ()
 Destructor.
 
virtual ActionList * getReadyActionSet ()
 Get the set of actions in ready state. More...
 
virtual ActionList * getRunningActionSet ()
 Get the set of actions in running state. More...
 
virtual ActionList * getFailedActionSet ()
 Get the set of actions in failed state. More...
 
virtual ActionList * 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 cpu model interface class.

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

Member Function Documentation

virtual Cpu* CpuModel::createCpu ( const char *  name,
xbt_dynar_t  power_peak,
int  pstate,
double  power_scale,
tmgr_trace_t  power_trace,
int  core,
e_surf_resource_state_t  state_initial,
tmgr_trace_t  state_trace,
xbt_dict_t  cpu_properties 
)
pure virtual

Create a Cpu.

Parameters
nameThe name of the Cpu
power_peakThe power peak of this Cpu
pstate[TODO]
power_scaleThe power scale of this Cpu
power_trace[TODO]
coreThe number of core of this Cpu
state_initial[TODO]
state_trace[TODO]
cpu_propertiesDictionary of properties associated to this Cpu
bool CpuModel::shareResourcesIsIdempotent ( )
inlinevirtual

Returns whether this model have an idempotent shareResource()

The only model that is not is NS3: computing the next timestamp moves the model up to that point, so we need to call it only when the next timestamp of other sources is computed.

Implements Model.


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