X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8dadf249202bc6834a1d680b8ec8446937b3c4a6..4b5d82355daac2ba088d17e0ca91fb29709866eb:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 2cb2d53843..0ab1e484c8 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -74,8 +74,6 @@ public: */ XBT_PUBLIC_CLASS Cpu : public simgrid::surf::Resource { public: - Cpu(); - /** * @brief Cpu constructor * @@ -107,13 +105,6 @@ public: int core, double speedPeak, double speedScale, e_surf_resource_state_t stateInitial); - Cpu(simgrid::surf::Model *model, simgrid::Host *host, lmm_constraint_t constraint, - xbt_dynar_t speedPeakList, int pstate, - int core, double speedPeak, double speedScale); - Cpu(simgrid::surf::Model *model, simgrid::Host *host, - xbt_dynar_t speedPeakList, int pstate, - int core, double speedPeak, double speedScale); - ~Cpu(); /** @@ -138,6 +129,11 @@ public: /** @brief Get the speed, accounting for the trace load and provided process load instead of the real current one */ virtual double getSpeed(double load); +protected: + /** @brief Take speed changes (either load or max) into account */ + virtual void onSpeedChange(); + +public: /** @brief Get the available speed of the current Cpu */ virtual double getAvailableSpeed();