X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/95a02a8febe84fd1c2ed98c78c594a5e8a0116f7..0bb08c80b2bff9de24524dc98f04cd145dfc93c0:/include/simgrid/kernel/resource/Resource.hpp diff --git a/include/simgrid/kernel/resource/Resource.hpp b/include/simgrid/kernel/resource/Resource.hpp index f70ea2da46..1c281bc64a 100644 --- a/include/simgrid/kernel/resource/Resource.hpp +++ b/include/simgrid/kernel/resource/Resource.hpp @@ -6,7 +6,10 @@ #ifndef SIMGRID_KERNEL_RESOURCE_RESOURCE_HPP #define SIMGRID_KERNEL_RESOURCE_RESOURCE_HPP -#include "src/surf/surf_interface.hpp" +#include +#include +#include +#include namespace simgrid { namespace kernel { @@ -45,7 +48,7 @@ public: * @param event What happened * @param value [TODO] */ - virtual void apply_event(tmgr_trace_event_t event, double value) = 0; + virtual void apply_event(TraceEvent* event, double value) = 0; /** @brief Check if the current Resource is used (if it currently serves an action) */ virtual bool isUsed() = 0; @@ -76,9 +79,9 @@ private: 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] */ - tmgr_trace_event_t event; /**< The associated trace event associated to the 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] */ + TraceEvent* event; /**< The associated trace event associated to the metric */ }; }; } // namespace resource