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 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Authors: Kirill Andreev <andreev@iitp.ru>
18 */
19
20#ifndef DOT11S_STACK_INSTALLER_H
21#define DOT11S_STACK_INSTALLER_H
22
23#include "ns3/mesh-stack-installer.h"
24
25namespace ns3
26{
27
28/**
29 * \ingroup dot11s
30 * \brief Helper class to allow easy installation of 802.11s stack.
31 */
32class Dot11sStack : public MeshStack
33{
34 public:
35 /**
36 * \brief Get the type ID.
37 * \return the object TypeId
38 */
39 static TypeId GetTypeId();
40
41 /**
42 * Create a Dot11sStack() installer helper.
43 */
45
46 /**
47 * Destroy a Dot11sStack() installer helper.
48 */
49 ~Dot11sStack() override;
50
51 /**
52 * Break any reference cycles in the installer helper. Required for ns-3
53 * Object support.
54 */
55 void DoDispose() override;
56
57 /**
58 * \brief Install an 802.11s stack.
59 * \param mp The Ptr<MeshPointDevice> to use when setting up the PMP.
60 * \return true if successful
61 */
62 bool InstallStack(Ptr<MeshPointDevice> mp) override;
63
64 /**
65 * \brief Iterate through the referenced devices and protocols and print
66 * their statistics
67 * \param mp The Ptr<MeshPointDevice> to use when setting up the PMP.
68 * \param os The output stream
69 */
70 void Report(const Ptr<MeshPointDevice> mp, std::ostream&) override;
71
72 /**
73 * \brief Reset the statistics on the referenced devices and protocols.
74 * \param mp The Ptr<MeshPointDevice> to use when setting up the PMP.
75 */
76 void ResetStats(const Ptr<MeshPointDevice> mp) override;
77
78 private:
80};
81
82} // namespace ns3
83
84#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
Definition: mac48-address.h:46
Prototype for class, which helps to install MAC-layer routing stack to ns3::MeshPointDevice.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.