class WifiLinkImpl : public StandardLinkImpl {
/** @brief Hold every rates association between host and links (host name, rates id) */
class WifiLinkImpl : public StandardLinkImpl {
/** @brief Hold every rates association between host and links (host name, rates id) */
/** @brief A link can have several bandwidths attached to it (mostly use by wifi model) */
std::vector<Metric> bandwidths_;
/** @brief A link can have several bandwidths attached to it (mostly use by wifi model) */
std::vector<Metric> bandwidths_;
void apply_event(kernel::profile::Event*, double) override { THROW_UNIMPLEMENTED; }
void set_bandwidth(double) override { THROW_UNIMPLEMENTED; }
void set_latency(double) override;
void apply_event(kernel::profile::Event*, double) override { THROW_UNIMPLEMENTED; }
void set_bandwidth(double) override { THROW_UNIMPLEMENTED; }
void set_latency(double) override;
- static void update_bw_comm_end(simgrid::kernel::resource::NetworkAction& action, simgrid::kernel::resource::Action::State state);
+ static void update_bw_comm_end(const simgrid::kernel::resource::NetworkAction& action,
+ simgrid::kernel::resource::Action::State state);
- static double wifi_link_dynamic_sharing(WifiLinkImpl* link, double capacity, int n);
- double get_max_ratio(int);
+ static double wifi_link_dynamic_sharing(const WifiLinkImpl& link, double capacity, int n);
+ double get_max_ratio() const;