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 */
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;