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-um-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_UM_TRANSMITTER_H
10
#define LTE_TEST_RLC_UM_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 for RLC UM: Only transmitter part.
32
*/
33
class
LteRlcUmTransmitterTestSuite
:
public
TestSuite
34
{
35
public
:
36
LteRlcUmTransmitterTestSuite
();
37
};
38
39
/**
40
* \ingroup lte-test
41
*
42
* \brief Test case used by LteRlcUmTransmitterOneSduTestCase to create topology
43
* and to implement functionalities and check if data received corresponds to
44
* data sent.
45
*/
46
class
LteRlcUmTransmitterTestCase
:
public
TestCase
47
{
48
public
:
49
/**
50
* Constructor
51
*
52
* \param name the test name
53
*/
54
LteRlcUmTransmitterTestCase
(std::string name);
55
LteRlcUmTransmitterTestCase
();
56
~LteRlcUmTransmitterTestCase
()
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 One SDU, One PDU
86
*/
87
class
LteRlcUmTransmitterOneSduTestCase
:
public
LteRlcUmTransmitterTestCase
88
{
89
public
:
90
/**
91
* Constructor
92
*
93
* \param name the test name
94
*/
95
LteRlcUmTransmitterOneSduTestCase
(std::string name);
96
LteRlcUmTransmitterOneSduTestCase
();
97
~LteRlcUmTransmitterOneSduTestCase
()
override
;
98
99
private
:
100
void
DoRun
()
override
;
101
};
102
103
/**
104
* \ingroup lte-test
105
*
106
* \brief Test 4.1.1.2 Segmentation (One SDU => n PDUs)
107
*/
108
class
LteRlcUmTransmitterSegmentationTestCase
:
public
LteRlcUmTransmitterTestCase
109
{
110
public
:
111
/**
112
* Constructor
113
*
114
* \param name the reference name
115
*/
116
LteRlcUmTransmitterSegmentationTestCase
(std::string name);
117
LteRlcUmTransmitterSegmentationTestCase
();
118
~LteRlcUmTransmitterSegmentationTestCase
()
override
;
119
120
private
:
121
void
DoRun
()
override
;
122
};
123
124
/**
125
* \ingroup lte-test
126
*
127
* \brief Test 4.1.1.3 Concatenation (n SDUs => One PDU)
128
*/
129
class
LteRlcUmTransmitterConcatenationTestCase
:
public
LteRlcUmTransmitterTestCase
130
{
131
public
:
132
/**
133
* Constructor
134
*
135
* \param name the reference name
136
*/
137
LteRlcUmTransmitterConcatenationTestCase
(std::string name);
138
LteRlcUmTransmitterConcatenationTestCase
();
139
~LteRlcUmTransmitterConcatenationTestCase
()
override
;
140
141
private
:
142
void
DoRun
()
override
;
143
};
144
145
/**
146
* \ingroup lte-test
147
*
148
* \brief Test 4.1.1.4 Report Buffer Status (test primitive parameters)
149
*/
150
class
LteRlcUmTransmitterReportBufferStatusTestCase
:
public
LteRlcUmTransmitterTestCase
151
{
152
public
:
153
/**
154
* Constructor
155
*
156
* \param name the reference name
157
*/
158
LteRlcUmTransmitterReportBufferStatusTestCase
(std::string name);
159
LteRlcUmTransmitterReportBufferStatusTestCase
();
160
~LteRlcUmTransmitterReportBufferStatusTestCase
()
override
;
161
162
private
:
163
void
DoRun
()
override
;
164
};
165
166
#endif
/* LTE_TEST_RLC_UM_TRANSMITTER_H */
LteRlcUmTransmitterConcatenationTestCase
Test 4.1.1.3 Concatenation (n SDUs => One PDU)
Definition
lte-test-rlc-um-transmitter.h:130
LteRlcUmTransmitterConcatenationTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-um-transmitter.cc:203
LteRlcUmTransmitterConcatenationTestCase::~LteRlcUmTransmitterConcatenationTestCase
~LteRlcUmTransmitterConcatenationTestCase() override
Definition
lte-test-rlc-um-transmitter.cc:198
LteRlcUmTransmitterConcatenationTestCase::LteRlcUmTransmitterConcatenationTestCase
LteRlcUmTransmitterConcatenationTestCase()
LteRlcUmTransmitterOneSduTestCase
Test 4.1.1.1 One SDU, One PDU.
Definition
lte-test-rlc-um-transmitter.h:88
LteRlcUmTransmitterOneSduTestCase::LteRlcUmTransmitterOneSduTestCase
LteRlcUmTransmitterOneSduTestCase()
LteRlcUmTransmitterOneSduTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-um-transmitter.cc:128
LteRlcUmTransmitterOneSduTestCase::~LteRlcUmTransmitterOneSduTestCase
~LteRlcUmTransmitterOneSduTestCase() override
Definition
lte-test-rlc-um-transmitter.cc:123
LteRlcUmTransmitterReportBufferStatusTestCase
Test 4.1.1.4 Report Buffer Status (test primitive parameters)
Definition
lte-test-rlc-um-transmitter.h:151
LteRlcUmTransmitterReportBufferStatusTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-um-transmitter.cc:239
LteRlcUmTransmitterReportBufferStatusTestCase::~LteRlcUmTransmitterReportBufferStatusTestCase
~LteRlcUmTransmitterReportBufferStatusTestCase() override
Definition
lte-test-rlc-um-transmitter.cc:234
LteRlcUmTransmitterReportBufferStatusTestCase::LteRlcUmTransmitterReportBufferStatusTestCase
LteRlcUmTransmitterReportBufferStatusTestCase()
LteRlcUmTransmitterSegmentationTestCase
Test 4.1.1.2 Segmentation (One SDU => n PDUs)
Definition
lte-test-rlc-um-transmitter.h:109
LteRlcUmTransmitterSegmentationTestCase::~LteRlcUmTransmitterSegmentationTestCase
~LteRlcUmTransmitterSegmentationTestCase() override
Definition
lte-test-rlc-um-transmitter.cc:156
LteRlcUmTransmitterSegmentationTestCase::LteRlcUmTransmitterSegmentationTestCase
LteRlcUmTransmitterSegmentationTestCase()
LteRlcUmTransmitterSegmentationTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-um-transmitter.cc:161
LteRlcUmTransmitterTestCase
Test case used by LteRlcUmTransmitterOneSduTestCase to create topology and to implement functionaliti...
Definition
lte-test-rlc-um-transmitter.h:47
LteRlcUmTransmitterTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-um-transmitter.cc:61
LteRlcUmTransmitterTestCase::txPdcp
Ptr< LteTestPdcp > txPdcp
the transmit PDCP
Definition
lte-test-rlc-um-transmitter.h:69
LteRlcUmTransmitterTestCase::CheckDataReceived
void CheckDataReceived(Time time, std::string shouldReceived, std::string assertMsg)
Check data received function.
Definition
lte-test-rlc-um-transmitter.cc:98
LteRlcUmTransmitterTestCase::txRlc
Ptr< LteRlc > txRlc
the RLC
Definition
lte-test-rlc-um-transmitter.h:70
LteRlcUmTransmitterTestCase::~LteRlcUmTransmitterTestCase
~LteRlcUmTransmitterTestCase() override
Definition
lte-test-rlc-um-transmitter.cc:56
LteRlcUmTransmitterTestCase::txMac
Ptr< LteTestMac > txMac
the MAC
Definition
lte-test-rlc-um-transmitter.h:71
LteRlcUmTransmitterTestCase::DoCheckDataReceived
void DoCheckDataReceived(std::string shouldReceived, std::string assertMsg)
Check data received function.
Definition
lte-test-rlc-um-transmitter.cc:110
LteRlcUmTransmitterTestCase::LteRlcUmTransmitterTestCase
LteRlcUmTransmitterTestCase()
LteRlcUmTransmitterTestSuite
TestSuite 4.1.1 for RLC UM: Only transmitter part.
Definition
lte-test-rlc-um-transmitter.h:34
LteRlcUmTransmitterTestSuite::LteRlcUmTransmitterTestSuite
LteRlcUmTransmitterTestSuite()
TestSuite 4.1.1 RLC UM: Only transmitter.
Definition
lte-test-rlc-um-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-um-transmitter.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0