S4U_VirtualMachine.h
std::map< std::string, double > getMessagePayloadList()
Get the message payload list for the BareMetalComputeService that will run on the VM ({} means "use a...
Definition: S4U_VirtualMachine.cpp:186
std::map< std::string, std::string > getPropertyList()
Get the property list for the BareMetalComputeService that is to run on the VM ({} means "use all def...
Definition: S4U_VirtualMachine.cpp:178
unsigned long getNumCores()
Get the number of cores.
Definition: S4U_VirtualMachine.cpp:59
State getState()
Get the VM's state.
Definition: S4U_VirtualMachine.cpp:137
void start(std::string &pm_name)
Start the VM.
Definition: S4U_VirtualMachine.cpp:75
void shutdown()
Shutdown the VM.
Definition: S4U_VirtualMachine.cpp:122
A wrapper for the simgrid::s4u::VirtualMachine class.
Definition: S4U_VirtualMachine.h:26
std::string getPhysicalHostname()
Get the physical hostname.
Definition: S4U_VirtualMachine.cpp:46
void suspend()
Suspend the VM.
Definition: S4U_VirtualMachine.cpp:98
S4U_VirtualMachine(const std::string &vm_hostname, unsigned long num_cores, double ram_memory, std::map< std::string, std::string > property_list, std::map< std::string, double > messagepayload_list)
Constructor.
Definition: S4U_VirtualMachine.cpp:32
void migrate(const std::string &dst_pm_name)
Migrate the VM.
Definition: S4U_VirtualMachine.cpp:162
void resume()
Resume the VM.
Definition: S4U_VirtualMachine.cpp:110
double getMemory()
Get the memory consumption.
Definition: S4U_VirtualMachine.cpp:67
Definition: Alarm.cpp:19
std::string getStateAsString()
Get the VM's state as a string.
Definition: S4U_VirtualMachine.cpp:145