A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
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
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Manuel Requena <manuel.requena@cttc.es>
18
*/
19
20
#ifndef LTE_TEST_RLC_UM_TRANSMITTER_H
21
#define LTE_TEST_RLC_UM_TRANSMITTER_H
22
23
#include "ns3/nstime.h"
24
#include "ns3/ptr.h"
25
#include "ns3/test.h"
26
27
namespace
ns3
28
{
29
30
class
LteTestRrc
;
31
class
LteTestMac
;
32
class
LteTestPdcp
;
33
class
LteRlc
;
34
35
}
// namespace ns3
36
37
using namespace
ns3
;
38
44
class
LteRlcUmTransmitterTestSuite
:
public
TestSuite
45
{
46
public
:
47
LteRlcUmTransmitterTestSuite
();
48
};
49
57
class
LteRlcUmTransmitterTestCase
:
public
TestCase
58
{
59
public
:
65
LteRlcUmTransmitterTestCase
(std::string name);
66
LteRlcUmTransmitterTestCase
();
67
~
LteRlcUmTransmitterTestCase
()
override
;
68
75
void
CheckDataReceived(
Time
time, std::string shouldReceived, std::string assertMsg);
76
77
protected
:
78
void
DoRun()
override
;
79
80
Ptr<LteTestPdcp>
txPdcp
;
81
Ptr<LteRlc>
txRlc
;
82
Ptr<LteTestMac>
txMac
;
83
84
private
:
90
void
DoCheckDataReceived(std::string shouldReceived, std::string assertMsg);
91
};
92
98
class
LteRlcUmTransmitterOneSduTestCase
:
public
LteRlcUmTransmitterTestCase
99
{
100
public
:
106
LteRlcUmTransmitterOneSduTestCase
(std::string name);
107
LteRlcUmTransmitterOneSduTestCase
();
108
~
LteRlcUmTransmitterOneSduTestCase
()
override
;
109
110
private
:
111
void
DoRun()
override
;
112
};
113
119
class
LteRlcUmTransmitterSegmentationTestCase
:
public
LteRlcUmTransmitterTestCase
120
{
121
public
:
127
LteRlcUmTransmitterSegmentationTestCase
(std::string name);
128
LteRlcUmTransmitterSegmentationTestCase
();
129
~
LteRlcUmTransmitterSegmentationTestCase
()
override
;
130
131
private
:
132
void
DoRun()
override
;
133
};
134
140
class
LteRlcUmTransmitterConcatenationTestCase
:
public
LteRlcUmTransmitterTestCase
141
{
142
public
:
148
LteRlcUmTransmitterConcatenationTestCase
(std::string name);
149
LteRlcUmTransmitterConcatenationTestCase
();
150
~
LteRlcUmTransmitterConcatenationTestCase
()
override
;
151
152
private
:
153
void
DoRun()
override
;
154
};
155
161
class
LteRlcUmTransmitterReportBufferStatusTestCase
:
public
LteRlcUmTransmitterTestCase
162
{
163
public
:
169
LteRlcUmTransmitterReportBufferStatusTestCase
(std::string name);
170
LteRlcUmTransmitterReportBufferStatusTestCase
();
171
~
LteRlcUmTransmitterReportBufferStatusTestCase
()
override
;
172
173
private
:
174
void
DoRun()
override
;
175
};
176
177
#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:141
LteRlcUmTransmitterConcatenationTestCase::LteRlcUmTransmitterConcatenationTestCase
LteRlcUmTransmitterConcatenationTestCase()
LteRlcUmTransmitterOneSduTestCase
Test 4.1.1.1 One SDU, One PDU.
Definition:
lte-test-rlc-um-transmitter.h:99
LteRlcUmTransmitterOneSduTestCase::LteRlcUmTransmitterOneSduTestCase
LteRlcUmTransmitterOneSduTestCase()
LteRlcUmTransmitterReportBufferStatusTestCase
Test 4.1.1.4 Report Buffer Status (test primitive parameters)
Definition:
lte-test-rlc-um-transmitter.h:162
LteRlcUmTransmitterReportBufferStatusTestCase::LteRlcUmTransmitterReportBufferStatusTestCase
LteRlcUmTransmitterReportBufferStatusTestCase()
LteRlcUmTransmitterSegmentationTestCase
Test 4.1.1.2 Segmentation (One SDU => n PDUs)
Definition:
lte-test-rlc-um-transmitter.h:120
LteRlcUmTransmitterSegmentationTestCase::LteRlcUmTransmitterSegmentationTestCase
LteRlcUmTransmitterSegmentationTestCase()
LteRlcUmTransmitterTestCase
Test case used by LteRlcUmTransmitterOneSduTestCase to create topology and to implement functionaliti...
Definition:
lte-test-rlc-um-transmitter.h:58
LteRlcUmTransmitterTestCase::txPdcp
Ptr< LteTestPdcp > txPdcp
the transmit PDCP
Definition:
lte-test-rlc-um-transmitter.h:80
LteRlcUmTransmitterTestCase::txRlc
Ptr< LteRlc > txRlc
the RLC
Definition:
lte-test-rlc-um-transmitter.h:81
LteRlcUmTransmitterTestCase::txMac
Ptr< LteTestMac > txMac
the MAC
Definition:
lte-test-rlc-um-transmitter.h:82
LteRlcUmTransmitterTestCase::LteRlcUmTransmitterTestCase
LteRlcUmTransmitterTestCase()
LteRlcUmTransmitterTestSuite
TestSuite 4.1.1 for RLC UM: Only transmitter part.
Definition:
lte-test-rlc-um-transmitter.h:45
ns3::LteRlc
This abstract base class defines the API to interact with the Radio Link Control (LTE_RLC) in LTE,...
Definition:
lte-rlc.h:49
ns3::LteTestMac
This class implements a testing loopback MAC layer.
Definition:
lte-test-entities.h:234
ns3::LteTestPdcp
This class implements a testing PDCP entity.
Definition:
lte-test-entities.h:172
ns3::LteTestRrc
This class implements a testing RRC entity.
Definition:
lte-test-entities.h:40
ns3::Ptr< LteTestPdcp >
ns3::TestCase
encapsulates test code
Definition:
test.h:1060
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1256
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
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 Sun Mar 3 2024 17:11:04 for ns-3 by
1.9.1