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

#include <ptask_L07.hpp>

Inheritance diagram for simgrid::surf::LinkL07:
simgrid::surf::Link simgrid::surf::Resource simgrid::surf::PropertyHolder

Public Member Functions

 LinkL07 (NetworkL07Model *model, const char *name, xbt_dict_t props, double bandwidth, double latency, e_surf_link_sharing_policy_t policy)
 
 ~LinkL07 ()
 
bool isUsed () override
 Check if the Link is used. More...
 
void apply_event (tmgr_trace_iterator_t event, double value) override
 Apply an event of external load event to that resource. More...
 
void updateBandwidth (double value) override
 Update the bandwidth in bytes per second of current Link. More...
 
void updateLatency (double value) override
 Update the latency in seconds of current Link. More...
 
- Public Member Functions inherited from simgrid::surf::Resource
 Resource (Model *model, const char *name)
 Constructor of non-LMM Resources. More...
 
 Resource (Model *model, const char *name, lmm_constraint_t constraint)
 Constructor of LMM Resources. More...
 
virtual ~Resource ()
 
ModelgetModel () const
 Get the Model of the current Resource. More...
 
const char * getName () 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...
 
lmm_constraint_t getConstraint () const
 Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) More...
 
- Public Member Functions inherited from simgrid::surf::PropertyHolder
 PropertyHolder (xbt_dict_t props)
 
 ~PropertyHolder ()
 
const char * getProperty (const char *id)
 Return the property associated to the provided key (or NULL if not existing) More...
 
void setProperty (const char *id, const char *value)
 Change the value of a given key in the property set. More...
 
xbt_dict_t getProperties ()
 Return the whole set of properties. More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

simgrid::surf::LinkL07::LinkL07 ( NetworkL07Model model,
const char *  name,
xbt_dict_t  props,
double  bandwidth,
double  latency,
e_surf_link_sharing_policy_t  policy 
)
simgrid::surf::LinkL07::~LinkL07 ( )
inline

Member Function Documentation

bool simgrid::surf::LinkL07::isUsed ( )
overridevirtual

Check if the Link is used.

Reimplemented from simgrid::surf::Link.

void simgrid::surf::LinkL07::apply_event ( tmgr_trace_iterator_t  event,
double  value 
)
overridevirtual

Apply an event of external load event to that resource.

Parameters
eventWhat happened
value[TODO]

Implements simgrid::surf::Resource.

void simgrid::surf::LinkL07::updateBandwidth ( double  value)
overridevirtual

Update the bandwidth in bytes per second of current Link.

Implements simgrid::surf::Link.

void simgrid::surf::LinkL07::updateLatency ( double  value)
overridevirtual

Update the latency in seconds of current Link.

Implements simgrid::surf::Link.


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