X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e195a28b546de45d49c8ab08f18da1da136a2454..e3397fde30788e5ba847cc9e1ad2d97425275aec:/src/surf/surf_interface.hpp diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index c480530b1d..b9e8b2cc2c 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -10,7 +10,6 @@ #include "src/surf/surf_private.h" #include "surf/surf.h" -#include "surf/surf_routing.h" #include "xbt/str.h" #include @@ -201,9 +200,9 @@ public: void setCategory(const char *category); /** @brief Get the priority of the current Action */ - double getPriority() {return priority_;}; + double getPriority() { return sharingWeight_; }; /** @brief Set the priority of the current Action */ - virtual void setPriority(double priority); + virtual void setSharingWeight(double priority); /** @brief Get the state set in which the action is */ ActionList* getStateSet() {return stateSet_;}; @@ -214,7 +213,7 @@ public: protected: ActionList* stateSet_; - double priority_ = 1.0; /**< priority (1.0 by default) */ + double sharingWeight_ = 1.0; /**< priority (1.0 by default) */ int refcount_ = 1; double remains_; /**< How much of that cost remains to be done in the currently running task */ double maxDuration_ = NO_MAX_DURATION; /*< max_duration (may fluctuate until the task is completed) */