- CpuTi() {};
- CpuTi(CpuTiModelPtr model, const char *name, xbt_dynar_t powerPeak,
- int pstate, double powerScale, tmgr_trace_t powerTrace, int core,
- e_surf_resource_state_t stateInitial, tmgr_trace_t stateTrace,
- xbt_dict_t properties) ;
- ~CpuTi() {};
-
- void updateState(tmgr_trace_event_t event_type, double value, double date);
- void updateActionFinishDate(double now);
- bool isUsed();
- void printCpuTiModel();
- CpuActionPtr execute(double size);
- CpuTiActionPtr _execute(double size);
- CpuActionPtr sleep(double duration);
- double getAvailableSpeed();
-
- xbt_dynar_t getWattsRangeList() {};
- double getCurrentWattsValue(double cpu_load) {};
- void updateEnergy(double cpu_load) {};
-
- double getCurrentPowerPeak() {};
- double getPowerPeakAt(int pstate_index) {};
- int getNbPstates() {};
- void setPowerPeakAt(int pstate_index) {};
- double getConsumedEnergy() {};
-
- CpuTiTgmrPtr p_availTrace; /*< Structure with data needed to integrate trace file */
- tmgr_trace_event_t p_stateEvent; /*< trace file with states events (ON or OFF) */
- tmgr_trace_event_t p_powerEvent; /*< trace file with availability events */
- xbt_swag_t p_actionSet; /*< set with all actions running on cpu */
- s_xbt_swag_hookup_t p_modifiedCpuHookup; /*< hookup to swag that indicates whether share resources must be recalculated or not */
+ CpuTi(CpuTiModel *model, simgrid::Host *host, xbt_dynar_t speedPeak,
+ int pstate, double speedScale, tmgr_trace_t speedTrace, int core,
+ int initiallyOn, tmgr_trace_t stateTrace) ;
+ ~CpuTi();
+
+ void updateState(tmgr_trace_event_t event_type, double value, double date) override;
+ void updateActionsFinishTime(double now);
+ bool isUsed() override;
+ CpuAction *execute(double size) override;
+ CpuAction *sleep(double duration) override;
+ double getAvailableSpeed() override;
+
+ void modified(bool modified);
+
+ CpuTiTgmr *p_availTrace; /*< Structure with data needed to integrate trace file */
+ tmgr_trace_event_t p_stateEvent = NULL; /*< trace file with states events (ON or OFF) */
+ tmgr_trace_event_t p_speedEvent = NULL; /*< trace file with availability events */
+ ActionTiList *p_actionSet; /*< set with all actions running on cpu */