Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix NS3 and latency bound tracking
[simgrid.git] / src / surf / surf_interface.hpp
index 27774f3..c68f912 100644 (file)
@@ -441,6 +441,20 @@ public:
    */
   virtual void setState(e_surf_action_state_t state);
 
+  /**
+   * @brief Get the bound of the current Action
+   * 
+   * @return The bound of the current Action
+   */
+  double getBound();
+
+  /**
+   * @brief Set the bound of the current Action
+   *
+   * @param bound The new bound of the current Action
+   */
+  void setBound(double bound);
+
   /**
    * @brief Get the start time of the current action
    * 
@@ -602,15 +616,6 @@ public:
    */
   double getRemainsNoUpdate();
 
-#ifdef HAVE_LATENCY_BOUND_TRACKING
-  /**
-   * @brief Check if the action is limited by latency.
-   * 
-   * @return 1 if action is limited by latency, 0 otherwise
-   */
-  int getLatencyLimited();
-#endif
-
   /**
    * @brief Get the priority of the current Action
    * 
@@ -681,7 +686,7 @@ private:
   #ifdef HAVE_LATENCY_BOUND_TRACKING
   int m_latencyLimited;               /**< Set to 1 if is limited by latency, 0 otherwise */
   #endif
-  int    m_cost;
+  double    m_cost;
   ModelPtr p_model;
   void *p_data; /**< for your convenience */