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
pmp-regression.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 IITP RAS
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Authors: Pavel Boyko <boyko@iitp.ru>
7
*/
8
9
#ifndef PMP_REGRESSION_H
10
#define PMP_REGRESSION_H
11
#include "ns3/node-container.h"
12
#include "ns3/nstime.h"
13
#include "ns3/test.h"
14
15
using namespace
ns3
;
16
17
/**
18
* \ingroup dot11s-test
19
*
20
* \brief Peering Management Protocol regression test
21
*
22
* Initiate scenario with 2 stations. Procedure of opening peer link
23
* is the following:
24
* \verbatim
25
* |----------->| Beacon
26
* |----------->| Peer Link Open frame
27
* |<-----------| Peer Link Confirm frame
28
* |<-----------| Peer Link Open frame
29
* |----------->| Peer Link Confirm frame
30
* |............|
31
* |<---------->| Other beacons
32
* \endverbatim
33
*/
34
class
PeerManagementProtocolRegressionTest
:
public
TestCase
35
{
36
public
:
37
PeerManagementProtocolRegressionTest
();
38
~PeerManagementProtocolRegressionTest
()
override
;
39
40
private
:
41
/// \internal It is important to have pointers here
42
NodeContainer
*
m_nodes
;
43
/// Simulation time
44
Time
m_time
;
45
46
/// Create nodes function
47
void
CreateNodes
();
48
/// Create devices function
49
void
CreateDevices
();
50
/// Check results function
51
void
CheckResults
();
52
void
DoRun
()
override
;
53
};
54
#endif
/* PMP_REGRESSION_H */
PeerManagementProtocolRegressionTest
Peering Management Protocol regression test.
Definition
pmp-regression.h:35
PeerManagementProtocolRegressionTest::CreateDevices
void CreateDevices()
Create devices function.
Definition
pmp-regression.cc:84
PeerManagementProtocolRegressionTest::m_time
Time m_time
Simulation time.
Definition
pmp-regression.h:44
PeerManagementProtocolRegressionTest::PeerManagementProtocolRegressionTest
PeerManagementProtocolRegressionTest()
Definition
pmp-regression.cc:31
PeerManagementProtocolRegressionTest::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
pmp-regression.cc:44
PeerManagementProtocolRegressionTest::~PeerManagementProtocolRegressionTest
~PeerManagementProtocolRegressionTest() override
Definition
pmp-regression.cc:38
PeerManagementProtocolRegressionTest::m_nodes
NodeContainer * m_nodes
Definition
pmp-regression.h:42
PeerManagementProtocolRegressionTest::CheckResults
void CheckResults()
Check results function.
Definition
pmp-regression.cc:108
PeerManagementProtocolRegressionTest::CreateNodes
void CreateNodes()
Create nodes function.
Definition
pmp-regression.cc:61
ns3::NodeContainer
keep track of a set of node pointers.
Definition
node-container.h:29
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
mesh
test
dot11s
pmp-regression.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0