SimGrid
3.13
Versatile Simulation of Distributed Systems
|
#include <cpu_ti.hpp>
Public Member Functions | |
CpuTiModel () | |
~CpuTiModel () | |
Cpu * | createCpu (simgrid::s4u::Host *host, xbt_dynar_t speedPerPstate, int core) override |
Create a Cpu. More... | |
double | next_occuring_event (double now) override |
Share the resources between the actions. More... | |
void | updateActionsState (double now, double delta) override |
Update action to the current time. More... | |
![]() | |
CpuModel () | |
void | updateActionsStateLazy (double now, double delta) |
void | updateActionsStateFull (double now, double delta) |
bool | next_occuring_event_isIdempotent () |
Returns whether this model have an idempotent shareResource() More... | |
![]() | |
Model () | |
virtual | ~Model () |
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 | next_occuring_event_lazy (double now) |
virtual double | next_occuring_event_full (double now) |
double | shareResourcesMaxMin (ActionList *running_actions, lmm_system_t sys, void(*solve)(lmm_system_t)) |
Public Attributes | |
ActionList * | runningActionSetThatDoesNotNeedBeingChecked_ |
CpuTiList * | modifiedCpu_ |
xbt_heap_t | tiActionHeap_ |
Protected Member Functions | |
void | NotifyResourceTurnedOn (simgrid::surf::Resource *) |
void | NotifyResourceTurnedOff (simgrid::surf::Resource *) |
void | NotifyActionCancel (Action *) |
void | NotifyActionResume (Action *) |
void | NotifyActionSuspend (Action *) |
Additional Inherited Members | |
![]() | |
ActionLmmListPtr | modifiedSet_ |
lmm_system_t | maxminSystem_ = nullptr |
e_UM_t | updateMechanism_ = UM_UNDEFINED |
int | selectiveUpdate_ |
xbt_heap_t | actionHeap_ |
simgrid::surf::CpuTiModel::CpuTiModel | ( | ) |
simgrid::surf::CpuTiModel::~CpuTiModel | ( | ) |
|
overridevirtual |
Create a Cpu.
host | The host that will have this CPU |
speedPerPstate | Processor speed (in Flops) of each pstate. This ignores any potential external load coming from a trace. |
core | The number of core of this Cpu |
Implements simgrid::surf::CpuModel.
|
overridevirtual |
Share the resources between the actions.
now | The current time of the simulation |
Reimplemented from simgrid::surf::Model.
|
overridevirtual |
Update action to the current time.
now | The current time of the simulation |
delta | The delta of time since the last update |
Reimplemented from simgrid::surf::Model.
|
inlineprotected |
|
inlineprotected |
ActionList* simgrid::surf::CpuTiModel::runningActionSetThatDoesNotNeedBeingChecked_ |
CpuTiList* simgrid::surf::CpuTiModel::modifiedCpu_ |
xbt_heap_t simgrid::surf::CpuTiModel::tiActionHeap_ |