namespace s4u {
/**
- * @rst
+ * @beginrst
* A Link represents the network facilities between :cpp:class:`hosts <simgrid::s4u::Host>`.
* @endrst
*/
/** @brief Check if the Link is used (at least one flow uses the link) */
bool is_used() const;
+ /** @brief Check if the Link is shared (not a FATPIPE) */
+ bool is_shared() const;
+
void turn_on();
bool is_on() const;
void turn_off();
-
+ void seal();
/** Setup the profile with states events (ON or OFF). The profile must contain boolean values. */
void set_state_profile(kernel::profile::Profile* profile);
/** Setup the profile with bandwidth events (peak speed changes due to external load).
void set_latency_profile(kernel::profile::Profile* profile);
const char* get_property(const std::string& key) const;
- void set_property(const std::string& key, const std::string& value);
+ Link* set_property(const std::string& key, const std::string& value);
+ const std::unordered_map<std::string, std::string>* get_properties() const;
+ Link* set_properties(const std::unordered_map<std::string, std::string>& properties);
/* The signals */
/** @brief Callback signal fired when a new Link is created */