class StorageModel;
class Resource;
class ResourceLmm;
-class Host;
+class HostImplem;
class HostCLM03;
class NetworkCm02Link;
class Action;
typedef simgrid::surf::StorageModel surf_StorageModel;
typedef simgrid::surf::Resource surf_Resource;
typedef simgrid::surf::ResourceLmm surf_ResourceLmm;
-typedef simgrid::surf::Host surf_Host;
+typedef simgrid::surf::HostImplem surf_Host;
typedef simgrid::surf::HostCLM03 surf_HostCLM03;
typedef simgrid::surf::NetworkCm02Link surf_NetworkCm02Link;
typedef simgrid::surf::Action surf_Action;
#include <unordered_map>
-#include <simgrid/simix.hpp>
-
+#include "simgrid/simix.hpp"
+#include "src/surf/HostImplem.hpp"
#include "xbt/log.h"
#include "src/msg/msg_private.h"
#include "src/simix/smx_process_private.h"
#include "src/simix/smx_private.hpp"
#include "src/surf/cpu_interface.hpp"
-#include "src/surf/host_interface.hpp"
-
#include "simgrid/s4u/host.hpp"
#include "simgrid/s4u/storage.hpp"
/** Get the properties assigned to a host */
xbt_dict_t Host::properties() {
return simgrid::simix::kernel([&] {
- simgrid::surf::Host* surf_host = this->extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = this->extension<simgrid::surf::HostImplem>();
return surf_host->getProperties();
});
}
void Host::parameters(vm_params_t params)
{
simgrid::simix::kernel([&]() {
- this->extension<simgrid::surf::Host>()->getParams(params);
+ this->extension<simgrid::surf::HostImplem>()->getParams(params);
});
}
void Host::setParameters(vm_params_t params)
{
simgrid::simix::kernel([&]() {
- this->extension<simgrid::surf::Host>()->setParams(params);
+ this->extension<simgrid::surf::HostImplem>()->setParams(params);
});
}
xbt_dict_t Host::mountedStoragesAsDict()
{
return simgrid::simix::kernel([&] {
- return this->extension<simgrid::surf::Host>()->getMountedStorageList();
+ return this->extension<simgrid::surf::HostImplem>()->getMountedStorageList();
});
}
xbt_dynar_t Host::attachedStorages()
{
return simgrid::simix::kernel([&] {
- return this->extension<simgrid::surf::Host>()->getAttachedStorageList();
+ return this->extension<simgrid::surf::HostImplem>()->getAttachedStorageList();
});
}
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include "src/surf/HostImplem.hpp"
#include "src/surf/surf_interface.hpp"
-#include "src/surf/host_interface.hpp"
#include "src/simdag/simdag_private.h"
#include "simgrid/simdag.h"
-#include "xbt/sysdep.h"
-#include "xbt/dynar.h"
#include "src/instr/instr_private.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_task, sd, "Logging specific to SimDag (task)");
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "src/surf/host_interface.hpp"
#include "src/simdag/simdag_private.h"
-#include "simgrid/simdag.h"
-#include "simgrid/host.h"
#include <simgrid/s4u/host.hpp>
-#include "xbt/dict.h"
-#include "xbt/lib.h"
-#include "xbt/sysdep.h"
+#include "src/surf/HostImplem.hpp"
#include "surf/surf.h"
/** @brief Returns the route between two workstations
#include "simgrid/host.h"
#include <xbt/Extendable.hpp>
#include <simgrid/s4u/host.hpp>
+
+#include "src/surf/HostImplem.hpp"
#include "surf/surf.h" // routing_get_network_element_type FIXME:killme
#include "src/simix/smx_private.hpp"
-#include "src/surf/host_interface.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
// ========= storage related functions ============
xbt_dict_t sg_host_get_mounted_storage_list(sg_host_t host){
- return host->extension<simgrid::surf::Host>()->getMountedStorageList();
+ return host->extension<simgrid::surf::HostImplem>()->getMountedStorageList();
}
xbt_dynar_t sg_host_get_attached_storage_list(sg_host_t host){
- return host->extension<simgrid::surf::Host>()->getAttachedStorageList();
+ return host->extension<simgrid::surf::HostImplem>()->getAttachedStorageList();
}
#include "smx_private.h"
#include "xbt/sysdep.h"
-#include "xbt/log.h"
-#include "xbt/dict.h"
#include "mc/mc.h"
#include "src/mc/mc_replay.h"
#include "src/surf/virtual_machine.hpp"
-#include "src/surf/host_interface.hpp"
+#include "src/surf/HostImplem.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_host, simix,
"SIMIX hosts");
s_smx_process_t proc;
/* Host structure */
- smx_host->process_list =
- xbt_swag_new(xbt_swag_offset(proc, host_proc_hookup));
+ smx_host->process_list = xbt_swag_new(xbt_swag_offset(proc, host_proc_hookup));
/* Update global variables */
sg_host_simix_set(host, smx_host);
xbt_assert((host != NULL), "Invalid parameters");
if (h->isOff()) {
- simgrid::surf::Host* surf_host = h->extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = h->extension<simgrid::surf::HostImplem>();
surf_host->turnOn();
unsigned int cpt;
xbt_assert((host != NULL), "Invalid parameters");
if (h->isOn()) {
- simgrid::surf::Host* surf_host = h->extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = h->extension<simgrid::surf::HostImplem>();
surf_host->turnOff();
/* Clean Simulator data */
host_list_cpy[i] = host_list[i];
/* Check that we are not mixing VMs and PMs in the parallel task */
- simgrid::surf::Host *host = host_list[0]->extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem *host = host_list[0]->extension<simgrid::surf::HostImplem>();
bool is_a_vm = (nullptr != dynamic_cast<simgrid::surf::VirtualMachine*>(host));
for (i = 1; i < host_nb; i++) {
- bool tmp_is_a_vm = (nullptr != dynamic_cast<simgrid::surf::VirtualMachine*>(host_list[i]->extension<simgrid::surf::Host>()));
+ bool tmp_is_a_vm = (nullptr != dynamic_cast<simgrid::surf::VirtualMachine*>(host_list[i]->extension<simgrid::surf::HostImplem>()));
xbt_assert(is_a_vm == tmp_is_a_vm, "parallel_execute: mixing VMs and PMs is not supported (yet).");
}
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "smx_private.h"
-#include "xbt/sysdep.h"
-#include "xbt/log.h"
-#include "xbt/dict.h"
#include "mc/mc.h"
-#include "src/surf/host_interface.hpp"
#include "src/surf/virtual_machine.hpp"
+#include "src/surf/HostImplem.hpp"
//If you need to log some stuffs, just uncomment these two lines and uses XBT_DEBUG for instance
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_vm, simix, "Logging specific to SIMIX (vms)");
static long host_get_ramsize(sg_host_t vm, int *overcommit)
{
s_vm_params_t params;
- vm->extension<simgrid::surf::Host>()->getParams(¶ms);
+ vm->extension<simgrid::surf::HostImplem>()->getParams(¶ms);
if (overcommit)
*overcommit = params.overcommit;
}
long total_ramsize_of_vms = 0;
- xbt_dynar_t dyn_vms = pm->extension<simgrid::surf::Host>()->getVms();
+ xbt_dynar_t dyn_vms = pm->extension<simgrid::surf::HostImplem>()->getVms();
{
unsigned int cursor = 0;
sg_host_t another_vm;
{
if (__can_be_started(ind_vm))
static_cast<simgrid::surf::VirtualMachine*>(
- ind_vm->extension<simgrid::surf::Host>()
+ ind_vm->extension<simgrid::surf::HostImplem>()
)->setState(SURF_VM_STATE_RUNNING);
else
THROWF(vm_error, 0, "The VM %s cannot be started", sg_host_get_name(ind_vm));
e_surf_vm_state_t SIMIX_vm_get_state(sg_host_t ind_vm)
{
return static_cast<simgrid::surf::VirtualMachine*>(
- ind_vm->extension<simgrid::surf::Host>()
+ ind_vm->extension<simgrid::surf::HostImplem>()
)->getState();
}
/* FIXME: we may have to do something at the surf layer, e.g., vcpu action */
static_cast<simgrid::surf::VirtualMachine*>(
- ind_vm->extension<simgrid::surf::Host>()
+ ind_vm->extension<simgrid::surf::HostImplem>()
)->setState(SURF_VM_STATE_CREATED);
}
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "host_interface.hpp"
+#include "HostImplem.hpp"
#include <simgrid/s4u/host.hpp>
namespace simgrid {
namespace surf {
-simgrid::xbt::Extension<simgrid::s4u::Host, Host> Host::EXTENSION_ID;
+simgrid::xbt::Extension<simgrid::s4u::Host, HostImplem> HostImplem::EXTENSION_ID;
/*********
* Model *
*********/
-Host *HostModel::createHost(const char *name,NetCard *netElm, Cpu *cpu, xbt_dict_t props){
+HostImplem *HostModel::createHost(const char *name,NetCard *netElm, Cpu *cpu, xbt_dict_t props){
xbt_dynar_t storageList = (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL);
- Host *host = new simgrid::surf::Host(surf_host_model, name, props, storageList, cpu);
+ HostImplem *host = new simgrid::surf::HostImplem(surf_host_model, name, props, storageList, cpu);
XBT_DEBUG("Create host %s with %ld mounted disks", name, xbt_dynar_length(host->p_storage));
return host;
}
************/
-void Host::classInit()
+void HostImplem::classInit()
{
if (!EXTENSION_ID.valid()) {
- EXTENSION_ID = simgrid::s4u::Host::extension_create<simgrid::surf::Host>();
+ EXTENSION_ID = simgrid::s4u::Host::extension_create<simgrid::surf::HostImplem>();
}
}
-Host::Host(simgrid::surf::HostModel *model, const char *name, xbt_dict_t props,
+HostImplem::HostImplem(simgrid::surf::HostModel *model, const char *name, xbt_dict_t props,
xbt_dynar_t storage, Cpu *cpu)
: Resource(model, name)
, PropertyHolder(props)
p_params.ramsize = 0;
}
-Host::Host(simgrid::surf::HostModel *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint,
+HostImplem::HostImplem(simgrid::surf::HostModel *model, const char *name, xbt_dict_t props, lmm_constraint_t constraint,
xbt_dynar_t storage, Cpu *cpu)
: Resource(model, name, constraint)
, PropertyHolder(props)
}
/** @brief use destroy() instead of this destructor */
-Host::~Host()
+HostImplem::~HostImplem()
{
}
-void Host::attach(simgrid::s4u::Host* host)
+void HostImplem::attach(simgrid::s4u::Host* host)
{
if (p_host != nullptr)
xbt_die("Already attached to host %s", host->name().c_str());
p_host = host;
}
-bool Host::isOn() {
+bool HostImplem::isOn() {
return p_cpu->isOn();
}
-bool Host::isOff() {
+bool HostImplem::isOff() {
return p_cpu->isOff();
}
-void Host::turnOn(){
+void HostImplem::turnOn(){
if (isOff()) {
p_cpu->turnOn();
simgrid::s4u::Host::onStateChange(*this->p_host);
}
}
-void Host::turnOff(){
+void HostImplem::turnOff(){
if (isOn()) {
p_cpu->turnOff();
simgrid::s4u::Host::onStateChange(*this->p_host);
}
}
-simgrid::surf::Storage *Host::findStorageOnMountList(const char* mount)
+simgrid::surf::Storage *HostImplem::findStorageOnMountList(const char* mount)
{
simgrid::surf::Storage *st = NULL;
s_mount_t mnt;
return st;
}
-xbt_dict_t Host::getMountedStorageList()
+xbt_dict_t HostImplem::getMountedStorageList()
{
s_mount_t mnt;
unsigned int i;
return storage_list;
}
-xbt_dynar_t Host::getAttachedStorageList()
+xbt_dynar_t HostImplem::getAttachedStorageList()
{
xbt_lib_cursor_t cursor;
char *key;
return result;
}
-Action *Host::open(const char* fullpath) {
+Action *HostImplem::open(const char* fullpath) {
simgrid::surf::Storage *st = NULL;
s_mount_t mnt;
return action;
}
-Action *Host::close(surf_file_t fd) {
+Action *HostImplem::close(surf_file_t fd) {
simgrid::surf::Storage *st = findStorageOnMountList(fd->mount);
XBT_DEBUG("CLOSE %s on disk '%s'",fd->name, st->getName());
return st->close(fd);
}
-Action *Host::read(surf_file_t fd, sg_size_t size) {
+Action *HostImplem::read(surf_file_t fd, sg_size_t size) {
simgrid::surf::Storage *st = findStorageOnMountList(fd->mount);
XBT_DEBUG("READ %s on disk '%s'",fd->name, st->getName());
return st->read(fd, size);
}
-Action *Host::write(surf_file_t fd, sg_size_t size) {
+Action *HostImplem::write(surf_file_t fd, sg_size_t size) {
simgrid::surf::Storage *st = findStorageOnMountList(fd->mount);
XBT_DEBUG("WRITE %s on disk '%s'",fd->name, st->getName());
return st->write(fd, size);
}
-int Host::unlink(surf_file_t fd) {
+int HostImplem::unlink(surf_file_t fd) {
if (!fd){
XBT_WARN("No such file descriptor. Impossible to unlink");
return -1;
}
}
-sg_size_t Host::getSize(surf_file_t fd){
+sg_size_t HostImplem::getSize(surf_file_t fd){
return fd->size;
}
-xbt_dynar_t Host::getInfo( surf_file_t fd)
+xbt_dynar_t HostImplem::getInfo( surf_file_t fd)
{
simgrid::surf::Storage *st = findStorageOnMountList(fd->mount);
sg_size_t *psize = xbt_new(sg_size_t, 1);
return info;
}
-sg_size_t Host::fileTell(surf_file_t fd){
+sg_size_t HostImplem::fileTell(surf_file_t fd){
return fd->current_position;
}
-int Host::fileSeek(surf_file_t fd, sg_offset_t offset, int origin){
+int HostImplem::fileSeek(surf_file_t fd, sg_offset_t offset, int origin){
switch (origin) {
case SEEK_SET:
}
}
-int Host::fileMove(surf_file_t fd, const char* fullpath){
+int HostImplem::fileMove(surf_file_t fd, const char* fullpath){
/* Check if the new full path is on the same mount point */
if(!strncmp((const char*)fd->mount, fullpath, strlen(fd->mount))) {
sg_size_t *psize, *new_psize;
}
}
-xbt_dynar_t Host::getVms()
+xbt_dynar_t HostImplem::getVms()
{
xbt_dynar_t dyn = xbt_dynar_new(sizeof(simgrid::surf::VirtualMachine*), NULL);
iter != simgrid::surf::VMModel::ws_vms.end(); ++iter) {
simgrid::surf::VirtualMachine *ws_vm = &*iter;
- if (this == ws_vm->p_hostPM->extension(simgrid::surf::Host::EXTENSION_ID))
+ if (this == ws_vm->p_hostPM->extension(simgrid::surf::HostImplem::EXTENSION_ID))
xbt_dynar_push(dyn, &ws_vm);
}
return dyn;
}
-void Host::getParams(vm_params_t params)
+void HostImplem::getParams(vm_params_t params)
{
*params = p_params;
}
-void Host::setParams(vm_params_t params)
+void HostImplem::setParams(vm_params_t params)
{
/* may check something here. */
p_params = *params;
namespace surf {
class XBT_PRIVATE HostModel;
-class XBT_PRIVATE Host;
+class XBT_PRIVATE HostImplem;
class XBT_PRIVATE HostAction;
HostModel() : Model() {}
~HostModel() override {}
- Host *createHost(const char *name, NetCard *net, Cpu *cpu, xbt_dict_t props);
+ HostImplem *createHost(const char *name, NetCard *net, Cpu *cpu, xbt_dict_t props);
virtual void adjustWeightOfDummyCpuActions();
virtual Action *executeParallelTask(int host_nb,
* @brief SURF Host interface class
* @details An host represents a machine with a aggregation of a Cpu, a RoutingEdge and a Storage
*/
-class Host :
+class HostImplem :
public simgrid::surf::Resource,
public simgrid::surf::PropertyHolder {
public:
- static simgrid::xbt::Extension<simgrid::s4u::Host, Host> EXTENSION_ID;
+ static simgrid::xbt::Extension<simgrid::s4u::Host, HostImplem> EXTENSION_ID;
public:
static void classInit(); // must be called before the first use of that class
* @param storage The Storage associated to this Host
* @param cpu The Cpu associated to this Host
*/
- Host(HostModel *model, const char *name, xbt_dict_t props,
+ HostImplem(HostModel *model, const char *name, xbt_dict_t props,
xbt_dynar_t storage, Cpu *cpu);
/**
* @param storage The Storage associated to this Host
* @param cpu The Cpu associated to this Host
*/
- Host(HostModel *model, const char *name, xbt_dict_t props,
+ HostImplem(HostModel *model, const char *name, xbt_dict_t props,
lmm_constraint_t constraint, xbt_dynar_t storage, Cpu *cpu);
/* Host destruction logic */
/**************************/
- ~Host();
+ ~HostImplem();
public:
HostModel *getModel()
#include <xbt/asserts.h>
#include "src/surf/callbacks.h"
+
+#include "src/surf/HostImplem.hpp"
#include "src/surf/surf_interface.hpp"
-#include "src/surf/host_interface.hpp"
void surf_on_storage_created(void (*callback)(sg_storage_t))
{
#include "storage_interface.hpp"
#include "cpu_interface.hpp"
-#include "host_interface.hpp"
+#include "src/surf/HostImplem.hpp"
#include "network_interface.hpp"
#ifndef SURF_HOST_CLM03_HPP_
#include <utility>
#include "network_ib.hpp"
+
+#include "src/surf/HostImplem.hpp"
#include "simgrid/sg_config.h"
#include "maxmin_private.hpp"
-#include "src/surf/host_interface.hpp"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_network);
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/surf/network_ns3.hpp"
+
+#include "src/surf/HostImplem.hpp"
#include "src/surf/surf_private.h"
-#include "src/surf/host_interface.hpp"
#include "simgrid/sg_config.h"
#include "src/instr/instr_private.h" // TRACE_is_enabled(). FIXME: remove by subscribing tracing to the surf signals
#include <utility>
#include <vector>
-#include <simgrid/plugins/energy.h>
-#include <simgrid/simix.hpp>
-#include <src/surf/plugins/energy.hpp>
-#include <src/surf/cpu_interface.hpp>
-#include <src/surf/virtual_machine.hpp>
+#include "simgrid/plugins/energy.h"
+#include "simgrid/simix.hpp"
+#include "src/surf/plugins/energy.hpp"
+#include "src/surf/cpu_interface.hpp"
+#include "src/surf/virtual_machine.hpp"
/** @addtogroup SURF_plugin_energy
/* Computes the consumption so far. Called lazily on need. */
void HostEnergy::update()
{
- simgrid::surf::Host* surf_host = host->extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = host->extension<simgrid::surf::HostImplem>();
double start_time = this->last_updated;
double finish_time = surf_get_clock();
double cpu_load;
/* **************************** events callback *************************** */
static void onCreation(simgrid::s4u::Host& host) {
- simgrid::surf::Host* surf_host = host.extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = host.extension<simgrid::surf::HostImplem>();
if (dynamic_cast<simgrid::surf::VirtualMachine*>(surf_host)) // Ignore virtual machines
return;
host.extension_set(new HostEnergy(&host));
static void onActionStateChange(simgrid::surf::CpuAction *action, e_surf_action_state_t previous) {
const char *name = getActionCpu(action)->getName();
- simgrid::surf::Host *host = sg_host_by_name(name)->extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem *host = sg_host_by_name(name)->extension<simgrid::surf::HostImplem>();
simgrid::surf::VirtualMachine *vm = dynamic_cast<simgrid::surf::VirtualMachine*>(host);
if (vm) // If it's a VM, take the corresponding PM
- host = vm->getPm()->extension<simgrid::surf::Host>();
+ host = vm->getPm()->extension<simgrid::surf::HostImplem>();
HostEnergy *host_energy = host->p_host->extension<HostEnergy>();
}
static void onHostStateChange(simgrid::s4u::Host &host) {
- simgrid::surf::Host* surf_host = host.extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = host.extension<simgrid::surf::HostImplem>();
if (dynamic_cast<simgrid::surf::VirtualMachine*>(surf_host)) // Ignore virtual machines
return;
static void onHostDestruction(simgrid::s4u::Host& host) {
// Ignore virtual machines
- simgrid::surf::Host* surf_host = host.extension<simgrid::surf::Host>();
+ simgrid::surf::HostImplem* surf_host = host.extension<simgrid::surf::HostImplem>();
if (dynamic_cast<simgrid::surf::VirtualMachine*>(surf_host))
return;
HostEnergy *host_energy = host.extension<HostEnergy>();
#include <xbt/base.h>
-#include "src/surf/host_interface.hpp"
#include <map>
+#include "src/surf/HostImplem.hpp"
+
#ifndef ENERGY_CALLBACK_HPP_
#define ENERGY_CALLBACK_HPP_
while ((cnst = lmm_get_cnst_from_var(p_maxminSystem, action->getVariable(), i++))) {
void *constraint_id = lmm_constraint_id(cnst);
- if (static_cast<Host*>(constraint_id)->isOff()) {
+ if (static_cast<HostImplem*>(constraint_id)->isOff()) {
XBT_DEBUG("Action (%p) Failed!!", action);
action->finish();
action->setState(SURF_ACTION_FAILED);
#include <xbt/base.h>
-#include "host_interface.hpp"
+#include "HostImplem.hpp"
#ifndef HOST_L07_HPP_
#define HOST_L07_HPP_
#include "xbt/dict.h"
#include "xbt/RngStream.h"
#include <xbt/signal.hpp>
+#include "HostImplem.hpp"
#include "surf/surf.h"
#include "src/simix/smx_private.h"
#include "src/surf/xml/platf_private.hpp"
#include "src/surf/cpu_interface.hpp"
-#include "src/surf/host_interface.hpp"
#include "src/surf/network_interface.hpp"
#include "surf/surf_routing.h" // FIXME: brain dead public header
#include "src/surf/surf_routing_cluster.hpp"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "host_interface.hpp"
+#include "HostImplem.hpp"
#include "surf_interface.hpp"
#include "network_interface.hpp"
#include "surf_routing_cluster.hpp"
* TOOLS *
*********/
-static simgrid::surf::Host *get_casted_host(sg_host_t host){ //FIXME: killme
- return host->extension<simgrid::surf::Host>();
+static simgrid::surf::HostImplem *get_casted_host(sg_host_t host){ //FIXME: killme
+ return host->extension<simgrid::surf::HostImplem>();
}
static simgrid::surf::VirtualMachine *get_casted_vm(sg_host_t host){
- return static_cast<simgrid::surf::VirtualMachine*>(host->extension<simgrid::surf::Host>());
+ return static_cast<simgrid::surf::VirtualMachine*>(host->extension<simgrid::surf::HostImplem>());
}
extern double NOW;
#include "surf_interface.hpp"
#include "network_interface.hpp"
#include "cpu_interface.hpp"
-#include "host_interface.hpp"
+#include "HostImplem.hpp"
#include "src/simix/smx_host_private.h"
#include "surf_routing.hpp"
#include "simgrid/sg_config.h"
ROUTING_PROP_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_prop_free);
XBT_DEBUG("Add SURF levels");
- simgrid::surf::Host::classInit();
+ simgrid::surf::HostImplem::classInit();
SURF_STORAGE_LEVEL = xbt_lib_add_level(storage_lib,surf_storage_free);
xbt_init(argc, argv);
************/
VirtualMachine::VirtualMachine(HostModel *model, const char *name, xbt_dict_t props, simgrid::s4u::Host *hostPM)
-: Host(model, name, props, NULL, NULL, NULL)
+: HostImplem(model, name, props, NULL, NULL, NULL)
, p_hostPM(hostPM)
{
VMModel::ws_vms.push_back(*this);
- simgrid::s4u::Host::by_name_or_create(name)->extension_set<simgrid::surf::Host>(this);
+ simgrid::s4u::Host::by_name_or_create(name)->extension_set<simgrid::surf::HostImplem>(this);
}
/*
#include <xbt/base.h>
-#include "host_interface.hpp"
+#include "HostImplem.hpp"
#ifndef VM_INTERFACE_HPP_
#define VM_INTERFACE_HPP_
* @brief SURF VM interface class
* @details A VM represent a virtual machine
*/
-class VirtualMachine : public Host {
+class VirtualMachine : public HostImplem {
public:
/**
* @brief Constructor
*/
void VMHL13::migrate(sg_host_t host_dest)
{
- Host *surfHost_dst = host_dest->extension<Host>();
+ HostImplem *surfHost_dst = host_dest->extension<HostImplem>();
const char *vm_name = getName();
const char *pm_name_src = p_hostPM->name().c_str();
const char *pm_name_dst = surfHost_dst->getName();
src/surf/PropertyHolder.hpp
src/surf/virtual_machine.hpp
src/surf/host_clm03.hpp
- src/surf/host_interface.hpp
+ src/surf/HostImplem.hpp
src/surf/ptask_L07.hpp
src/xbt/automaton/automaton_lexer.yy.c
src/xbt/automaton/parserPromela.lex
src/surf/vm_hl13.cpp
src/surf/virtual_machine.cpp
src/surf/host_clm03.cpp
- src/surf/host_interface.cpp
+ src/surf/HostImplem.cpp
src/surf/ptask_L07.cpp
src/xbt/xbt_sg_stubs.c
)