- CpuTiModel();
- ~CpuTiModel();
- CpuPtr 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();
-
- ActionListPtr p_runningActionSetThatDoesNotNeedBeingChecked;
- CpuTiListPtr p_modifiedCpu;
- xbt_heap_t p_tiActionHeap;
-
-protected:
- void NotifyResourceTurnedOn(ResourcePtr){};
- void NotifyResourceTurnedOff(ResourcePtr){};
-
- void NotifyActionCancel(ActionPtr){};
- void NotifyActionResume(ActionPtr){};
- void NotifyActionSuspend(ActionPtr){};
+ 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;