xbt_dynar_t getRoute(WorkstationCLM03Ptr src, WorkstationCLM03Ptr dst);
ActionPtr communicate(WorkstationCLM03Ptr src, WorkstationCLM03Ptr dst, double size, double rate);
void addTraces();
- CpuL07ModelPtr p_cpuModel;
NetworkL07ModelPtr p_networkModel;
};
class CpuL07Model : public CpuModel {
public:
CpuL07Model() : CpuModel("cpuL07") {};
- ~CpuL07Model() {surf_cpu_model = NULL;};
+ ~CpuL07Model() {surf_cpu_model_pm = NULL;};
ResourcePtr createResource(const char *name, double power_scale,
double power_initial,
tmgr_trace_t power_trace,
tmgr_trace_t state_trace,
xbt_dict_t cpu_properties);
void addTraces() {DIE_IMPOSSIBLE;};
+
WorkstationL07ModelPtr p_workstationModel;
};
ActionPtr execute(double size);
ActionPtr sleep(double duration);
e_surf_resource_state_t getState();
+ double getPowerPeakAt(int pstate_index);
+ int getNbPstates();
+ void setPowerPeakAt(int pstate_index);
+ double getConsumedEnergy();
};
class CpuL07 : public CpuLmm {
double getAvailableSpeed();
ActionPtr execute(double size) {DIE_IMPOSSIBLE;};
ActionPtr sleep(double duration) {DIE_IMPOSSIBLE;};
+
+ double getCurrentPowerPeak() {THROW_UNIMPLEMENTED;};
+ double getPowerPeakAt(int pstate_index) {THROW_UNIMPLEMENTED;};
+ int getNbPstates() {THROW_UNIMPLEMENTED;};
+ void setPowerPeakAt(int pstate_index) {THROW_UNIMPLEMENTED;};
+ double getConsumedEnergy() {THROW_UNIMPLEMENTED;};
+
double m_powerCurrent;
};