Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
de7123b313ae42c2903753213a6dae4342f58ab9
[simgrid.git] / include / simgrid / s4u / VirtualMachine.hpp
1 /* Copyright (c) 2015-2016. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef SIMGRID_S4U_VM_HPP
7 #define SIMGRID_S4U_VM_HPP
8
9 #include <simgrid/s4u/forward.hpp>
10 #include <simgrid/s4u/host.hpp>
11 #include <xbt/base.h>
12
13 namespace simgrid {
14
15 namespace s4u {
16
17 /** @ingroup s4u_api
18  *
19  * @tableofcontents
20  *
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.
23  *
24  */
25 XBT_PUBLIC_CLASS VirtualMachine : public s4u::Host
26 {
27
28 public:
29   explicit VirtualMachine(const char* name, s4u::Host* hostPm);
30
31   // No copy/move
32   VirtualMachine(VirtualMachine const&) = delete;
33   VirtualMachine& operator=(VirtualMachine const&) = delete;
34
35 private:
36   virtual ~VirtualMachine();
37
38 public:
39   void parameters(vm_params_t params);
40   void setParameters(vm_params_t params);
41 };
42 }
43 } // namespace simgrid::s4u
44
45 #endif /* SIMGRID_S4U_HOST_HPP */