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

SURF storage model interface class. More...

#include <storage_interface.hpp>

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

Public Member Functions

 StorageModel ()
 
 ~StorageModel ()
 
virtual StoragecreateStorage (const char *id, const char *type_id, const char *content_name, const char *content_type, xbt_dict_t properties, const char *attach)=0
 Create a Storage. More...
 
bool next_occuring_event_isIdempotent ()
 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 (double now)
 Share the resources between the actions. 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 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)
 

Public Attributes

xbt_dynar_t p_storageList
 

Additional Inherited Members

- 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_
 

Detailed Description

SURF storage model interface class.

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

Constructor & Destructor Documentation

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

Member Function Documentation

virtual Storage* simgrid::surf::StorageModel::createStorage ( const char *  id,
const char *  type_id,
const char *  content_name,
const char *  content_type,
xbt_dict_t  properties,
const char *  attach 
)
pure virtual

Create a Storage.

Parameters
id[description]
type_id[description]
content_name[description]
content_type[description]
properties[description]
attach[description]
Returns
The created Storage

Implemented in simgrid::surf::StorageN11Model.

bool simgrid::surf::StorageModel::next_occuring_event_isIdempotent ( )
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 simgrid::surf::Model.

Member Data Documentation

xbt_dynar_t simgrid::surf::StorageModel::p_storageList

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