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
lte-test-deactivate-bearer.h
Go to the documentation of this file.
1
2
#ifndef LENA_TEST_DEACTIVATE_BEARER_H
3
#define LENA_TEST_DEACTIVATE_BEARER_H
4
5
#include "ns3/simulator.h"
6
#include "ns3/test.h"
7
8
namespace
ns3
9
{
10
11
/**
12
* \ingroup lte-test
13
*
14
* \brief Test case that for testing the deactivation of the bearer
15
* functionality. The test consist in deactivating the bearer and checking
16
* if some traffic will appear afterwards on the given bearer. If some traffic
17
* is detected the test will fail. Firs the de-activation is performed by
18
* using Simulator::Schedule() method which will initiate bearer de-activation
19
* after deActivateTime that is specified as the test parameter. Additionally,
20
* test instantiate de-activation in sequence.
21
*/
22
23
class
LenaDeactivateBearerTestCase
:
public
TestCase
24
{
25
public
:
26
/**
27
* Constructor
28
*
29
* \param dist distance between the nodes
30
* \param estThrPssDl estimated throughput PSS DL
31
* \param packetSize packet size in bytes
32
* \param interval interval time in ms
33
* \param errorModelEnabled whether the error model is enabled
34
* \param useIdealRrc whether to use ideal RRC
35
*/
36
LenaDeactivateBearerTestCase
(std::vector<uint16_t> dist,
37
std::vector<uint32_t> estThrPssDl,
38
std::vector<uint16_t>
packetSize
,
39
uint16_t interval,
40
bool
errorModelEnabled,
41
bool
useIdealRrc);
42
~LenaDeactivateBearerTestCase
()
override
;
43
44
private
:
45
/**
46
* Build name string function
47
*
48
* \param nUser number of UE nodes
49
* \param dist distance between nodes
50
* \returns name string
51
*/
52
static
std::string
BuildNameString
(uint16_t nUser, std::vector<uint16_t> dist);
53
void
DoRun
()
override
;
54
uint16_t
m_nUser
;
///< number of UE nodes
55
std::vector<uint16_t>
m_dist
;
///< distance between the nodes
56
std::vector<uint16_t>
m_packetSize
;
///< packet size in bytes
57
uint16_t
m_interval
;
///< interval time in ms
58
std::vector<uint32_t>
m_estThrPssDl
;
///< estimated threshold PSS DL
59
bool
m_errorModelEnabled
;
///< error mode enabled?
60
};
61
62
/**
63
* \ingroup lte-test
64
*
65
* \brief The test suite class for the LenaDeactivateBearerTestCase.
66
*/
67
68
class
LenaTestBearerDeactivateSuite
:
public
TestSuite
69
{
70
public
:
71
LenaTestBearerDeactivateSuite
();
72
};
73
74
}
// namespace ns3
75
76
#endif
ns3::LenaDeactivateBearerTestCase
Test case that for testing the deactivation of the bearer functionality.
Definition
lte-test-deactivate-bearer.h:24
ns3::LenaDeactivateBearerTestCase::m_packetSize
std::vector< uint16_t > m_packetSize
packet size in bytes
Definition
lte-test-deactivate-bearer.h:56
ns3::LenaDeactivateBearerTestCase::m_nUser
uint16_t m_nUser
number of UE nodes
Definition
lte-test-deactivate-bearer.h:54
ns3::LenaDeactivateBearerTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-deactivate-bearer.cc:130
ns3::LenaDeactivateBearerTestCase::m_errorModelEnabled
bool m_errorModelEnabled
error mode enabled?
Definition
lte-test-deactivate-bearer.h:59
ns3::LenaDeactivateBearerTestCase::LenaDeactivateBearerTestCase
LenaDeactivateBearerTestCase(std::vector< uint16_t > dist, std::vector< uint32_t > estThrPssDl, std::vector< uint16_t > packetSize, uint16_t interval, bool errorModelEnabled, bool useIdealRrc)
Constructor.
Definition
lte-test-deactivate-bearer.cc:109
ns3::LenaDeactivateBearerTestCase::~LenaDeactivateBearerTestCase
~LenaDeactivateBearerTestCase() override
Definition
lte-test-deactivate-bearer.cc:125
ns3::LenaDeactivateBearerTestCase::m_interval
uint16_t m_interval
interval time in ms
Definition
lte-test-deactivate-bearer.h:57
ns3::LenaDeactivateBearerTestCase::m_dist
std::vector< uint16_t > m_dist
distance between the nodes
Definition
lte-test-deactivate-bearer.h:55
ns3::LenaDeactivateBearerTestCase::BuildNameString
static std::string BuildNameString(uint16_t nUser, std::vector< uint16_t > dist)
Build name string function.
Definition
lte-test-deactivate-bearer.cc:97
ns3::LenaDeactivateBearerTestCase::m_estThrPssDl
std::vector< uint32_t > m_estThrPssDl
estimated threshold PSS DL
Definition
lte-test-deactivate-bearer.h:58
ns3::LenaTestBearerDeactivateSuite
The test suite class for the LenaDeactivateBearerTestCase.
Definition
lte-test-deactivate-bearer.h:69
ns3::LenaTestBearerDeactivateSuite::LenaTestBearerDeactivateSuite
LenaTestBearerDeactivateSuite()
Definition
lte-test-deactivate-bearer.cc:53
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::TestSuite
A suite of tests to run.
Definition
test.h:1267
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
packetSize
static const uint32_t packetSize
Packet size generated at the AP.
Definition
wifi-power-adaptation-distance.cc:96
src
lte
test
lte-test-deactivate-bearer.h
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0