X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d7621ee830197a4b0f44de326bbfe4397f0e1d6a..e116532f2474ef6a8a4a1a66b66fbdf0d17631a8:/src/kernel/resource/WifiLinkImpl.hpp diff --git a/src/kernel/resource/WifiLinkImpl.hpp b/src/kernel/resource/WifiLinkImpl.hpp index ff861dbf41..cd08f6dedd 100644 --- a/src/kernel/resource/WifiLinkImpl.hpp +++ b/src/kernel/resource/WifiLinkImpl.hpp @@ -1,15 +1,13 @@ -/* Copyright (c) 2019-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-2023. 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. */ -#ifndef SURF_NETWORK_WIFI_HPP_ -#define SURF_NETWORK_WIFI_HPP_ +#ifndef SIMGRID_KERNEL_NETWORK_WIFI_HPP_ +#define SIMGRID_KERNEL_NETWORK_WIFI_HPP_ -#include - -#include "src/surf/network_cm02.hpp" -#include "xbt/string.hpp" +#include "src/kernel/resource/models/network_cm02.hpp" +#include "xbt/ex.h" /*********** * Classes * @@ -21,7 +19,7 @@ class XBT_PRIVATE WifiLinkAction; class WifiLinkImpl : public StandardLinkImpl { /** @brief Hold every rates association between host and links (host name, rates id) */ - std::map host_rates_; + std::map> host_rates_; /** @brief A link can have several bandwidths attached to it (mostly use by wifi model) */ std::vector bandwidths_; @@ -61,7 +59,7 @@ public: void inc_active_flux(); void dec_active_flux(); static double wifi_link_dynamic_sharing(const WifiLinkImpl& link, double capacity, int n); - double get_max_ratio(int) const; + double get_max_ratio() const; size_t get_host_count() const; };