11 #ifndef WRENCH_S4U_VIRTUALMACHINE_H
12 #define WRENCH_S4U_VIRTUALMACHINE_H
14 #include <simgrid/s4u/VirtualMachine.hpp>
26 class S4U_VirtualMachine {
33 static std::unordered_map<std::string, std::string> vm_to_pm_map;
42 S4U_VirtualMachine(
const std::string &vm_hostname,
43 unsigned long num_cores,
45 std::map<std::string, std::string> property_list,
46 std::map<std::string, double> messagepayload_list);
48 void start(std::string &pm_name);
56 void migrate(
const std::string &dst_pm_name);
58 std::string getPhysicalHostname();
59 unsigned long getNumCores();
61 std::map<std::string, std::string> getPropertyList();
62 std::map<std::string, double> getMessagePayloadList();
65 std::string getStateAsString();
71 simgrid::s4u::VirtualMachine *vm;
72 unsigned long num_cores;
75 std::map<std::string, std::string> property_list;
76 std::map<std::string, double> messagepayload_list;
84 #endif //WRENCH_S4U_VIRTUALMACHINE_H