SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::surf::CpuCas01Model Class Reference

#include <cpu_cas01.hpp>

Inheritance diagram for simgrid::surf::CpuCas01Model:
simgrid::surf::CpuModel simgrid::surf::Model

Public Member Functions

 CpuCas01Model ()
 
 ~CpuCas01Model () override
 
CpucreateCpu (simgrid::s4u::Host *host, std::vector< double > *speedPerPstate, int core) override
 Create a Cpu. More...
 
- Public Member Functions inherited from simgrid::surf::CpuModel
void updateActionsStateLazy (double now, double delta) override
 
void updateActionsStateFull (double now, double delta) override
 
- Public Member Functions inherited from simgrid::surf::Model
 Model ()
 
virtual ~Model ()
 
virtual ActionListgetReadyActionSet () const
 Get the set of actions in ready state. More...
 
virtual ActionListgetRunningActionSet () const
 Get the set of actions in running state. More...
 
virtual ActionListgetFailedActionSet () const
 Get the set of actions in failed state. More...
 
virtual ActionListgetDoneActionSet () const
 Get the set of actions in done state. More...
 
virtual ActionLmmListPtr getModifiedSet () const
 Get the set of modified actions. More...
 
lmm_system_t getMaxminSystem () const
 Get the maxmin system of the current Model. More...
 
e_UM_t getUpdateMechanism () const
 Get the update mechanism of the current Model. More...
 
void setUpdateMechanism (e_UM_t mechanism)
 
heap_typegetActionHeap ()
 Get Action heap. More...
 
double actionHeapTopDate () const
 
ActionactionHeapPop ()
 
bool actionHeapIsEmpty () const
 
virtual double nextOccuringEvent (double now)
 Share the resources between the actions. More...
 
virtual double nextOccuringEventLazy (double now)
 
virtual double nextOccuringEventFull (double now)
 
virtual void updateActionsState (double now, double delta)
 Update action to the current time. More...
 
virtual bool nextOccuringEventIsIdempotent ()
 Returns whether this model have an idempotent shareResource() More...
 

Public Attributes

ActionList p_cpuRunningActionSetThatDoesNotNeedBeingChecked
 

Additional Inherited Members

- Protected Attributes inherited from simgrid::surf::Model
ActionLmmListPtr modifiedSet_
 
lmm_system_t maxminSystem_ = nullptr
 
bool selectiveUpdate_
 

Constructor & Destructor Documentation

◆ CpuCas01Model()

simgrid::surf::CpuCas01Model::CpuCas01Model ( )

◆ ~CpuCas01Model()

simgrid::surf::CpuCas01Model::~CpuCas01Model ( )
override

Member Function Documentation

◆ createCpu()

Cpu * simgrid::surf::CpuCas01Model::createCpu ( simgrid::s4u::Host host,
std::vector< double > *  speedPerPstate,
int  core 
)
overridevirtual

Create a Cpu.

Parameters
hostThe host that will have this CPU
speedPerPstateProcessor speed (in Flops) of each pstate. This ignores any potential external load coming from a trace.
coreThe number of core of this Cpu

Implements simgrid::surf::CpuModel.

Member Data Documentation

◆ p_cpuRunningActionSetThatDoesNotNeedBeingChecked

ActionList simgrid::surf::CpuCas01Model::p_cpuRunningActionSetThatDoesNotNeedBeingChecked

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