4 * Created on: Nov 12, 2013
7 #include "vm_workstation_interface.hpp"
8 #include "cpu_cas01.hpp"
10 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_vm_workstation, surf,
11 "Logging specific to the SURF VM workstation module");
13 WorkstationVMModelPtr surf_vm_workstation_model = NULL;
19 WorkstationVMModel::WorkstationVMModel() : WorkstationModel("Virtual Workstation") {
20 p_cpuModel = surf_cpu_model_vm;
28 * A physical host does not disapper in the current SimGrid code, but a VM may
29 * disapper during a simulation.
31 WorkstationVM::~WorkstationVM()
36 * A surf level object will be useless in the upper layer. Returing the
37 * dict_elm of the host.
39 surf_resource_t WorkstationVM::getPm()
41 return xbt_lib_get_elm_or_null(host_lib, p_subWs->getName());
48 //FIME:: handle action cancel