X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3f50aa3d0ce380b0f9bcd5a217c5015e6bd3db18..8de466d0f03f18b22c6c36170b509d48a39fcd52:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 375c1d7ac8..81a9cb77bc 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -26,6 +26,8 @@ namespace surf { */ class XBT_PUBLIC CpuModel : public kernel::resource::Model { public: + explicit CpuModel(kernel::resource::Model::UpdateAlgo algo) : Model(algo) {} + /** * @brief Create a Cpu * @@ -111,7 +113,7 @@ protected: public: /** @brief Get the available speed of the current Cpu */ - virtual double getAvailableSpeed(); + virtual double get_available_speed(); /** @brief Get the current Cpu computational speed */ virtual double getPstateSpeed(int pstate_index); @@ -129,7 +131,9 @@ public: int pstate_ = 0; /*< Current pstate (index in the speedPeakList)*/ virtual void setStateTrace(tmgr_trace_t trace); /*< setup the trace file with states events (ON or OFF). Trace must contain boolean values (0 or 1). */ - virtual void setSpeedTrace(tmgr_trace_t trace); /*< setup the trace file with availability events (peak speed changes due to external load). Trace must contain relative values (ratio between 0 and 1) */ + virtual void + set_speed_trace(tmgr_trace_t trace); /*< setup the trace file with availability events (peak speed changes due to + external load). Trace must contain relative values (ratio between 0 and 1) */ tmgr_trace_event_t stateEvent_ = nullptr; Metric speed_ = {1.0, 0, nullptr};