X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdcc6f10f0ba3de1b01e4c910fa1966114350ae6..8cba26bcd4766e50a6a1b99ee11a1aa7efe3749f:/src/kernel/routing/NetZoneImpl.cpp diff --git a/src/kernel/routing/NetZoneImpl.cpp b/src/kernel/routing/NetZoneImpl.cpp index bbcec30ea5..e19d3ce705 100644 --- a/src/kernel/routing/NetZoneImpl.cpp +++ b/src/kernel/routing/NetZoneImpl.cpp @@ -53,11 +53,11 @@ simgrid::s4u::Host* NetZoneImpl::create_host(const char* name, std::vectorpimpl_netpoint = new NetPoint(name, NetPoint::Type::Host, this); - surf_cpu_model_pm->createCpu(res, speedPerPstate, coreAmount); + surf_cpu_model_pm->create_cpu(res, speedPerPstate, coreAmount); if (props != nullptr) for (auto const& kv : *props) - res->setProperty(kv.first, kv.second); + res->set_property(kv.first, kv.second); simgrid::s4u::Host::on_creation(*res); // notify the signal @@ -169,13 +169,13 @@ static void find_common_ancestors(NetPoint* src, NetPoint* dst, NetZoneImpl* current = src->get_englobing_zone(); while (current != nullptr) { path_src.push_back(current); - current = static_cast(current->getFather()); + current = static_cast(current->get_father()); } std::vector path_dst; current = dst->get_englobing_zone(); while (current != nullptr) { path_dst.push_back(current); - current = static_cast(current->getFather()); + current = static_cast(current->get_father()); } /* (3) find the common father. @@ -217,7 +217,7 @@ bool NetZoneImpl::get_bypass_route(routing::NetPoint* src, routing::NetPoint* ds for (resource::LinkImpl* const& link : bypassedRoute->links) { links.push_back(link); if (latency) - *latency += link->latency(); + *latency += link->get_latency(); } XBT_DEBUG("Found a bypass route from '%s' to '%s' with %zu links", src->get_cname(), dst->get_cname(), bypassedRoute->links.size()); @@ -301,7 +301,7 @@ bool NetZoneImpl::get_bypass_route(routing::NetPoint* src, routing::NetPoint* ds for (resource::LinkImpl* const& link : bypassedRoute->links) { links.push_back(link); if (latency) - *latency += link->latency(); + *latency += link->get_latency(); } if (dst != key.second) get_global_route(bypassedRoute->gw_dst, dst, links, latency);