X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/79f2c630c9587d494cb154e6d074294c1e23208e..d2782917c11aa6d946e6f21189d6e653114b9295:/src/surf/cpu_cas01.hpp diff --git a/src/surf/cpu_cas01.hpp b/src/surf/cpu_cas01.hpp index 30b2beaa47..ff12def2a4 100644 --- a/src/surf/cpu_cas01.hpp +++ b/src/surf/cpu_cas01.hpp @@ -27,7 +27,7 @@ public: CpuCas01Model(); ~CpuCas01Model(); - Cpu *createCpu(simgrid::Host *host, xbt_dynar_t speedPeak, int pstate, + Cpu *createCpu(simgrid::s4u::Host *host, xbt_dynar_t speedPeak, int pstate, double speedScale, tmgr_trace_t speedTrace, int core, int initiallyOn, @@ -43,34 +43,27 @@ public: class CpuCas01 : public Cpu { public: - CpuCas01(CpuCas01Model *model, simgrid::Host *host, xbt_dynar_t speedPeak, + CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host, xbt_dynar_t speedPeak, int pstate, double speedScale, tmgr_trace_t speedTrace, int core, int initiallyOn, tmgr_trace_t stateTrace) ; ~CpuCas01(); - void updateState(tmgr_trace_event_t event_type, double value, double date) override; - CpuAction *execute(double size) override; + void updateState(tmgr_trace_iterator_t event_type, double value) override; + CpuAction *execution_start(double size) override; CpuAction *sleep(double duration) override; bool isUsed() override; - void setStateEvent(tmgr_trace_event_t stateEvent); - void setPowerEvent(tmgr_trace_event_t stateEvent); xbt_dynar_t getSpeedPeakList(); // FIXME: killme to hide our internals protected: void onSpeedChange() override; - -private: - - tmgr_trace_event_t p_stateEvent; - tmgr_trace_event_t p_speedEvent; }; /********** * Action * **********/ class CpuCas01Action: public CpuAction { - friend CpuAction *CpuCas01::execute(double size); + friend CpuAction *CpuCas01::execution_start(double size); friend CpuAction *CpuCas01::sleep(double duration); public: CpuCas01Action(Model *model, double cost, bool failed, double speed,