Helper class to allow easy installation of 802.11s stack. More...
#include <dot11s-installer.h>
Public Member Functions | |
Dot11sStack () | |
~Dot11sStack () | |
void | DoDispose () |
bool | InstallStack (Ptr< MeshPointDevice > mp) |
Install an 802.11s stack. | |
void | Report (const Ptr< MeshPointDevice > mp, std::ostream &) |
Iterate through the referenced devices and protocols and print their statistics. | |
void | ResetStats (const Ptr< MeshPointDevice > mp) |
Reset the statistics on the referenced devices and protocols. |
Static Public Member Functions | |
static TypeId | GetTypeId () |
This method returns the TypeId associated to ns3::Dot11sStack. |
Private Attributes | |
Mac48Address | m_root |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
Helper class to allow easy installation of 802.11s stack.
Definition at line 31 of file dot11s-installer.h.
ns3::Dot11sStack::Dot11sStack | ( | ) |
Create a Dot11sStack() installer helper.
Definition at line 42 of file dot11s-installer.cc.
ns3::Dot11sStack::~Dot11sStack | ( | ) |
Destroy a Dot11sStack() installer helper.
Definition at line 46 of file dot11s-installer.cc.
|
virtual |
Break any reference cycles in the installer helper. Required for ns-3 Object support.
Reimplemented from ns3::Object.
Definition at line 50 of file dot11s-installer.cc.
|
static |
This method returns the TypeId associated to ns3::Dot11sStack.
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
Definition at line 30 of file dot11s-installer.cc.
References m_root, and ns3::TypeId::SetParent().
|
virtual |
Install an 802.11s stack.
mp | The Ptr<MeshPointDevice> to use when setting up the PMP. |
Implements ns3::MeshStack.
Definition at line 54 of file dot11s-installer.cc.
References ns3::MeshPointDevice::GetAddress(), ns3::dot11s::PeerManagementProtocol::GetPeers(), ns3::dot11s::PeerManagementProtocol::Install(), ns3::dot11s::HwmpProtocol::Install(), m_root, ns3::MakeCallback(), ns3::PeekPointer(), ns3::dot11s::HwmpProtocol::PeerLinkStatus(), ns3::dot11s::PeerManagementProtocol::SetMeshId(), ns3::dot11s::HwmpProtocol::SetNeighboursCallback(), ns3::dot11s::PeerManagementProtocol::SetPeerLinkStatusCallback(), and ns3::dot11s::HwmpProtocol::SetRoot().
|
virtual |
Iterate through the referenced devices and protocols and print their statistics.
Implements ns3::MeshStack.
Definition at line 82 of file dot11s-installer.cc.
References ns3::MeshPointDevice::GetInterfaces(), ns3::Object::GetObject(), NS_ASSERT, ns3::dot11s::HwmpProtocol::Report(), ns3::MeshPointDevice::Report(), ns3::MeshWifiInterfaceMac::Report(), and ns3::dot11s::PeerManagementProtocol::Report().
|
virtual |
Reset the statistics on the referenced devices and protocols.
Implements ns3::MeshStack.
Definition at line 104 of file dot11s-installer.cc.
References ns3::MeshPointDevice::GetInterfaces(), ns3::Object::GetObject(), NS_ASSERT, ns3::dot11s::HwmpProtocol::ResetStats(), ns3::MeshPointDevice::ResetStats(), ns3::MeshWifiInterfaceMac::ResetStats(), and ns3::dot11s::PeerManagementProtocol::ResetStats().
|
private |
Definition at line 72 of file dot11s-installer.h.
Referenced by GetTypeId(), and InstallStack().