]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/s4u/Link.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add wrappers with scalars on the user side
[simgrid.git] / include / simgrid / s4u / Link.hpp
index 05808a12f9d9afe89ef2b962fe51b27d2a5fd6c5..d15da44444581e3512395e531890d2d10e858476 100644 (file)
@@ -64,10 +64,15 @@ public:
    * @param value New latency value (in s)
    */
   Link* set_latency(double value);
-  /** @brief Set latency (string version) */
+  /**
+   * @brief Set latency (string version)
+   *
+   * @throw std::invalid_argument if latency format is incorrect.
+   */
   Link* set_latency(const std::string& value);
 
   /** @brief Describes how the link is shared between flows */
+  Link* set_sharing_policy(SharingPolicy policy);
   SharingPolicy get_sharing_policy() const;
 
   /** Setup the profile with states events (ON or OFF). The profile must contain boolean values. */
@@ -110,7 +115,7 @@ public:
   void turn_off();
   bool is_on() const;
 
-  void seal();
+  Link* seal();
 
   /* The signals */
   /** @brief Callback signal fired when a new Link is created */