X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ffd004a13acd17db31f5d5df1bc2fc2dc696b9a9..a44d99b7ed60456d5f016fc2ac2e2aa41410a008:/src/surf/network_interface.hpp diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index a3dcab0dc0..3b0c8933ef 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -7,6 +7,7 @@ #define SURF_NETWORK_INTERFACE_HPP_ #include "simgrid/kernel/resource/Model.hpp" +#include "simgrid/kernel/resource/NetworkModelIntf.hpp" #include "simgrid/kernel/resource/Resource.hpp" #include "simgrid/s4u/Link.hpp" #include "src/kernel/lmm/maxmin.hpp" @@ -30,7 +31,7 @@ namespace resource { * @brief SURF network model interface class * @details A model is an object which handles the interactions between its Resources and its Actions */ -class NetworkModel : public Model { +class NetworkModel : public Model, public NetworkModelIntf { public: static config::Flag cfg_tcp_gamma; static config::Flag cfg_crosstraffic; @@ -97,6 +98,9 @@ public: double next_occurring_event_full(double now) override; + virtual void set_lat_factor_cb(const std::function& cb) override { THROW_UNIMPLEMENTED; } + virtual void set_bw_factor_cb(const std::function& cb) override { THROW_UNIMPLEMENTED; } + LinkImpl* loopback_ = nullptr; }; @@ -156,8 +160,8 @@ public: * Profile must contain absolute values */ virtual LinkImpl* set_latency_profile(kernel::profile::Profile* profile); - Metric latency_ = {0.0, 0, nullptr}; - Metric bandwidth_ = {1.0, 0, nullptr}; + Metric latency_ = {0.0, 0, nullptr}; + Metric bandwidth_ = {1.0, 0, nullptr}; }; /********** @@ -209,5 +213,3 @@ public: } // namespace simgrid #endif /* SURF_NETWORK_INTERFACE_HPP_ */ - -