SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::surf::StorageModel Class Referenceabstract

Detailed Description

SURF storage model interface class.

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

#include <StorageImpl.hpp>

Inheritance diagram for simgrid::surf::StorageModel:
simgrid::surf::Model simgrid::surf::StorageN11Model

Public Member Functions

 StorageModel ()
 
 ~StorageModel ()
 
virtual StorageImplcreateStorage (std::string id, std::string type_id, std::string content_name, std::string attach)=0
 
- 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 void updateActionsStateLazy (double now, double delta)
 
virtual void updateActionsStateFull (double now, double delta)
 
virtual bool nextOccuringEventIsIdempotent ()
 Returns whether this model have an idempotent shareResource() More...
 

Public Attributes

std::vector< StorageImpl * > p_storageList
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ StorageModel()

simgrid::surf::StorageModel::StorageModel ( )

◆ ~StorageModel()

simgrid::surf::StorageModel::~StorageModel ( )

Member Function Documentation

◆ createStorage()

virtual StorageImpl* simgrid::surf::StorageModel::createStorage ( std::string  id,
std::string  type_id,
std::string  content_name,
std::string  attach 
)
pure virtual

Member Data Documentation

◆ p_storageList

std::vector<StorageImpl*> simgrid::surf::StorageModel::p_storageList

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