X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/63dae9fee48b67ed8302130aa84c8a54cd42241b..6c56800bdad43cabb6c870c9163bbeea694d6692:/src/surf/SplitDuplexLinkImpl.hpp diff --git a/src/surf/SplitDuplexLinkImpl.hpp b/src/surf/SplitDuplexLinkImpl.hpp index 3158718c94..231e130028 100644 --- a/src/surf/SplitDuplexLinkImpl.hpp +++ b/src/surf/SplitDuplexLinkImpl.hpp @@ -21,11 +21,10 @@ namespace resource { ************/ /** @ingroup SURF_network_interface * @brief SURF network link interface class - * @details A Link represents the link between two [hosts](@ref simgrid::surf::HostImpl) + * @details A Link represents the link between two [hosts](@ref HostImpl) */ class SplitDuplexLinkImpl : public LinkImplIntf { s4u::SplitDuplexLink piface_; - s4u::Link::SharingPolicy sharing_policy_ = s4u::Link::SharingPolicy::SPLITDUPLEX; LinkImpl* link_up_; LinkImpl* link_down_; @@ -48,8 +47,8 @@ public: void set_latency(double value) override; /** @brief The sharing policy */ - virtual void set_sharing_policy(s4u::Link::SharingPolicy policy) override; - virtual s4u::Link::SharingPolicy get_sharing_policy() const override; + void set_sharing_policy(s4u::Link::SharingPolicy policy, const s4u::NonLinearResourceCb& cb) override; + s4u::Link::SharingPolicy get_sharing_policy() const override { return s4u::Link::SharingPolicy::SPLITDUPLEX; } /** @brief Get link composing this split-duplex link */ s4u::Link* get_link_up() const { return link_up_->get_iface(); }