X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/666a812d1b3ee4568f2beb317dfcd08d99055697..9ba84afe21104d341e205f1732803e5aa1db09f3:/src/kernel/routing/NetZoneImpl.cpp diff --git a/src/kernel/routing/NetZoneImpl.cpp b/src/kernel/routing/NetZoneImpl.cpp index 8c4f453d3c..5528e9f02d 100644 --- a/src/kernel/routing/NetZoneImpl.cpp +++ b/src/kernel/routing/NetZoneImpl.cpp @@ -28,7 +28,7 @@ public: NetZoneImpl::NetZoneImpl(NetZone* father, std::string name) : NetZone(father, name) { - xbt_assert(nullptr == simgrid::s4u::Engine::get_instance()->getNetpointByNameOrNull(name.c_str()), + xbt_assert(nullptr == simgrid::s4u::Engine::get_instance()->netpoint_by_name_or_null(name.c_str()), "Refusing to create a second NetZone called '%s'.", name.c_str()); netpoint_ = new NetPoint(name, NetPoint::Type::NetZone, static_cast(father)); @@ -53,13 +53,13 @@ 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::onCreation(*res); // notify the signal + simgrid::s4u::Host::on_creation(*res); // notify the signal return res; } @@ -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.