Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
forgot that reference to a renamed function
[simgrid.git] / src / surf / plugins / energy.hpp
index decb552..682ae46 100644 (file)
@@ -1,9 +1,9 @@
-/*
- * callback.hpp
- *
- *  Created on: Jan 10, 2014
- *      Author: bedaride
- */
+/* Copyright (c) 2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include "../cpu_interface.hpp"
 #include <map>
 
@@ -22,9 +22,10 @@ public:
 
   double getCurrentWattsValue(double cpu_load);
   double getConsumedEnergy();
-  xbt_dynar_t getWattsRangeList();
 
-  xbt_dynar_t power_range_watts_list;          /*< List of (min_power,max_power) pairs corresponding to each cpu pstate */
+  xbt_dynar_t getWattsRangeList();
+  xbt_dynar_t power_range_watts_list;   /*< List of (min_power,max_power) pairs corresponding to each cpu pstate */
+  double watts_off;                      /*< Consumption when the machine is turned off (shutdown) */
   double total_energy;                                 /*< Total energy consumed by the host */
   double last_updated;                                 /*< Timestamp of the last energy update event*/
   CpuPtr cpu;