A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
lte-test-rlc-am-transmitter.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Manuel Requena <manuel.requena@cttc.es>
19
*/
20
21
#ifndef LTE_TEST_RLC_AM_TRANSMITTER_H
22
#define LTE_TEST_RLC_AM_TRANSMITTER_H
23
24
#include "ns3/test.h"
25
26
27
namespace
ns3
{
28
29
class
LteTestRrc
;
30
class
LteTestMac
;
31
class
LteTestPdcp
;
32
33
}
34
35
using namespace
ns3
;
36
43
class
LteRlcAmTransmitterTestSuite
:
public
TestSuite
44
{
45
public
:
46
LteRlcAmTransmitterTestSuite
();
47
};
48
57
class
LteRlcAmTransmitterTestCase
:
public
TestCase
58
{
59
public
:
65
LteRlcAmTransmitterTestCase
(std::string name);
66
LteRlcAmTransmitterTestCase
();
67
virtual
~
LteRlcAmTransmitterTestCase
();
68
75
void
CheckDataReceived (
Time
time, std::string shouldReceived, std::string assertMsg);
76
77
protected
:
78
virtual
void
DoRun (
void
);
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
};
93
101
class
LteRlcAmTransmitterOneSduTestCase
:
public
LteRlcAmTransmitterTestCase
102
{
103
public
:
109
LteRlcAmTransmitterOneSduTestCase
(std::string name);
110
LteRlcAmTransmitterOneSduTestCase
();
111
virtual
~
LteRlcAmTransmitterOneSduTestCase
();
112
113
private
:
114
virtual
void
DoRun (
void
);
115
116
};
117
125
class
LteRlcAmTransmitterSegmentationTestCase
:
public
LteRlcAmTransmitterTestCase
126
{
127
public
:
133
LteRlcAmTransmitterSegmentationTestCase
(std::string name);
134
LteRlcAmTransmitterSegmentationTestCase
();
135
virtual
~
LteRlcAmTransmitterSegmentationTestCase
();
136
137
private
:
138
virtual
void
DoRun (
void
);
139
140
};
141
149
class
LteRlcAmTransmitterConcatenationTestCase
:
public
LteRlcAmTransmitterTestCase
150
{
151
public
:
157
LteRlcAmTransmitterConcatenationTestCase
(std::string name);
158
LteRlcAmTransmitterConcatenationTestCase
();
159
virtual
~
LteRlcAmTransmitterConcatenationTestCase
();
160
161
private
:
162
virtual
void
DoRun (
void
);
163
164
};
165
173
class
LteRlcAmTransmitterReportBufferStatusTestCase
:
public
LteRlcAmTransmitterTestCase
174
{
175
public
:
181
LteRlcAmTransmitterReportBufferStatusTestCase
(std::string name);
182
LteRlcAmTransmitterReportBufferStatusTestCase
();
183
virtual
~
LteRlcAmTransmitterReportBufferStatusTestCase
();
184
185
private
:
186
virtual
void
DoRun (
void
);
187
188
};
189
190
#endif // LTE_TEST_RLC_AM_TRANSMITTER_H
LteRlcAmTransmitterTestCase::txRlc
Ptr< LteRlc > txRlc
the RLC
Definition:
lte-test-rlc-am-transmitter.h:81
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::Ptr< LteTestPdcp >
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1342
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
LteRlcAmTransmitterReportBufferStatusTestCase
Test 4.1.1.4 Test checks functionality of Report Buffer Status by testing primitive parameters...
Definition:
lte-test-rlc-am-transmitter.h:173
LteRlcAmTransmitterTestCase
Test case used by LteRlcAmTransmitterOneSduTestCase to create topology and to implement functionaliti...
Definition:
lte-test-rlc-am-transmitter.h:57
LteRlcAmTransmitterSegmentationTestCase
Test 4.1.1.2 Test the correct functionality of the Segmentation.
Definition:
lte-test-rlc-am-transmitter.h:125
LteRlcAmTransmitterTestCase::txPdcp
Ptr< LteTestPdcp > txPdcp
the transmit PDCP
Definition:
lte-test-rlc-am-transmitter.h:80
LteRlcAmTransmitterTestCase::txMac
Ptr< LteTestMac > txMac
the MAC
Definition:
lte-test-rlc-am-transmitter.h:82
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:101
LteRlcAmTransmitterConcatenationTestCase
Test 4.1.1.3 Test that concatenation functionality works properly.
Definition:
lte-test-rlc-am-transmitter.h:149
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteRlcAmTransmitterTestSuite
TestSuite 4.1.1 RLC AM: Only transmitter functionality.
Definition:
lte-test-rlc-am-transmitter.h:43
ns3::LteTestPdcp
This class implements a testing PDCP entity.
Definition:
lte-test-entities.h:176
ns3::LteTestMac
This class implements a testing loopback MAC layer.
Definition:
lte-test-entities.h:240
ns3::LteTestRrc
This class implements a testing RRC entity.
Definition:
lte-test-entities.h:42
Generated on Wed Nov 7 2018 10:02:04 for ns-3 by
1.8.14