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-rlc-am-transmitter.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
*/
8
9
#ifndef LTE_TEST_RLC_AM_TRANSMITTER_H
10
#define LTE_TEST_RLC_AM_TRANSMITTER_H
11
12
#include "ns3/nstime.h"
13
#include "ns3/ptr.h"
14
#include "ns3/test.h"
15
16
namespace
ns3
17
{
18
19
class
LteTestRrc
;
20
class
LteTestMac
;
21
class
LteTestPdcp
;
22
class
LteRlc
;
23
24
}
// namespace ns3
25
26
using namespace
ns3
;
27
28
/**
29
* \ingroup lte-test
30
*
31
* \brief TestSuite 4.1.1 RLC AM: Only transmitter functionality.
32
*/
33
class
LteRlcAmTransmitterTestSuite
:
public
TestSuite
34
{
35
public
:
36
LteRlcAmTransmitterTestSuite
();
37
};
38
39
/**
40
* \ingroup lte-test
41
*
42
* \brief Test case used by LteRlcAmTransmitterOneSduTestCase to create topology
43
* and to implement functionalities and check if data received corresponds to
44
* data sent.
45
*/
46
class
LteRlcAmTransmitterTestCase
:
public
TestCase
47
{
48
public
:
49
/**
50
* Constructor
51
*
52
* \param name the reference name
53
*/
54
LteRlcAmTransmitterTestCase
(std::string name);
55
LteRlcAmTransmitterTestCase
();
56
~LteRlcAmTransmitterTestCase
()
override
;
57
58
/**
59
* Check data received function
60
* \param time the time to check
61
* \param shouldReceived should have received indicator
62
* \param assertMsg the assert message
63
*/
64
void
CheckDataReceived
(
Time
time, std::string shouldReceived, std::string assertMsg);
65
66
protected
:
67
void
DoRun
()
override
;
68
69
Ptr<LteTestPdcp>
txPdcp
;
///< the transmit PDCP
70
Ptr<LteRlc>
txRlc
;
///< the RLC
71
Ptr<LteTestMac>
txMac
;
///< the MAC
72
73
private
:
74
/**
75
* Check data received function
76
* \param shouldReceived should have received indicator
77
* \param assertMsg the assert message
78
*/
79
void
DoCheckDataReceived
(std::string shouldReceived, std::string assertMsg);
80
};
81
82
/**
83
* \ingroup lte-test
84
*
85
* \brief Test 4.1.1.1 Test that SDU transmitted at PDCP corresponds to PDU
86
* received by MAC.
87
*/
88
class
LteRlcAmTransmitterOneSduTestCase
:
public
LteRlcAmTransmitterTestCase
89
{
90
public
:
91
/**
92
* Constructor
93
*
94
* \param name the reference name
95
*/
96
LteRlcAmTransmitterOneSduTestCase
(std::string name);
97
LteRlcAmTransmitterOneSduTestCase
();
98
~LteRlcAmTransmitterOneSduTestCase
()
override
;
99
100
private
:
101
void
DoRun
()
override
;
102
};
103
104
/**
105
* \ingroup lte-test
106
*
107
* \brief Test 4.1.1.2 Test the correct functionality of the Segmentation.
108
* Test check that single SDU is properly segmented to n PDUs.
109
*/
110
class
LteRlcAmTransmitterSegmentationTestCase
:
public
LteRlcAmTransmitterTestCase
111
{
112
public
:
113
/**
114
* Constructor
115
*
116
* \param name the reference name
117
*/
118
LteRlcAmTransmitterSegmentationTestCase
(std::string name);
119
LteRlcAmTransmitterSegmentationTestCase
();
120
~LteRlcAmTransmitterSegmentationTestCase
()
override
;
121
122
private
:
123
void
DoRun
()
override
;
124
};
125
126
/**
127
* \ingroup lte-test
128
*
129
* \brief Test 4.1.1.3 Test that concatenation functionality works properly.
130
* Test check if n SDUs are correctly contactenate to single PDU.
131
*/
132
class
LteRlcAmTransmitterConcatenationTestCase
:
public
LteRlcAmTransmitterTestCase
133
{
134
public
:
135
/**
136
* Constructor
137
*
138
* \param name the reference name
139
*/
140
LteRlcAmTransmitterConcatenationTestCase
(std::string name);
141
LteRlcAmTransmitterConcatenationTestCase
();
142
~LteRlcAmTransmitterConcatenationTestCase
()
override
;
143
144
private
:
145
void
DoRun
()
override
;
146
};
147
148
/**
149
* \ingroup lte-test
150
*
151
* \brief Test 4.1.1.4 Test checks functionality of Report Buffer Status by
152
* testing primitive parameters.
153
*/
154
class
LteRlcAmTransmitterReportBufferStatusTestCase
:
public
LteRlcAmTransmitterTestCase
155
{
156
public
:
157
/**
158
* Constructor
159
*
160
* \param name the reference name
161
*/
162
LteRlcAmTransmitterReportBufferStatusTestCase
(std::string name);
163
LteRlcAmTransmitterReportBufferStatusTestCase
();
164
~LteRlcAmTransmitterReportBufferStatusTestCase
()
override
;
165
166
private
:
167
void
DoRun
()
override
;
168
};
169
170
#endif
// LTE_TEST_RLC_AM_TRANSMITTER_H
LteRlcAmTransmitterConcatenationTestCase
Test 4.1.1.3 Test that concatenation functionality works properly.
Definition
lte-test-rlc-am-transmitter.h:133
LteRlcAmTransmitterConcatenationTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-am-transmitter.cc:201
LteRlcAmTransmitterConcatenationTestCase::LteRlcAmTransmitterConcatenationTestCase
LteRlcAmTransmitterConcatenationTestCase()
LteRlcAmTransmitterConcatenationTestCase::~LteRlcAmTransmitterConcatenationTestCase
~LteRlcAmTransmitterConcatenationTestCase() override
Definition
lte-test-rlc-am-transmitter.cc:196
LteRlcAmTransmitterOneSduTestCase
Test 4.1.1.1 Test that SDU transmitted at PDCP corresponds to PDU received by MAC.
Definition
lte-test-rlc-am-transmitter.h:89
LteRlcAmTransmitterOneSduTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-am-transmitter.cc:125
LteRlcAmTransmitterOneSduTestCase::LteRlcAmTransmitterOneSduTestCase
LteRlcAmTransmitterOneSduTestCase()
LteRlcAmTransmitterOneSduTestCase::~LteRlcAmTransmitterOneSduTestCase
~LteRlcAmTransmitterOneSduTestCase() override
Definition
lte-test-rlc-am-transmitter.cc:120
LteRlcAmTransmitterReportBufferStatusTestCase
Test 4.1.1.4 Test checks functionality of Report Buffer Status by testing primitive parameters.
Definition
lte-test-rlc-am-transmitter.h:155
LteRlcAmTransmitterReportBufferStatusTestCase::LteRlcAmTransmitterReportBufferStatusTestCase
LteRlcAmTransmitterReportBufferStatusTestCase()
LteRlcAmTransmitterReportBufferStatusTestCase::~LteRlcAmTransmitterReportBufferStatusTestCase
~LteRlcAmTransmitterReportBufferStatusTestCase() override
Definition
lte-test-rlc-am-transmitter.cc:234
LteRlcAmTransmitterReportBufferStatusTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-am-transmitter.cc:239
LteRlcAmTransmitterSegmentationTestCase
Test 4.1.1.2 Test the correct functionality of the Segmentation.
Definition
lte-test-rlc-am-transmitter.h:111
LteRlcAmTransmitterSegmentationTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-am-transmitter.cc:158
LteRlcAmTransmitterSegmentationTestCase::LteRlcAmTransmitterSegmentationTestCase
LteRlcAmTransmitterSegmentationTestCase()
LteRlcAmTransmitterSegmentationTestCase::~LteRlcAmTransmitterSegmentationTestCase
~LteRlcAmTransmitterSegmentationTestCase() override
Definition
lte-test-rlc-am-transmitter.cc:153
LteRlcAmTransmitterTestCase
Test case used by LteRlcAmTransmitterOneSduTestCase to create topology and to implement functionaliti...
Definition
lte-test-rlc-am-transmitter.h:47
LteRlcAmTransmitterTestCase::txPdcp
Ptr< LteTestPdcp > txPdcp
the transmit PDCP
Definition
lte-test-rlc-am-transmitter.h:69
LteRlcAmTransmitterTestCase::~LteRlcAmTransmitterTestCase
~LteRlcAmTransmitterTestCase() override
Definition
lte-test-rlc-am-transmitter.cc:53
LteRlcAmTransmitterTestCase::CheckDataReceived
void CheckDataReceived(Time time, std::string shouldReceived, std::string assertMsg)
Check data received function.
Definition
lte-test-rlc-am-transmitter.cc:95
LteRlcAmTransmitterTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-am-transmitter.cc:58
LteRlcAmTransmitterTestCase::DoCheckDataReceived
void DoCheckDataReceived(std::string shouldReceived, std::string assertMsg)
Check data received function.
Definition
lte-test-rlc-am-transmitter.cc:107
LteRlcAmTransmitterTestCase::txRlc
Ptr< LteRlc > txRlc
the RLC
Definition
lte-test-rlc-am-transmitter.h:70
LteRlcAmTransmitterTestCase::txMac
Ptr< LteTestMac > txMac
the MAC
Definition
lte-test-rlc-am-transmitter.h:71
LteRlcAmTransmitterTestCase::LteRlcAmTransmitterTestCase
LteRlcAmTransmitterTestCase()
LteRlcAmTransmitterTestSuite
TestSuite 4.1.1 RLC AM: Only transmitter functionality.
Definition
lte-test-rlc-am-transmitter.h:34
LteRlcAmTransmitterTestSuite::LteRlcAmTransmitterTestSuite
LteRlcAmTransmitterTestSuite()
TestSuite 4.1.1 RLC AM: Only transmitter.
Definition
lte-test-rlc-am-transmitter.cc:26
ns3::LteRlc
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE,...
Definition
lte-rlc.h:38
ns3::LteTestMac
This class implements a testing loopback MAC layer.
Definition
lte-test-entities.h:223
ns3::LteTestPdcp
This class implements a testing PDCP entity.
Definition
lte-test-entities.h:161
ns3::LteTestRrc
This class implements a testing RRC entity.
Definition
lte-test-entities.h:29
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::TestSuite
A suite of tests to run.
Definition
test.h:1267
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
lte
test
lte-test-rlc-am-transmitter.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0