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