Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
added possibility to change mcs, nss and distance between nodes
[simgrid.git] / src / surf / network_interface.hpp
index 7c6d824..087dadf 100644 (file)
@@ -200,8 +200,8 @@ public:
   double lat_current_ = {};
   double sharing_penalty_ = {};
   double rate_       = {};
-  s4u::Host& get_src() { return src_; }
-  s4u::Host& get_dst() { return dst_; }
+  s4u::Host& get_src() const { return src_; }
+  s4u::Host& get_dst() const { return dst_; }
 };
 } // namespace resource
 } // namespace kernel