SimGrid  3.14.159
Versatile Simulation of Distributed Systems
simgrid::surf::LinkNS3 Class Reference

#include <network_ns3.hpp>

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

Public Member Functions

 LinkNS3 (NetworkNS3Model *model, const char *name, double bandwidth, double latency)
 
 ~LinkNS3 ()
 
void apply_event (tmgr_trace_iterator_t event, double value) override
 Apply an event of external load event to that resource. More...
 
void setBandwidth (double value) override
 Update the bandwidth in bytes per second of current Link. More...
 
void setLatency (double value) override
 Update the latency in seconds of current Link. More...
 
void setBandwidthTrace (tmgr_trace_t trace) override
 
void setLatencyTrace (tmgr_trace_t trace) override
 
- 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 ()
 
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 ()
 
 ~PropertyHolder ()
 
const char * getProperty (const char *id)
 Return the property associated to the provided key (or nullptr 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
const lmm_constraint_t constraint_ = nullptr
 

Constructor & Destructor Documentation

◆ LinkNS3()

simgrid::surf::LinkNS3::LinkNS3 ( NetworkNS3Model model,
const char *  name,
double  bandwidth,
double  latency 
)
explicit

◆ ~LinkNS3()

simgrid::surf::LinkNS3::~LinkNS3 ( )
default

Member Function Documentation

◆ apply_event()

void simgrid::surf::LinkNS3::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.

◆ setBandwidth()

void simgrid::surf::LinkNS3::setBandwidth ( double  value)
inlineoverridevirtual

Update the bandwidth in bytes per second of current Link.

Implements simgrid::surf::Link.

◆ setLatency()

void simgrid::surf::LinkNS3::setLatency ( double  value)
inlineoverridevirtual

Update the latency in seconds of current Link.

Implements simgrid::surf::Link.

◆ setBandwidthTrace()

void simgrid::surf::LinkNS3::setBandwidthTrace ( tmgr_trace_t  trace)
overridevirtual

Reimplemented from simgrid::surf::Link.

◆ setLatencyTrace()

void simgrid::surf::LinkNS3::setLatencyTrace ( tmgr_trace_t  trace)
overridevirtual

Reimplemented from simgrid::surf::Link.


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