]> 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 9ee6439ba1fb467a9145ee6df43435caec802ac6..d15da44444581e3512395e531890d2d10e858476 100644 (file)
@@ -58,9 +58,21 @@ public:
 
   /** Get/Set the latency of the current Link (in seconds) */
   double get_latency() const;
+  /**
+   * @brief Set link's latency
+   *
+   * @param value New latency value (in s)
+   */
   Link* set_latency(double value);
+  /**
+   * @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. */
@@ -103,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 */