Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Host::get_englobing_zone() returns the englobing netzone
[simgrid.git] / src / s4u / s4u_Host.cpp
index b8acf61..db85aa3 100644 (file)
@@ -171,6 +171,12 @@ void Host::route_to(Host* dest, std::vector<kernel::resource::LinkImpl*>& links,
   }
 }
 
   }
 }
 
+/** @brief Returns the networking zone englobing that host */
+NetZone* Host::get_englobing_zone()
+{
+  return pimpl_netpoint->get_englobing_zone()->get_iface();
+}
+
 void Host::send_to(Host* dest, double byte_amount)
 {
   std::vector<Host*> m_host_list   = {this, dest};
 void Host::send_to(Host* dest, double byte_amount)
 {
   std::vector<Host*> m_host_list   = {this, dest};