X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/baad8bc11dd1034957d778db858a22df65bf64b9..0bac7d0f735ac8ba47a46e1db4f6d7a7164fe0f2:/src/surf/host_ptask_L07.hpp diff --git a/src/surf/host_ptask_L07.hpp b/src/surf/host_ptask_L07.hpp index a401b12a32..b4c550916a 100644 --- a/src/surf/host_ptask_L07.hpp +++ b/src/surf/host_ptask_L07.hpp @@ -4,6 +4,10 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include + +#include + #include #include "host_interface.hpp" @@ -11,6 +15,9 @@ #ifndef HOST_L07_HPP_ #define HOST_L07_HPP_ +namespace simgrid { +namespace surf { + /*********** * Classes * ***********/ @@ -52,9 +59,9 @@ class CpuL07Model : public CpuModel { public: CpuL07Model(HostL07Model *hmodel) : CpuModel() {p_hostModel = hmodel;}; ~CpuL07Model() {surf_cpu_model_pm = NULL;}; - Cpu *createCpu(const char *name, xbt_dynar_t powerPeak, - int pstate, double power_scale, - tmgr_trace_t power_trace, int core, + Cpu *createCpu(const char *name, xbt_dynar_t speedPeak, + int pstate, double speedScale, + tmgr_trace_t speedTrace, int core, e_surf_resource_state_t state_initial, tmgr_trace_t state_trace, xbt_dict_t cpu_properties); @@ -102,7 +109,7 @@ public: class CpuL07 : public Cpu { friend void HostL07Model::addTraces(); tmgr_trace_event_t p_stateEvent; - tmgr_trace_event_t p_powerEvent; + tmgr_trace_event_t p_speedEvent; public: CpuL07(CpuL07Model *model, const char* name, xbt_dict_t properties, double power_scale, double power_initial, tmgr_trace_t power_trace, @@ -170,11 +177,14 @@ public: void setPriority(double priority); double getRemains(); - vector * p_edgeList = new vector(); + std::vector * p_edgeList = new std::vector(); double *p_computationAmount; double *p_communicationAmount; double m_latency; double m_rate; }; +} +} + #endif /* HOST_L07_HPP_ */