- void parseInit(sg_platf_host_cbarg_t host);
- CpuTiPtr createResource(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);
- CpuTiActionPtr createAction(double cost, bool failed);
- double shareResources(double now);
- void updateActionsState(double now, double delta);
- void addTraces();
-
- ActionListPtr p_runningActionSetThatDoesNotNeedBeingChecked;
- xbt_swag_t p_modifiedCpu;
- xbt_heap_t p_tiActionHeap;
-
-protected:
- void NotifyResourceTurnedOn(ResourcePtr){};
- void NotifyResourceTurnedOff(ResourcePtr){};
+ void setState(e_surf_action_state_t state);
+ int unref();
+ void cancel();
+ void updateIndexHeap(int i);
+ void suspend();
+ void resume();
+ bool isSuspended();
+ void setMaxDuration(double duration);
+ void setPriority(double priority);
+ double getRemains();
+ void setAffinity(Cpu * /*cpu*/, unsigned long /*mask*/) {};