- CpuTiModel();
- ~CpuTiModel();
- Cpu *createCpu(const char *name, xbt_dynar_t powerPeak,
- int pstate, double power_scale,
- tmgr_trace_t power_trace, int core,
- e_surf_resource_state_t state_initial,
- tmgr_trace_t state_trace,
- xbt_dict_t cpu_properties);
- double shareResources(double now);
- void updateActionsState(double now, double delta);
- void addTraces();
-
- ActionList *p_runningActionSetThatDoesNotNeedBeingChecked;
- CpuTiList *p_modifiedCpu;
- xbt_heap_t p_tiActionHeap;
-
-protected:
- void NotifyResourceTurnedOn(Resource*){};
- void NotifyResourceTurnedOff(Resource*){};
-
- void NotifyActionCancel(Action*){};
- void NotifyActionResume(Action*){};
- void NotifyActionSuspend(Action*){};
+ CpuTiAction(CpuTiModel *model, double cost, bool failed, CpuTi *cpu);
+
+ void setState(simgrid::surf::Action::State state) override;
+ int unref() override;
+ void cancel() override;
+ void suspend() override;
+ void resume() override;
+ void setMaxDuration(double duration) override;
+ void setSharingWeight(double priority) override;
+ double getRemains() override;
+
+ CpuTi *cpu_;
+
+ boost::intrusive::list_member_hook<> action_ti_hook;