Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / src / surf / network_wifi.hpp
index 8ef62e8..dc16347 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2019-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2019-2021. 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. */
@@ -47,15 +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();
+  int get_host_count() const;
 };
 
 class NetworkWifiAction : public NetworkCm02Action {
@@ -63,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)