A Link represents the network facilities between hosts.
#include <Link.hpp>
Inherits simgrid::xbt::Extendable< Link >.
◆ SharingPolicy
Enumerator |
---|
SPLITDUPLEX | |
SHARED | |
FATPIPE | |
◆ get_impl()
kernel::resource::LinkImpl* simgrid::s4u::Link::get_impl |
( |
| ) |
|
|
inline |
◆ by_name()
static Link* simgrid::s4u::Link::by_name |
( |
std::string |
name | ) |
|
|
static |
Retrieve a link from its name.
◆ by_name_or_null()
static Link* simgrid::s4u::Link::by_name_or_null |
( |
std::string |
name | ) |
|
|
static |
◆ get_name()
const std::string& simgrid::s4u::Link::get_name |
( |
| ) |
const |
Retrieves the name of that link as a C++ string.
◆ get_cname()
const char* simgrid::s4u::Link::get_cname |
( |
| ) |
const |
Retrieves the name of that link as a C string.
◆ get_bandwidth()
double simgrid::s4u::Link::get_bandwidth |
( |
| ) |
|
Get the bandwidth in bytes per second of current Link.
◆ get_latency()
double simgrid::s4u::Link::get_latency |
( |
| ) |
|
Get the latency in seconds of current Link.
◆ get_sharing_policy()
Describes how the link is shared between flows.
◆ get_usage()
double simgrid::s4u::Link::get_usage |
( |
| ) |
|
Returns the current load (in flops per second)
◆ is_used()
bool simgrid::s4u::Link::is_used |
( |
| ) |
|
Check if the Link is used (at least one flow uses the link)
◆ turn_on()
void simgrid::s4u::Link::turn_on |
( |
| ) |
|
◆ turn_off()
void simgrid::s4u::Link::turn_off |
( |
| ) |
|
◆ get_data()
void* simgrid::s4u::Link::get_data |
( |
| ) |
|
◆ set_data()
void simgrid::s4u::Link::set_data |
( |
void * |
d | ) |
|
Should be used only from the C interface.
Prefer extensions in C++
◆ set_state_trace()
void simgrid::s4u::Link::set_state_trace |
( |
tmgr_trace_t |
trace | ) |
|
◆ set_bandwidth_trace()
void simgrid::s4u::Link::set_bandwidth_trace |
( |
tmgr_trace_t |
trace | ) |
|
◆ set_latency_trace()
void simgrid::s4u::Link::set_latency_trace |
( |
tmgr_trace_t |
trace | ) |
|
◆ get_property()
const char* simgrid::s4u::Link::get_property |
( |
std::string |
key | ) |
|
◆ set_property()
void simgrid::s4u::Link::set_property |
( |
std::string |
key, |
|
|
std::string |
value |
|
) |
| |
◆ byName()
static Link* simgrid::s4u::Link::byName |
( |
const char * |
name | ) |
|
|
inlinestatic |
◆ getName()
const std::string& simgrid::s4u::Link::getName |
( |
| ) |
const |
|
inline |
◆ getCname()
const char* simgrid::s4u::Link::getCname |
( |
| ) |
const |
|
inline |
◆ sharingPolicy()
◆ getUsage()
double simgrid::s4u::Link::getUsage |
( |
| ) |
|
|
inline |
◆ isUsed()
bool simgrid::s4u::Link::isUsed |
( |
| ) |
|
|
inline |
◆ bandwidth()
double simgrid::s4u::Link::bandwidth |
( |
| ) |
|
|
inline |
◆ latency()
double simgrid::s4u::Link::latency |
( |
| ) |
|
|
inline |
◆ turnOn()
void simgrid::s4u::Link::turnOn |
( |
| ) |
|
|
inline |
◆ turnOff()
void simgrid::s4u::Link::turnOff |
( |
| ) |
|
|
inline |
◆ getProperty()
const char* simgrid::s4u::Link::getProperty |
( |
const char * |
key | ) |
|
|
inline |
◆ setProperty()
void simgrid::s4u::Link::setProperty |
( |
std::string |
key, |
|
|
std::string |
value |
|
) |
| |
|
inline |
◆ getData()
void* simgrid::s4u::Link::getData |
( |
| ) |
|
|
inline |
◆ setData()
void simgrid::s4u::Link::setData |
( |
void * |
d | ) |
|
|
inline |
◆ setStateTrace()
void simgrid::s4u::Link::setStateTrace |
( |
tmgr_trace_t |
trace | ) |
|
|
inline |
◆ setBandwidthTrace()
void simgrid::s4u::Link::setBandwidthTrace |
( |
tmgr_trace_t |
trace | ) |
|
|
inline |
◆ setLatencyTrace()
void simgrid::s4u::Link::setLatencyTrace |
( |
tmgr_trace_t |
trace | ) |
|
|
inline |
◆ on_creation
Callback signal fired when a new Link is created.
◆ on_destruction
Callback signal fired when a Link is destroyed.
◆ on_state_change
Callback signal fired when the state of a Link changes (when it is turned on or off)
◆ on_bandwidth_change
Callback signal fired when the bandwidth of a Link changes.
◆ on_communicate
Callback signal fired when a communication starts.
◆ on_communication_state_change
Callback signal fired when a communication changes it state (ready/done/cancel)
The documentation for this class was generated from the following file: