X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/450b358183e53934a1185e4714387a9d824b0181..9cccb540315b9453bfc60e07d953ae81b44bd049:/src/s4u/s4u_Netzone.cpp diff --git a/src/s4u/s4u_Netzone.cpp b/src/s4u/s4u_Netzone.cpp index bd00dc9e81..ec5b427cb2 100644 --- a/src/s4u/s4u_Netzone.cpp +++ b/src/s4u/s4u_Netzone.cpp @@ -113,6 +113,20 @@ NetZone* NetZone::seal() kernel::actor::simcall_answered([this] { pimpl_->seal(); }); return this; } +void NetZone::set_latency_factor_cb( + std::function& /*links*/, + const std::unordered_set& /*netzones*/)> const& cb) +{ + kernel::actor::simcall_answered([this, &cb]() { pimpl_->get_network_model()->set_lat_factor_cb(cb); }); +} +void NetZone::set_bandwidth_factor_cb( + std::function& /*links*/, + const std::unordered_set& /*netzones*/)> const& cb) +{ + kernel::actor::simcall_answered([this, &cb]() { pimpl_->get_network_model()->set_bw_factor_cb(cb); }); +} s4u::Host* NetZone::create_host(const std::string& name, double speed) {