- CpuTiModel();
- ~CpuTiModel();
- Cpu *createCpu(simgrid::s4u::Host *host, xbt_dynar_t speedPeak,
- int pstate, double speedScale,
- tmgr_trace_t speedTrace, int core,
- int initiallyOn,
- tmgr_trace_t state_trace) override;
- double shareResources(double now) override;
- void updateActionsState(double now, double delta) override;
- void addTraces() override;
-
- ActionList *p_runningActionSetThatDoesNotNeedBeingChecked;
- CpuTiList *p_modifiedCpu;
- xbt_heap_t p_tiActionHeap;
-
-protected:
- void NotifyResourceTurnedOn(simgrid::surf::Resource*){};
- void NotifyResourceTurnedOff(simgrid::surf::Resource*){};
-
- void NotifyActionCancel(Action*){};
- void NotifyActionResume(Action*){};
- void NotifyActionSuspend(Action*){};
+ CpuTiModel() = default;
+ ~CpuTiModel() override;
+ Cpu* createCpu(simgrid::s4u::Host* host, std::vector<double>* speed_per_pstate, int core) override;
+ double next_occuring_event(double now) override;
+ void update_actions_state(double now, double delta) override;
+
+ kernel::resource::Action::StateSet runningActionSetThatDoesNotNeedBeingChecked_;
+ CpuTiList modified_cpus_;