SimGrid  3.13
Versatile Simulation of Distributed Systems
simgrid::surf::VMHL13Model Class Reference

#include <vm_hl13.hpp>

Inheritance diagram for simgrid::surf::VMHL13Model:
simgrid::surf::VMModel simgrid::surf::HostModel simgrid::surf::Model

Public Member Functions

 VMHL13Model ()
 
 ~VMHL13Model ()
 
VirtualMachinecreateVM (const char *name, sg_host_t host_PM) override
 Create a new VM. More...
 
double next_occuring_event (double now) override
 Share the resources between the actions. More...
 
void adjustWeightOfDummyCpuActions () override
 
void updateActionsState (double, double) override
 Update action to the current time. More...
 
- Public Member Functions inherited from simgrid::surf::VMModel
 VMModel ()
 
 ~VMModel ()
 
- Public Member Functions inherited from simgrid::surf::HostModel
 HostModel ()
 
 ~HostModel () override
 
HostImplcreateHost (const char *name, NetCard *net, Cpu *cpu)
 
virtual ActionexecuteParallelTask (int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double rate)
 
bool next_occuring_event_isIdempotent () override
 Returns whether this model have an idempotent shareResource() More...
 
- Public Member Functions inherited from simgrid::surf::Model
 Model ()
 
virtual ~Model ()
 
virtual ActionListgetReadyActionSet ()
 Get the set of actions in ready state. More...
 
virtual ActionListgetRunningActionSet ()
 Get the set of actions in running state. More...
 
virtual ActionListgetFailedActionSet ()
 Get the set of actions in failed state. More...
 
virtual ActionListgetDoneActionSet ()
 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))
 
virtual void updateActionsStateLazy (double now, double delta)
 
virtual void updateActionsStateFull (double now, double delta)
 

Additional Inherited Members

- Public Types inherited from simgrid::surf::VMModel
typedef boost::intrusive::member_hook< VirtualMachine, boost::intrusive::list_member_hook<>,&VirtualMachine::vm_hookVmOptions
 
typedef boost::intrusive::list< VirtualMachine, VmOptions, boost::intrusive::constant_time_size< false > > vm_list_t
 
- Static Public Attributes inherited from simgrid::surf::VMModel
static vm_list_t ws_vms
 
- Protected Attributes inherited from simgrid::surf::Model
ActionLmmListPtr modifiedSet_
 
lmm_system_t maxminSystem_ = nullptr
 
e_UM_t updateMechanism_ = UM_UNDEFINED
 
int selectiveUpdate_
 
xbt_heap_t actionHeap_
 

Constructor & Destructor Documentation

simgrid::surf::VMHL13Model::VMHL13Model ( )
simgrid::surf::VMHL13Model::~VMHL13Model ( )
inline

Member Function Documentation

VirtualMachine * simgrid::surf::VMHL13Model::createVM ( const char *  name,
sg_host_t  host_PM 
)
overridevirtual

Create a new VM.

Parameters
nameThe name of the new VM
host_PMThe real machine hosting the VM

Implements simgrid::surf::VMModel.

double simgrid::surf::VMHL13Model::next_occuring_event ( double  now)
overridevirtual

Share the resources between the actions.

Parameters
nowThe current time of the simulation
Returns
The delta of time till the next action will finish

Reimplemented from simgrid::surf::Model.

void simgrid::surf::VMHL13Model::adjustWeightOfDummyCpuActions ( )
inlineoverridevirtual

Reimplemented from simgrid::surf::VMModel.

void simgrid::surf::VMHL13Model::updateActionsState ( double  now,
double  delta 
)
overridevirtual

Update action to the current time.

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

Reimplemented from simgrid::surf::Model.


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