]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/surf_interface.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / src / surf / surf_interface.hpp
index cd55b2aaf92c5ac9958da1417c5bb54c1b0b1070..84593b513e4d2e464790606d9fdcfeb2f150d539 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2013. The SimGrid Team.
+/* Copyright (c) 2004-2014. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -197,7 +197,7 @@ public:
    * @brief share the resources
    * @details Share the resources between the actions 
    * 
-   * @param 
+   * @param now [TODO]
    * @return the date of the next action will finish
    */
   virtual double shareResources(double now);
@@ -360,15 +360,13 @@ public:
    */
   virtual void setState(e_surf_resource_state_t state);
 
-protected:
-  e_surf_resource_state_t m_stateCurrent;
-
 private:
-  ModelPtr p_model;
   const char *p_name;
   xbt_dict_t p_properties;
+  ModelPtr p_model;
   void *p_resource;
   bool m_running;
+  e_surf_resource_state_t m_stateCurrent;
 
   /* LMM */
 public:
@@ -439,7 +437,7 @@ public:
    * 
    * @param state The new state of the current Action
    */
-  virtual void setState(e_surf_action_state_t state); /**< Change state*/
+  virtual void setState(e_surf_action_state_t state);
 
   /**
    * @brief Get the bound of the current Action
@@ -681,7 +679,6 @@ private:
   ActionLmmListPtr p_modifiedSet;
   xbt_heap_t p_actionHeap;
   int m_selectiveUpdate;
-  ModelPtr p_model;
   double m_bound;   /**< the capping of the CPU use  */
   bool m_failed;
   double m_start; /**< start time  */
@@ -691,6 +688,7 @@ private:
   int m_latencyLimited;               /**< Set to 1 if is limited by latency, 0 otherwise */
   #endif
   int    m_cost;
+  ModelPtr p_model;
   void *p_data; /**< for your convenience */
 
   /* LMM */
@@ -708,8 +706,8 @@ public:
 
 protected:
   lmm_variable_t p_variable;
-  double m_lastUpdate;
   double m_lastValue;
+  double m_lastUpdate;
   int m_suspended;
   int m_indexHeap;
   enum heap_action_type m_hat;