.. autodoxymethod:: sg_link_latency(const_sg_link_t link)
.. autodoxymethod:: sg_link_name(const_sg_link_t link)
+Modifying characteristics
+-------------------------
+
+.. tabs::
+
+ .. group-tab:: C++
+
+ .. autodoxymethod:: simgrid::s4u::Link::set_bandwidth(double value)
+ .. autodoxymethod:: simgrid::s4u::Link::set_latency(double value)
+
User data and properties
------------------------
.. group-tab:: C++
- .. autodoxymethod:: simgrid::s4u::Link::set_host_wifi_rate(s4u::Host* host, int level)
+ .. autodoxymethod:: simgrid::s4u::Link::set_host_wifi_rate(const s4u::Host* host, int level) const
Signals
-------
- **Specify the stack size to use**
The stack size can be specified by default on the command line,
- globally by changing the configuration with :cpp:func:`simgrid::s4u::Engine::set_config(std::string)`,
+ globally by changing the configuration with :cpp:func:`simgrid::s4u::Engine::set_config`,
or for a specific actor using :cpp:func:`simgrid::s4u::Actor::set_stacksize` before its start.
.. tabs::
/** @brief Retrieves the name of that link as a C string */
const char* get_cname() const;
- /** @brief Get the bandwidth in bytes per second of current Link */
+ /** Get the bandwidth of the current Link (in bytes per second) */
double get_bandwidth() const;
+ /** Set the bandwidth of the current Link (in bytes per second) */
void set_bandwidth(double value);
- /** @brief Get the latency in seconds of current Link */
+ /** Get the latency of the current Link (in seconds) */
double get_latency() const;
+ /** Set the latency of the current Link (in seconds) */
void set_latency(double value);
/** @brief Describes how the link is shared between flows */