Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
FatTreeZone: Add limiters for switches
[simgrid.git] / src / s4u / s4u_Netzone.cpp
index ce45cb1d6b5122a1bd11db7e6a130a0fb7e65c40..90dedc88c782cea85941af79626db0804f142abf 100644 (file)
@@ -145,7 +145,7 @@ NetZone* NetZone::seal()
 
 s4u::Host* NetZone::create_host(const std::string& name, double speed)
 {
-  return create_host(name, {speed});
+  return create_host(name, std::vector<double>{speed});
 }
 
 s4u::Host* NetZone::create_host(const std::string& name, const std::vector<double>& speed_per_pstate)
@@ -156,7 +156,7 @@ s4u::Host* NetZone::create_host(const std::string& name, const std::vector<doubl
 
 s4u::Host* NetZone::create_host(const std::string& name, const std::string& speed)
 {
-  return create_host(name, {speed});
+  return create_host(name, std::vector<std::string>{speed});
 }
 
 s4u::Host* NetZone::create_host(const std::string& name, const std::vector<std::string>& speed_per_pstate)
@@ -166,7 +166,7 @@ s4u::Host* NetZone::create_host(const std::string& name, const std::vector<std::
 
 s4u::Link* NetZone::create_link(const std::string& name, double bandwidth)
 {
-  return create_link(name, {bandwidth});
+  return create_link(name, std::vector<double>{bandwidth});
 }
 
 s4u::Link* NetZone::create_link(const std::string& name, const std::vector<double>& bandwidths)
@@ -176,7 +176,7 @@ s4u::Link* NetZone::create_link(const std::string& name, const std::vector<doubl
 
 s4u::Link* NetZone::create_link(const std::string& name, const std::string& bandwidth)
 {
-  return create_link(name, {bandwidth});
+  return create_link(name, std::vector<std::string>{bandwidth});
 }
 
 s4u::Link* NetZone::create_link(const std::string& name, const std::vector<std::string>& bandwidths)
@@ -200,6 +200,10 @@ kernel::routing::NetPoint* NetZone::create_router(const std::string& name)
   return kernel::actor::simcall([this, &name] { return pimpl_->create_router(name); });
 }
 
+kernel::routing::NetPoint* NetZone::get_netpoint()
+{
+  return pimpl_->get_netpoint();
+}
 } // namespace s4u
 } // namespace simgrid