Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Memleaks fixes on VM
[simgrid.git] / src / surf / vm_workstation_interface.cpp
1 /*
2  * vm_workstation.cpp
3  *
4  *  Created on: Nov 12, 2013
5  *      Author: bedaride
6  */
7 #include "vm_workstation_interface.hpp"
8 #include "cpu_cas01.hpp"
9
10 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_vm_workstation, surf,
11                                 "Logging specific to the SURF VM workstation module");
12
13 WorkstationVMModelPtr surf_vm_workstation_model = NULL;
14
15 /*********
16  * Model *
17  *********/
18
19 WorkstationVMModel::WorkstationVMModel() : WorkstationModel("Virtual Workstation") {
20   p_cpuModel = surf_cpu_model_vm;
21 }
22
23 /************
24  * Resource *
25  ************/
26
27 /*
28  * A physical host does not disapper in the current SimGrid code, but a VM may
29  * disapper during a simulation.
30  */
31 WorkstationVM::~WorkstationVM()
32 {
33 }
34
35 /*
36  * A surf level object will be useless in the upper layer. Returing the
37  * dict_elm of the host.
38  **/
39 surf_resource_t WorkstationVM::getPm()
40 {
41   return xbt_lib_get_elm_or_null(host_lib, p_subWs->getName());
42 }
43
44 /**********
45  * Action *
46  **********/
47
48 //FIME:: handle action cancel
49