Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
port NS3 to simgrid::s4u::Host
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 13 Jan 2016 22:24:18 +0000 (23:24 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 13 Jan 2016 22:24:18 +0000 (23:24 +0100)
src/surf/network_ns3.cpp

index 28d43b1..67576e0 100644 (file)
@@ -39,9 +39,9 @@ static void replace_lat_ns3(char ** lat)
   xbt_free(temp);
 }
 
   xbt_free(temp);
 }
 
-static void simgrid_ns3_add_host(simgrid::Host& host)
+static void simgrid_ns3_add_host(simgrid::s4u::Host& host)
 {
 {
-  const char* id = host.getName().c_str();
+  const char* id = host.name().c_str();
   XBT_DEBUG("NS3_ADD_HOST '%s'", id);
   host.extension_set(NS3_EXTENSION_ID, ns3_add_host(id));
 }
   XBT_DEBUG("NS3_ADD_HOST '%s'", id);
   host.extension_set(NS3_EXTENSION_ID, ns3_add_host(id));
 }
@@ -230,7 +230,7 @@ static void parse_ns3_end_platform(void)
 
 static void define_callbacks_ns3(void)
 {
 
 static void define_callbacks_ns3(void)
 {
-  simgrid::Host::onCreation.connect(simgrid_ns3_add_host);
+  simgrid::s4u::Host::onCreation.connect(simgrid_ns3_add_host);
   simgrid::surf::routingEdgeCreatedCallbacks.connect(simgrid_ns3_add_router);
   sg_platf_link_add_cb (&parse_ns3_add_link);
   sg_platf_cluster_add_cb (&parse_ns3_add_cluster);
   simgrid::surf::routingEdgeCreatedCallbacks.connect(simgrid_ns3_add_router);
   sg_platf_link_add_cb (&parse_ns3_add_link);
   sg_platf_cluster_add_cb (&parse_ns3_add_cluster);