Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
TESH: msg to s4u - act 1
[simgrid.git] / include / simgrid / s4u / VirtualMachine.hpp
index 6dfb999..0d3c791 100644 (file)
@@ -14,6 +14,7 @@ typedef enum {
   SURF_VM_STATE_CREATED, /**< created, but not yet started */
   SURF_VM_STATE_RUNNING,
   SURF_VM_STATE_SUSPENDED, /**< Suspend/resume does not involve disk I/O, so we assume there is no transition states. */
+  SURF_VM_STATE_DESTROYED
 } e_surf_vm_state_t;
 
 namespace simgrid {
@@ -51,6 +52,8 @@ public:
   double getRamsize();
   simgrid::s4u::Host* pm();
 
+  e_surf_vm_state_t getState();
+
   /* FIXME: protect me */
   simgrid::vm::VirtualMachineImpl* pimpl_vm_ = nullptr;
 };