X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/67b99b221d8bcc0f216ad8671f0bb8884d8b1bfd..477b8bb78ea1735da69be73257715ed56a0bde4f:/src/kernel/resource/Resource.hpp?ds=sidebyside diff --git a/src/kernel/resource/Resource.hpp b/src/kernel/resource/Resource.hpp index e9b66c582c..8bf9885b85 100644 --- a/src/kernel/resource/Resource.hpp +++ b/src/kernel/resource/Resource.hpp @@ -72,9 +72,10 @@ public: /* LMM */ /** @brief Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) */ kernel::lmm::Constraint* constraint() const; -protected: +private: kernel::lmm::Constraint* const constraint_ = nullptr; +protected: struct Metric { double peak; /**< The peak of the metric, ie its max value */ double scale; /**< Current availability of the metric according to the traces, in [0,1] */