Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Remove power related methods from CpuL07
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 27 Nov 2015 10:25:44 +0000 (11:25 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 27 Nov 2015 10:25:45 +0000 (11:25 +0100)
They are not implemented, not used anyway. Power is implemented in the
CPU.

src/surf/host_ptask_L07.cpp
src/surf/host_ptask_L07.hpp

index c092c28..3dcb404 100644 (file)
@@ -420,31 +420,6 @@ HostL07::HostL07(HostModel *model, const char* name, xbt_dict_t props, RoutingEd
 {
 }
 
 {
 }
 
-double HostL07::getPowerPeakAt(int /*pstate_index*/)
-{
-       THROW_UNIMPLEMENTED;
-}
-
-int HostL07::getNbPstates()
-{
-       THROW_UNIMPLEMENTED;
-}
-
-void HostL07::setPstate(int /*pstate_index*/)
-{
-       THROW_UNIMPLEMENTED;
-}
-
-int HostL07::getPstate()
-{
-       THROW_UNIMPLEMENTED;
-}
-
-double HostL07::getConsumedEnergy()
-{
-       THROW_UNIMPLEMENTED;
-}
-
 CpuL07::CpuL07(CpuL07Model *model, const char* name, xbt_dict_t props,
                     double power_initial, double power_scale, tmgr_trace_t power_trace,
                           int core, e_surf_resource_state_t state_initial, tmgr_trace_t state_trace)
 CpuL07::CpuL07(CpuL07Model *model, const char* name, xbt_dict_t props,
                     double power_initial, double power_scale, tmgr_trace_t power_trace,
                           int core, e_surf_resource_state_t state_initial, tmgr_trace_t state_trace)
index 5264a84..221edf3 100644 (file)
@@ -98,11 +98,6 @@ public:
   Action *execute(double size) {return p_cpu->execute(size);};
   Action *sleep(double duration) {return p_cpu->sleep(duration);};
   e_surf_resource_state_t getState();
   Action *execute(double size) {return p_cpu->execute(size);};
   Action *sleep(double duration) {return p_cpu->sleep(duration);};
   e_surf_resource_state_t getState();
-  double getPowerPeakAt(int pstate_index);
-  int getNbPstates();
-  void setPstate(int pstate_index);
-  int  getPstate();
-  double getConsumedEnergy();
 };
 
 class CpuL07 : public Cpu {
 };
 
 class CpuL07 : public Cpu {