-/* 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. */
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
/** @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