A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog update
[simgrid.git]
/
src
/
kernel
/
resource
/
WifiLinkImpl.hpp
diff --git
a/src/kernel/resource/WifiLinkImpl.hpp
b/src/kernel/resource/WifiLinkImpl.hpp
index a8755660defd69e6b4bbb94fe5a0c81e4ccb254f..969eeeb260eccef35c30cdcc19c822b6dda0d24a 100644
(file)
--- a/
src/kernel/resource/WifiLinkImpl.hpp
+++ b/
src/kernel/resource/WifiLinkImpl.hpp
@@
-1,15
+1,13
@@
-/* Copyright (c) 2019-202
2
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2019-202
3
. 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. */
/* 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 S
URF
_NETWORK_WIFI_HPP_
-#define S
URF
_NETWORK_WIFI_HPP_
+#ifndef S
IMGRID_KERNEL
_NETWORK_WIFI_HPP_
+#define S
IMGRID_KERNEL
_NETWORK_WIFI_HPP_
-#include <xbt/base.h>
-
-#include "src/surf/network_cm02.hpp"
-#include "xbt/string.hpp"
+#include "src/kernel/resource/models/network_cm02.hpp"
+#include "xbt/ex.h"
/***********
* Classes *
/***********
* 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) */
class WifiLinkImpl : public StandardLinkImpl {
/** @brief Hold every rates association between host and links (host name, rates id) */
- std::map<
xbt::string, int
> host_rates_;
+ std::map<
std::string, int, std::less<>
> host_rates_;
/** @brief A link can have several bandwidths attached to it (mostly use by wifi model) */
std::vector<Metric> bandwidths_;
/** @brief A link can have several bandwidths attached to it (mostly use by wifi model) */
std::vector<Metric> bandwidths_;
@@
-55,9
+53,7
@@
public:
void set_latency(double) override;
bool toggle_callback();
void set_latency(double) override;
bool toggle_callback();
- static void update_bw_comm_start(const kernel::activity::CommImpl&);
- static void update_bw_comm_end(const simgrid::kernel::resource::NetworkAction& action,
- simgrid::kernel::resource::Action::State state);
+ static void update_bw_comm_end(const NetworkAction& action, Action::State state);
void inc_active_flux();
void dec_active_flux();
static double wifi_link_dynamic_sharing(const WifiLinkImpl& link, double capacity, int n);
void inc_active_flux();
void dec_active_flux();
static double wifi_link_dynamic_sharing(const WifiLinkImpl& link, double capacity, int n);