X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b99ba18e1834c3a740f0574799ddcc3a9cfb17a0..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/include/simgrid/s4u/NetZone.hpp diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index e974320790..63a1c23b00 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -142,7 +143,7 @@ public: s4u::SplitDuplexLink* create_split_duplex_link(const std::string& name, const std::string& bandwidth); s4u::SplitDuplexLink* create_split_duplex_link(const std::string& name, double bandwidth); - kernel::resource::NetworkModelIntf* get_network_model() const; + kernel::resource::NetworkModel* get_network_model() const; /** * @brief Make a router within that NetZone @@ -153,6 +154,15 @@ public: /** @brief Seal this netzone configuration */ NetZone* seal(); + + void + set_latency_factor_cb(std::function& /*links*/, + const std::unordered_set& /*netzones*/)> const& cb) const; + void + set_bandwidth_factor_cb(std::function& /*links*/, + const std::unordered_set& /*netzones*/)> const& cb) const; }; // External constructors so that the types (and the types of their content) remain hidden