SimGrid
3.16
Versatile Simulation of Distributed Systems
|
#include <network_ns3.hpp>
Public Member Functions | |
LinkNS3 (NetworkNS3Model *model, const char *name, double bandwidth, double latency) | |
~LinkNS3 () | |
void | apply_event (tmgr_trace_event_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 |
![]() | |
void | destroy () |
Fire the required callbacks and destroy the object. More... | |
virtual double | bandwidth () |
Get the bandwidth in bytes per second of current Link. More... | |
virtual double | latency () |
Get the latency in seconds of current Link. More... | |
virtual int | sharingPolicy () |
The sharing policy is alink e_surf_link_sharing_policy_t::EType} (0: FATPIPE, 1: SHARED, 2: FULLDUPLEX) More... | |
bool | isUsed () override |
Check if the Link is used. More... | |
void | turnOn () override |
Turn on the current Resource. More... | |
void | turnOff () override |
Turn off the current Resource. More... | |
virtual void | setStateTrace (tmgr_trace_t trace) |
void * | getData () |
void | setData (void *d) |
![]() | |
Resource (Model *model, const char *name, lmm_constraint_t constraint) | |
Constructor of LMM Resources. More... | |
virtual | ~Resource () |
Model * | model () 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... | |
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... | |
![]() | |
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 | |
![]() | |
static LinkImpl * | byName (const char *name) |
static int | linksCount () |
Returns the amount of links in the platform. More... | |
static LinkImpl ** | linksList () |
Returns a list of all existing links. More... | |
static void | linksExit () |
destructor of the static data More... | |
![]() | |
s4u::Link | piface_ |
Public interface. More... | |
tmgr_trace_event_t | stateEvent_ = nullptr |
s_surf_metric_t | latency_ = {1.0, 0, nullptr} |
s_surf_metric_t | bandwidth_ = {1.0, 0, nullptr} |
![]() | |
LinkImpl (simgrid::surf::NetworkModel *model, const char *name, lmm_constraint_t constraint) | |
~LinkImpl () override | |
use destroy() instead of this destructor More... | |
![]() | |
const lmm_constraint_t | constraint_ = nullptr |
|
explicit |
|
default |
|
overridevirtual |
Apply an event of external load event to that resource.
event | What happened |
value | [TODO] |
Implements simgrid::surf::Resource.
|
inlineoverridevirtual |
Update the bandwidth in bytes per second of current Link.
Implements simgrid::surf::LinkImpl.
|
inlineoverridevirtual |
Update the latency in seconds of current Link.
Implements simgrid::surf::LinkImpl.
|
overridevirtual |
Reimplemented from simgrid::surf::LinkImpl.
|
overridevirtual |
Reimplemented from simgrid::surf::LinkImpl.