A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
dot11s-installer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008,2009 IITP RAS
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Authors: Kirill Andreev <andreev@iitp.ru>
7 */
8
9#ifndef DOT11S_STACK_INSTALLER_H
10#define DOT11S_STACK_INSTALLER_H
11
12#include "ns3/mesh-stack-installer.h"
13
14namespace ns3
15{
16
17/**
18 * \ingroup dot11s
19 * \brief Helper class to allow easy installation of 802.11s stack.
20 */
21class Dot11sStack : public MeshStack
22{
23 public:
24 /**
25 * \brief Get the type ID.
26 * \return the object TypeId
27 */
28 static TypeId GetTypeId();
29
30 /**
31 * Create a Dot11sStack() installer helper.
32 */
34
35 /**
36 * Destroy a Dot11sStack() installer helper.
37 */
38 ~Dot11sStack() override;
39
40 /**
41 * Break any reference cycles in the installer helper. Required for ns-3
42 * Object support.
43 */
44 void DoDispose() override;
45
46 /**
47 * \brief Install an 802.11s stack.
48 * \param mp The Ptr<MeshPointDevice> to use when setting up the PMP.
49 * \return true if successful
50 */
51 bool InstallStack(Ptr<MeshPointDevice> mp) override;
52
53 /**
54 * \brief Iterate through the referenced devices and protocols and print
55 * their statistics
56 * \param mp The Ptr<MeshPointDevice> to use when setting up the PMP.
57 * \param os The output stream
58 */
59 void Report(const Ptr<MeshPointDevice> mp, std::ostream&) override;
60
61 /**
62 * \brief Reset the statistics on the referenced devices and protocols.
63 * \param mp The Ptr<MeshPointDevice> to use when setting up the PMP.
64 */
65 void ResetStats(const Ptr<MeshPointDevice> mp) override;
66
67 private:
69};
70
71} // namespace ns3
72
73#endif
Helper class to allow easy installation of 802.11s stack.
static TypeId GetTypeId()
Get the type ID.
~Dot11sStack() override
Destroy a Dot11sStack() installer helper.
void DoDispose() override
Break any reference cycles in the installer helper.
void Report(const Ptr< MeshPointDevice > mp, std::ostream &) override
Iterate through the referenced devices and protocols and print their statistics.
void ResetStats(const Ptr< MeshPointDevice > mp) override
Reset the statistics on the referenced devices and protocols.
bool InstallStack(Ptr< MeshPointDevice > mp) override
Install an 802.11s stack.
Dot11sStack()
Create a Dot11sStack() installer helper.
Mac48Address m_root
root
an EUI-48 address
Prototype for class, which helps to install MAC-layer routing stack to ns3::MeshPointDevice.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.