refresh_decay_bandwidths();
}
-double NetworkWifiLink::get_host_rate(const s4u::Host* host)
+double NetworkWifiLink::get_host_rate(const s4u::Host* host) const
{
- std::map<xbt::string, int>::iterator host_rates_it;
- host_rates_it = host_rates_.find(host->get_name());
+ auto host_rates_it = host_rates_.find(host->get_name());
if (host_rates_it == host_rates_.end())
return -1;
return s4u::Link::SharingPolicy::WIFI;
}
-int NetworkWifiLink::get_host_count()
+int NetworkWifiLink::get_host_count() const
{
return host_rates_.size();
}