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();
- e_surf_resource_state_t getState();
+ 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();