X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c283778f5efa5126febb356da7609cf6230a6067..f3b7e5f4b4d7c87ee3e8827313ec966ea8fc8387:/src/surf/network_wifi.hpp diff --git a/src/surf/network_wifi.hpp b/src/surf/network_wifi.hpp index f0d2cce6c0..51f566b486 100644 --- a/src/surf/network_wifi.hpp +++ b/src/surf/network_wifi.hpp @@ -25,7 +25,7 @@ class NetworkWifiLink : public LinkImpl { /** @brief Hold every rates association between host and links (host name, rates id) */ std::map host_rates_; - /** @brief A link can have several bandwith attach to it (mostly use by wifi model) */ + /** @brief A link can have several bandwidths attached to it (mostly use by wifi model) */ std::vector bandwidths_; /** @brief Should we use the decay model ? */ @@ -47,14 +47,15 @@ public: 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) */ - double get_host_rate(const s4u::Host* host); + double get_host_rate(const s4u::Host* host) const; - s4u::Link::SharingPolicy get_sharing_policy() override; + s4u::Link::SharingPolicy get_sharing_policy() const override; void apply_event(kernel::profile::Event*, double) override { THROW_UNIMPLEMENTED; } void set_bandwidth(double) override { THROW_UNIMPLEMENTED; } void set_latency(double) override { THROW_UNIMPLEMENTED; } void refresh_decay_bandwidths(); bool toggle_decay_model(); + int get_host_count() const; }; class NetworkWifiAction : public NetworkCm02Action { @@ -62,6 +63,7 @@ class NetworkWifiAction : public NetworkCm02Action { NetworkWifiLink* dst_wifi_link_; public: + NetworkWifiAction() = delete; 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)