-/* 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. */
/** @brief Seal this netzone configuration */
NetZone* seal();
- void set_latency_factor_cb(std::function<double(double size, const s4u::Host* src, const s4u::Host* dst,
- const std::vector<s4u::Link*>& /*links*/,
- const std::unordered_set<s4u::NetZone*>& /*netzones*/)> const& cb);
- void set_bandwidth_factor_cb(std::function<double(double size, const s4u::Host* src, const s4u::Host* dst,
- const std::vector<s4u::Link*>& /*links*/,
- const std::unordered_set<s4u::NetZone*>& /*netzones*/)> const& cb);
+ void
+ set_latency_factor_cb(std::function<double(double size, const s4u::Host* src, const s4u::Host* dst,
+ const std::vector<s4u::Link*>& /*links*/,
+ const std::unordered_set<s4u::NetZone*>& /*netzones*/)> const& cb) const;
+ void
+ set_bandwidth_factor_cb(std::function<double(double size, const s4u::Host* src, const s4u::Host* dst,
+ const std::vector<s4u::Link*>& /*links*/,
+ const std::unordered_set<s4u::NetZone*>& /*netzones*/)> const& cb) const;
};
// External constructors so that the types (and the types of their content) remain hidden