Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
give a network_model to each NetZone (unused for now)
[simgrid.git] / include / simgrid / kernel / routing / NetZoneImpl.hpp
index 9e80905..260661c 100644 (file)
@@ -51,7 +51,7 @@ class XBT_PUBLIC NetZoneImpl {
   friend simgrid::kernel::EngineImpl; // it destroys netRoot_
 
 protected:
-  explicit NetZoneImpl(NetZoneImpl* father, std::string name);
+  explicit NetZoneImpl(NetZoneImpl* father, std::string name, resource::NetworkModel* network_model);
   virtual ~NetZoneImpl();
 
 public:
@@ -86,6 +86,9 @@ protected:
   bool get_bypass_route(routing::NetPoint* src, routing::NetPoint* dst,
                         /* OUT */ std::vector<resource::LinkImpl*>& links, double* latency);
 
+public:
+  resource::NetworkModel* network_model_;
+
 private:
   s4u::NetZone piface_;