Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do the Right Thing for the host_(get/set)_pstate
[simgrid.git] / include / simgrid / Host.hpp
index 99494dc..6e1f6c0 100644 (file)
 #include <vector>
 
 #include <xbt/base.h>
+#include <xbt/dict.h>
+#include <xbt/swag.h>
 #include <xbt/string.hpp>
 #include <xbt/Extendable.hpp>
 
+#include <simgrid/datatypes.h>
 
 namespace simgrid {
 
@@ -35,6 +38,23 @@ public:
   Host(std::string const& name);
   ~Host();
   simgrid::xbt::string const& getName() const { return name_; }
+  void turnOn();
+  void turnOff();
+  bool isOn();
+  bool isOff();
+  xbt_dict_t getProperties();
+  xbt_swag_t getProcessList();
+  double getCurrentPowerPeak();
+  double getPowerPeakAt(int pstate_index);
+  void setPState(int pstate_index);
+  int getPState();
+  double getWattMinAt(int pstate);
+  double getWattMaxAt(int pstate);
+  void getParams(vm_params_t params);
+  void setParams(vm_params_t params);
+  xbt_dict_t getMountedStorageList();
+  xbt_dynar_t getAttachedStorageList();
+
   static Host* by_name_or_null(const char* name);
   static Host* by_name_or_create(const char* name);
 };