/* 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. */
/* 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 Hold every rates association between host and links (host name, rates id) */
std::map<xbt::string, int> host_rates_;
/** @brief Hold every rates association between host and links (host name, rates id) */
std::map<xbt::string, int> host_rates_;
std::vector<Metric> bandwidths_;
/** @brief Should we use the decay model ? */
bool use_decay_model_=false;
std::vector<Metric> bandwidths_;
/** @brief Should we use the decay model ? */
bool use_decay_model_=false;
- /** @brief Wifi ns-3 802.11n average bit rate */
- const double wifi_max_rate_=54*1e6 / 8;
- /** @brief ns-3 802.11n minimum bit rate */
- const double wifi_min_rate_=41.70837*1e6 / 8;
- /** @brief Decay model calibration */
+ /** @brief Wifi maximal bit rate according to the ns-3 802.11n standard */
+ const double wifi_max_rate_ = 54 * 1e6 / 8;
+ /** @brief minimum bit rate observed with ns3 during our calibration experiments */
+ const double wifi_min_rate_ = 41.70837 * 1e6 / 8;
+ /** @brief Amount of stations used in the reference point to rescale SimGrid predictions to fit ns-3 ones */
- NetworkWifiLink(NetworkCm02Model* model, const std::string& name, std::vector<double> bandwidths,
- lmm::System* system);
+ NetworkWifiLink(const std::string& name, std::vector<double> bandwidths, lmm::System* system);
void set_host_rate(const s4u::Host* host, int rate_level);
/** @brief Get the AP rate associated to the host (or -1 if not associated to the AP) */
void set_host_rate(const s4u::Host* host, int rate_level);
/** @brief Get the AP rate associated to the host (or -1 if not associated to the AP) */
void apply_event(kernel::profile::Event*, double) override { THROW_UNIMPLEMENTED; }
void set_bandwidth(double) override { THROW_UNIMPLEMENTED; }
void apply_event(kernel::profile::Event*, double) override { THROW_UNIMPLEMENTED; }
void set_bandwidth(double) override { THROW_UNIMPLEMENTED; }
NetworkWifiAction(Model* model, s4u::Host& src, s4u::Host& dst, double cost, bool failed,
NetworkWifiLink* src_wifi_link, NetworkWifiLink* dst_wifi_link)
: NetworkCm02Action(model, src, dst, cost, failed)
, src_wifi_link_(src_wifi_link)
NetworkWifiAction(Model* model, s4u::Host& src, s4u::Host& dst, double cost, bool failed,
NetworkWifiLink* src_wifi_link, NetworkWifiLink* dst_wifi_link)
: NetworkCm02Action(model, src, dst, cost, failed)
, src_wifi_link_(src_wifi_link)
NetworkWifiLink* get_src_link() const { return src_wifi_link_; }
NetworkWifiLink* get_dst_link() const { return dst_wifi_link_; }
NetworkWifiLink* get_src_link() const { return src_wifi_link_; }
NetworkWifiLink* get_dst_link() const { return dst_wifi_link_; }