From 91bb8b44ef09735fc79f40a3d9eeb69456a46909 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 20 Nov 2013 22:00:08 +0100 Subject: [PATCH] Throw unimplemented. --- src/surf/cpu_ti.hpp | 18 +++++++++--------- src/surf/workstation_ptask_L07.hpp | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index cccac330f7..cde7ab9c87 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -122,15 +122,15 @@ public: CpuActionPtr sleep(double duration); double getAvailableSpeed(); - xbt_dynar_t getWattsRangeList() {}; - double getCurrentWattsValue(double cpu_load) {}; - void updateEnergy(double cpu_load) {}; - - double getCurrentPowerPeak() {}; - double getPowerPeakAt(int pstate_index) {}; - int getNbPstates() {}; - void setPowerPeakAt(int pstate_index) {}; - double getConsumedEnergy() {}; + xbt_dynar_t getWattsRangeList() {THROW_UNIMPLEMENTED;}; + double getCurrentWattsValue(double cpu_load) {THROW_UNIMPLEMENTED;}; + void updateEnergy(double cpu_load) {THROW_UNIMPLEMENTED;}; + + 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;}; CpuTiTgmrPtr p_availTrace; /*< Structure with data needed to integrate trace file */ tmgr_trace_event_t p_stateEvent; /*< trace file with states events (ON or OFF) */ diff --git a/src/surf/workstation_ptask_L07.hpp b/src/surf/workstation_ptask_L07.hpp index 1678943f8f..fcff2f301d 100644 --- a/src/surf/workstation_ptask_L07.hpp +++ b/src/surf/workstation_ptask_L07.hpp @@ -129,11 +129,11 @@ public: ActionPtr execute(double size) {DIE_IMPOSSIBLE;}; ActionPtr sleep(double duration) {DIE_IMPOSSIBLE;}; - double getCurrentPowerPeak() {}; - double getPowerPeakAt(int pstate_index) {}; - int getNbPstates() {}; - void setPowerPeakAt(int pstate_index) {}; - double getConsumedEnergy() {}; + 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; }; -- 2.20.1