X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ab7bb723fb950b8a646a757162c8437b97afbe9..a6ceacf3b05651e2ae5a40d47c96bdd9fc4d1416:/src/surf/network_interface.cpp diff --git a/src/surf/network_interface.cpp b/src/surf/network_interface.cpp index c08c2833f0..4ffd1df006 100644 --- a/src/surf/network_interface.cpp +++ b/src/surf/network_interface.cpp @@ -108,6 +108,11 @@ double LinkImpl::get_bandwidth() const return bandwidth_.peak * bandwidth_.scale; } +LinkImpl* LinkImpl::set_sharing_policy(s4u::Link::SharingPolicy policy) +{ + get_constraint()->set_sharing_policy(policy); + return this; +} s4u::Link::SharingPolicy LinkImpl::get_sharing_policy() const { return get_constraint()->get_sharing_policy();