X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81120257e7139d746cabc40d935a6d0f67b95ede..2653a7d76628a32b362df6a1336fd36a744796d2:/src/surf/plugins/energy.hpp diff --git a/src/surf/plugins/energy.hpp b/src/surf/plugins/energy.hpp index f3d700c77b..a50a6f6e95 100644 --- a/src/surf/plugins/energy.hpp +++ b/src/surf/plugins/energy.hpp @@ -6,20 +6,20 @@ #include -#include "../cpu_interface.hpp" +#include "../host_interface.hpp" #include #ifndef ENERGY_CALLBACK_HPP_ #define ENERGY_CALLBACK_HPP_ -class XBT_PRIVATE CpuEnergy; +class XBT_PRIVATE HostEnergy; -extern XBT_PRIVATE std::map *surf_energy; +extern XBT_PRIVATE std::map *surf_energy; -class CpuEnergy { +class HostEnergy { public: - CpuEnergy(Cpu *ptr); - ~CpuEnergy(); + HostEnergy(Host *ptr); + ~HostEnergy(); double getCurrentWattsValue(double cpu_load); double getConsumedEnergy(); @@ -31,7 +31,7 @@ public: double watts_off; /*< Consumption when the machine is turned off (shutdown) */ double total_energy; /*< Total energy consumed by the host */ double last_updated; /*< Timestamp of the last energy update event*/ - Cpu *cpu; + Host *host; void unref() {if (--refcount == 0) delete this;} void ref() {refcount++;}