Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
added circle placement for ns3 wifi nodes
[simgrid.git] / include / simgrid / s4u / Link.hpp
index 552d57aa6f749c444563a5944af9458df9fe73a3..11212f952615e5c56d86a18cbe2ac84d602a932f 100644 (file)
@@ -52,12 +52,14 @@ public:
   /** @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 */
@@ -74,7 +76,7 @@ public:
    * location of hosts into account, or even to model mobility in your SimGrid simulation.
    *
    * Note that this function asserts that the link is actually a wifi link */
-  void set_host_wifi_rate(s4u::Host* host, int level);
+  void set_host_wifi_rate(const s4u::Host* host, int level) const;
 
   /** @brief Returns the current load (in bytes per second) */
   double get_usage() const;