A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
14
namespace
ns3
15
{
16
17
/**
18
* \ingroup dot11s
19
* \brief Helper class to allow easy installation of 802.11s stack.
20
*/
21
class
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
*/
33
Dot11sStack
();
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
:
68
Mac48Address
m_root
;
///< root
69
};
70
71
}
// namespace ns3
72
73
#endif
ns3::Dot11sStack
Helper class to allow easy installation of 802.11s stack.
Definition
dot11s-installer.h:22
ns3::Dot11sStack::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
dot11s-installer.cc:21
ns3::Dot11sStack::~Dot11sStack
~Dot11sStack() override
Destroy a Dot11sStack() installer helper.
Definition
dot11s-installer.cc:40
ns3::Dot11sStack::DoDispose
void DoDispose() override
Break any reference cycles in the installer helper.
Definition
dot11s-installer.cc:45
ns3::Dot11sStack::Report
void Report(const Ptr< MeshPointDevice > mp, std::ostream &) override
Iterate through the referenced devices and protocols and print their statistics.
Definition
dot11s-installer.cc:79
ns3::Dot11sStack::ResetStats
void ResetStats(const Ptr< MeshPointDevice > mp) override
Reset the statistics on the referenced devices and protocols.
Definition
dot11s-installer.cc:102
ns3::Dot11sStack::InstallStack
bool InstallStack(Ptr< MeshPointDevice > mp) override
Install an 802.11s stack.
Definition
dot11s-installer.cc:50
ns3::Dot11sStack::Dot11sStack
Dot11sStack()
Create a Dot11sStack() installer helper.
Definition
dot11s-installer.cc:35
ns3::Dot11sStack::m_root
Mac48Address m_root
root
Definition
dot11s-installer.h:68
ns3::Mac48Address
an EUI-48 address
Definition
mac48-address.h:35
ns3::MeshStack
Prototype for class, which helps to install MAC-layer routing stack to ns3::MeshPointDevice.
Definition
mesh-stack-installer.h:25
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
mesh
helper
dot11s
dot11s-installer.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0