X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/79f2c630c9587d494cb154e6d074294c1e23208e..5256625ce077e26cac71af07133901c402654f16:/include/simgrid/Host.hpp diff --git a/include/simgrid/Host.hpp b/include/simgrid/Host.hpp index 3e82229ddf..7d1a51b61c 100644 --- a/include/simgrid/Host.hpp +++ b/include/simgrid/Host.hpp @@ -30,25 +30,24 @@ public: int getCoreAmount(); /* FIXME: these should be protected, but it leads to many errors */ - surf::Cpu *p_cpu = nullptr; - surf::NetCard *p_netcard = nullptr; + surf::Cpu *pimpl_cpu = nullptr; + surf::NetCard *pimpl_netcard = nullptr; private: simgrid::xbt::string name_ = "noname"; public: Host(std::string const& name); ~Host(); simgrid::xbt::string const& getName() const { return name_; } - void on(); - void off(); + 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); - double getWattMinAt(int pstate); - double getWattMaxAt(int pstate); + void setPState(int pstate_index); + int getPState(); void getParams(vm_params_t params); void setParams(vm_params_t params); xbt_dict_t getMountedStorageList();