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-e2e.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 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
* Nicola Baldo <nbaldo@cttc.es>
19
*/
20
21
#ifndef LTE_TEST_RLC_AM_E2E_H
22
#define LTE_TEST_RLC_AM_E2E_H
23
24
#include "ns3/ptr.h"
25
#include "ns3/test.h"
26
27
namespace
ns3
28
{
29
class
Packet
;
30
}
31
32
using namespace
ns3
;
33
34
/**
35
* \ingroup lte-test
36
*
37
* \brief Test suite for RlcAmE2e test case.
38
*/
39
class
LteRlcAmE2eTestSuite
:
public
TestSuite
40
{
41
public
:
42
LteRlcAmE2eTestSuite
();
43
};
44
45
/**
46
* \ingroup lte-test
47
*
48
* Test cases used for the test suite lte-rlc-am-e2e. See the testing section of
49
* the LTE module documentation for details.
50
*/
51
class
LteRlcAmE2eTestCase
:
public
TestCase
52
{
53
public
:
54
/**
55
* Constructor
56
*
57
* \param name the reference name
58
* \param seed the random variable seed
59
* \param losses the error rate
60
* \param bulkSduArrival true if bulk SDU arrival
61
*/
62
LteRlcAmE2eTestCase
(std::string name,
uint32_t
seed,
double
losses,
bool
bulkSduArrival);
63
LteRlcAmE2eTestCase
();
64
~LteRlcAmE2eTestCase
()
override
;
65
66
private
:
67
void
DoRun
()
override
;
68
69
/**
70
* DL drop event
71
* \param p the packet
72
*/
73
void
DlDropEvent
(
Ptr<const Packet>
p);
74
/**
75
* UL drop event
76
* \param p the packet
77
*/
78
void
UlDropEvent
(
Ptr<const Packet>
p);
79
80
uint32_t
m_run
;
///< rng run
81
double
m_losses
;
///< error rate
82
bool
m_bulkSduArrival
;
///< bulk SDU arrival
83
84
uint32_t
m_dlDrops
;
///< number of Dl drops
85
uint32_t
m_ulDrops
;
///< number of UL drops
86
};
87
88
#endif
// LTE_TEST_RLC_AM_E2E_H
LteRlcAmE2eTestCase
Test cases used for the test suite lte-rlc-am-e2e.
Definition:
lte-test-rlc-am-e2e.h:52
LteRlcAmE2eTestCase::DlDropEvent
void DlDropEvent(Ptr< const Packet > p)
DL drop event.
Definition:
lte-test-rlc-am-e2e.cc:125
LteRlcAmE2eTestCase::m_ulDrops
uint32_t m_ulDrops
number of UL drops
Definition:
lte-test-rlc-am-e2e.h:85
LteRlcAmE2eTestCase::~LteRlcAmE2eTestCase
~LteRlcAmE2eTestCase() override
Definition:
lte-test-rlc-am-e2e.cc:120
LteRlcAmE2eTestCase::m_bulkSduArrival
bool m_bulkSduArrival
bulk SDU arrival
Definition:
lte-test-rlc-am-e2e.h:82
LteRlcAmE2eTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-rlc-am-e2e.cc:139
LteRlcAmE2eTestCase::UlDropEvent
void UlDropEvent(Ptr< const Packet > p)
UL drop event.
Definition:
lte-test-rlc-am-e2e.cc:132
LteRlcAmE2eTestCase::m_dlDrops
uint32_t m_dlDrops
number of Dl drops
Definition:
lte-test-rlc-am-e2e.h:84
LteRlcAmE2eTestCase::LteRlcAmE2eTestCase
LteRlcAmE2eTestCase()
LteRlcAmE2eTestCase::m_run
uint32_t m_run
rng run
Definition:
lte-test-rlc-am-e2e.h:80
LteRlcAmE2eTestCase::m_losses
double m_losses
error rate
Definition:
lte-test-rlc-am-e2e.h:81
LteRlcAmE2eTestSuite
Test suite for RlcAmE2e test case.
Definition:
lte-test-rlc-am-e2e.h:40
LteRlcAmE2eTestSuite::LteRlcAmE2eTestSuite
LteRlcAmE2eTestSuite()
Definition:
lte-test-rlc-am-e2e.cc:43
ns3::Packet
network packets
Definition:
packet.h:239
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TestCase
encapsulates test code
Definition:
test.h:1061
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1273
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-rlc-am-e2e.h
Generated on Tue May 28 2024 23:37:53 for ns-3 by
1.9.6