Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define const get_sharing_policy().
[simgrid.git] / src / surf / network_interface.hpp
index 9cb6cc7..435e70c 100644 (file)
@@ -121,6 +121,7 @@ public:
   void destroy(); // Must be called instead of the destructor
 
   /** @brief Public interface */
+  const s4u::Link* get_iface() const { return &piface_; }
   s4u::Link* get_iface() { return &piface_; }
 
   /** @brief Get the bandwidth in bytes per second of current Link */
@@ -136,7 +137,7 @@ public:
   virtual void set_latency(double value) = 0;
 
   /** @brief The sharing policy */
-  virtual s4u::Link::SharingPolicy get_sharing_policy();
+  virtual s4u::Link::SharingPolicy get_sharing_policy() const;
 
   /** @brief Check if the Link is used */
   bool is_used() override;