X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc646b32904fce0465f564d149a830c8e7aeffe4..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/include/simgrid/kernel/routing/WifiZone.hpp diff --git a/include/simgrid/kernel/routing/WifiZone.hpp b/include/simgrid/kernel/routing/WifiZone.hpp index 15cc9b01e1..2f251430a4 100644 --- a/include/simgrid/kernel/routing/WifiZone.hpp +++ b/include/simgrid/kernel/routing/WifiZone.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-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. */ @@ -19,20 +19,19 @@ namespace routing { * That link is used for all communications within the zone. */ class XBT_PRIVATE WifiZone : public RoutedZone { + resource::StandardLinkImpl* wifi_link_ = nullptr; // Representing the air media (there is no such thing in NS-3) + NetPoint* access_point_ = nullptr; // Zone's gateway to the external world + + void do_seal() override; + resource::StandardLinkImpl* do_create_link(const std::string& name, const std::vector& bandwidths) override; + public: - explicit WifiZone(NetZoneImpl* father, const std::string& name, resource::NetworkModel* netmodel); + using RoutedZone::RoutedZone; WifiZone(const WifiZone&) = delete; WifiZone& operator=(const WifiZone) = delete; - void seal() override; - void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; - s4u::Link* create_link(const std::string& name, const std::vector& bandwidths, - s4u::Link::SharingPolicy policy) override; - NetPoint* get_access_point() {return access_point_;} - -private: - resource::LinkImpl* wifi_link_ = nullptr; // Representing the air media (there is no such thing in NS-3) - NetPoint* access_point_ = nullptr; // Zone's gateway to the external world + void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override; + NetPoint* get_access_point() const { return access_point_; } }; } // namespace routing } // namespace kernel