X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cd05fcfa9ff6df9b054060937165d422a536bd99..79853b8925152a5b89d3f8f44d64ffaf284a0196:/src/surf/cpu_cas01.hpp diff --git a/src/surf/cpu_cas01.hpp b/src/surf/cpu_cas01.hpp index cd6151c84d..0955ce2572 100644 --- a/src/surf/cpu_cas01.hpp +++ b/src/surf/cpu_cas01.hpp @@ -27,8 +27,7 @@ public: CpuCas01Model(); ~CpuCas01Model() override; - Cpu *createCpu(simgrid::s4u::Host *host, xbt_dynar_t speedPerPstate, int core) override; - double next_occuring_event_full(double now) override; + Cpu *createCpu(simgrid::s4u::Host *host, std::vector *speedPerPstate, int core) override; ActionList *p_cpuRunningActionSetThatDoesNotNeedBeingChecked; }; @@ -38,15 +37,15 @@ public: class CpuCas01 : public Cpu { public: - CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host, xbt_dynar_t speedPerPstate, int core); + CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host, std::vector *speedPerPstate, int core); ~CpuCas01() override; - void apply_event(tmgr_trace_iterator_t event, double value) override; + void apply_event(tmgr_trace_event_t event, double value) override; CpuAction *execution_start(double size) override; CpuAction *sleep(double duration) override; bool isUsed() override; - xbt_dynar_t getSpeedPeakList(); // FIXME: killme to hide our internals + std::vector * getSpeedPeakList(); // FIXME: killme to hide our internals protected: void onSpeedChange() override; @@ -59,8 +58,7 @@ class CpuCas01Action: public CpuAction { friend CpuAction *CpuCas01::execution_start(double size); friend CpuAction *CpuCas01::sleep(double duration); public: - CpuCas01Action(Model *model, double cost, bool failed, double speed, - lmm_constraint_t constraint); + CpuCas01Action(Model *model, double cost, bool failed, double speed, lmm_constraint_t constraint); ~CpuCas01Action() override; };