-/* 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. */
* That link is used for all communications within the zone.
*/
class XBT_PRIVATE WifiZone : public RoutedZone {
- resource::LinkImpl* wifi_link_ = nullptr; // Representing the air media (there is no such thing in NS-3)
+ 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<double>& bandwidths) override;
public:
using RoutedZone::RoutedZone;
WifiZone& operator=(const WifiZone) = delete;
void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override;
- s4u::Link* create_link(const std::string& name, const std::vector<double>& bandwidths) override;
NetPoint* get_access_point() const { return access_point_; }
};
} // namespace routing