1 /* Copyright (c) 2015-2016. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_S4U_VM_HPP
7 #define SIMGRID_S4U_VM_HPP
9 #include <simgrid/s4u/forward.hpp>
10 #include <simgrid/s4u/host.hpp>
21 * A VM is a virtual machine that contains actors. The total computing power that the contained
22 * processes can get is constrained to the virtual machine size.
25 XBT_PUBLIC_CLASS VirtualMachine : public s4u::Host
29 explicit VirtualMachine(const char* name, s4u::Host* hostPm);
32 VirtualMachine(VirtualMachine const&) = delete;
33 VirtualMachine& operator=(VirtualMachine const&) = delete;
36 virtual ~VirtualMachine();
41 void parameters(vm_params_t params);
42 void setParameters(vm_params_t params);
45 } // namespace simgrid::s4u
47 #endif /* SIMGRID_S4U_HOST_HPP */