SimGrid  3.16
Versatile Simulation of Distributed Systems
MockedResource Class Reference
Inheritance diagram for MockedResource:
simgrid::surf::Resource

Public Member Functions

 MockedResource ()
 
void apply_event (tmgr_trace_event_t event, double value)
 Apply an event of external load event to that resource. More...
 
bool isUsed ()
 Check if the current Resource is used (if it currently serves an action) More...
 
- Public Member Functions inherited from simgrid::surf::Resource
 Resource (Model *model, const char *name, lmm_constraint_t constraint)
 Constructor of LMM Resources. More...
 
virtual ~Resource ()
 
Modelmodel () const
 Get the Model of the current Resource. More...
 
const char * cname () const
 Get the name of the current Resource. More...
 
bool operator== (const Resource &other) const
 
virtual bool isOn () const
 Check if the current Resource is active. More...
 
virtual bool isOff () const
 Check if the current Resource is shut down. More...
 
virtual void turnOn ()
 Turn on the current Resource. More...
 
virtual void turnOff ()
 Turn off the current Resource. More...
 
lmm_constraint_t constraint () const
 Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) More...
 

Additional Inherited Members

- Protected Attributes inherited from simgrid::surf::Resource
const lmm_constraint_t constraint_ = nullptr
 

Constructor & Destructor Documentation

◆ MockedResource()

MockedResource::MockedResource ( )
inlineexplicit

Member Function Documentation

◆ apply_event()

void MockedResource::apply_event ( tmgr_trace_event_t  event,
double  value 
)
inlinevirtual

Apply an event of external load event to that resource.

Parameters
eventWhat happened
value[TODO]

Implements simgrid::surf::Resource.

◆ isUsed()

bool MockedResource::isUsed ( )
inlinevirtual

Check if the current Resource is used (if it currently serves an action)

Implements simgrid::surf::Resource.


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