Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
- Add wifi link
[simgrid.git] / src / surf / link_wifi.hpp
1 /* Copyright (c) 2013-2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SURF_LINK_WIFI_HPP_
7 #define SURF_LINK_WIFI_HPP_
8
9 #include "network_cm02.hpp"
10 #include "network_interface.hpp"
11 #include "src/surf/HostImpl.hpp"
12 #include "xbt/string.hpp"
13
14 namespace simgrid {
15 namespace kernel {
16 namespace resource {
17
18 class NetworkWifiLink : public NetworkCm02Link {
19   /** @brief Hold every rates association between host and links (host name, rates id) */
20   std::map<xbt::string, int> host_rates;
21
22   /** @brief Hold every rates available for this Access Point */
23   double* rates;
24
25 public:
26   void set_host_rate(sg_host_t host, int rate_level);
27 };
28
29 } // namespace resource
30 } // namespace kernel
31 } // namespace simgrid
32
33 #endif