X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0fa053f89a0b5f34a050f4790925d9d63ac11073..612ee16a751800aa1dd996ee512fa38adcfe001d:/src/surf/network_interface.hpp diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index 82981510c3..7842043c06 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -48,7 +48,7 @@ public: * @param policy The sharing policy of the Link */ virtual LinkImpl* createLink(const std::string& name, double bandwidth, double latency, - e_surf_link_sharing_policy_t policy) = 0; + s4u::Link::SharingPolicy policy) = 0; /** * @brief Create a communication between two hosts. @@ -136,9 +136,8 @@ public: /** @brief Update the latency in seconds of current Link */ virtual void setLatency(double value) = 0; - /** @brief The sharing policy is a @{link e_surf_link_sharing_policy_t::EType} (0: FATPIPE, 1: SHARED, 2: - * SPLITDUPLEX) */ - virtual int sharingPolicy(); + /** @brief The sharing policy */ + virtual s4u::Link::SharingPolicy sharingPolicy(); /** @brief Check if the Link is used */ bool is_used() override; @@ -146,6 +145,8 @@ public: void turn_on() override; void turn_off() override; + void on_bandwidth_change(); + virtual void setStateTrace(tmgr_trace_t trace); /*< setup the trace file with states events (ON or OFF). Trace must contain boolean values. */ virtual void setBandwidthTrace( @@ -181,7 +182,7 @@ public: **********/ /** @ingroup SURF_network_interface * @brief SURF network action interface class - * @details A NetworkAction represents a communication between two [hosts](\ref HostImpl) + * @details A NetworkAction represents a communication between two [hosts](\ref simgrid::surf::HostImpl) */ class NetworkAction : public Action { public: