- CpuCas01(CpuCas01ModelPtr model, const char *name, xbt_dynar_t power_peak,
- int pstate, double powerScale, tmgr_trace_t powerTrace, int core,
- e_surf_resource_state_t stateInitial, tmgr_trace_t stateTrace,
- xbt_dict_t properties) ;
- ~CpuCas01();
- void updateState(tmgr_trace_event_t event_type, double value, double date);
- CpuActionPtr execute(double size);
- CpuActionPtr sleep(double duration);
-
- double getCurrentPowerPeak();
- double getPowerPeakAt(int pstate_index);
- int getNbPstates();
- void setPstate(int pstate_index);
- int getPstate();
- bool isUsed();
- void setStateEvent(tmgr_trace_event_t stateEvent);
- void setPowerEvent(tmgr_trace_event_t stateEvent);
- xbt_dynar_t getPowerPeakList();
-
- int getPState();
+ CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host, std::vector<double> *speedPerPstate, int core);
+ ~CpuCas01() override;
+ void apply_event(tmgr_trace_event_t event, double value) override;
+ CpuAction* execution_start(double size) override;
+ CpuAction* execution_start(double size, int requestedCore) override;
+ CpuAction* sleep(double duration) override;