#include "simgrid/host.h"
#include "simgrid/kernel/routing/NetZoneImpl.hpp" // full type for NetZoneImpl object
#include "simgrid/host.h"
#include "simgrid/kernel/routing/NetZoneImpl.hpp" // full type for NetZoneImpl object
#include "simgrid/zone.h"
#include "src/kernel/EngineImpl.hpp"
#include "src/surf/cpu_interface.hpp"
#include "simgrid/zone.h"
#include "src/kernel/EngineImpl.hpp"
#include "src/surf/cpu_interface.hpp"
- simgrid::s4u::Host* hostA = sg_host_by_name("Cpu A");
- simgrid::s4u::Host* hostB = sg_host_by_name("Cpu B");
+ simgrid::s4u::Host* hostA = e.host_by_name("Cpu A");
+ simgrid::s4u::Host* hostB = e.host_by_name("Cpu B");
/* Let's do something on it */
hostA->get_cpu()->execution_start(1000.0, -1);
hostB->get_cpu()->execution_start(1000.0, -1);
hostB->get_cpu()->sleep(7.32);
/* Let's do something on it */
hostA->get_cpu()->execution_start(1000.0, -1);
hostB->get_cpu()->execution_start(1000.0, -1);
hostB->get_cpu()->sleep(7.32);
auto net_model = as_zone->get_impl()->get_network_model();
net_model->communicate(hostA, hostB, 150.0, -1.0);
auto net_model = as_zone->get_impl()->get_network_model();
net_model->communicate(hostA, hostB, 150.0, -1.0);