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
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
* Nicola Baldo <nbaldo@cttc.es>
8
*/
9
10
#ifndef LTE_TEST_RLC_AM_E2E_H
11
#define LTE_TEST_RLC_AM_E2E_H
12
13
#include "ns3/ptr.h"
14
#include "ns3/test.h"
15
16
namespace
ns3
17
{
18
class
Packet
;
19
}
20
21
using namespace
ns3
;
22
23
/**
24
* \ingroup lte-test
25
*
26
* \brief Test suite for RlcAmE2e test case.
27
*/
28
class
LteRlcAmE2eTestSuite
:
public
TestSuite
29
{
30
public
:
31
LteRlcAmE2eTestSuite
();
32
};
33
34
/**
35
* \ingroup lte-test
36
*
37
* Test cases used for the test suite lte-rlc-am-e2e. See the testing section of
38
* the LTE module documentation for details.
39
*/
40
class
LteRlcAmE2eTestCase
:
public
TestCase
41
{
42
public
:
43
/**
44
* Constructor
45
*
46
* \param name the reference name
47
* \param seed the random variable seed
48
* \param losses the error rate
49
* \param bulkSduArrival true if bulk SDU arrival
50
*/
51
LteRlcAmE2eTestCase
(std::string name,
uint32_t
seed,
double
losses,
bool
bulkSduArrival);
52
LteRlcAmE2eTestCase
();
53
~LteRlcAmE2eTestCase
()
override
;
54
55
private
:
56
void
DoRun
()
override
;
57
58
/**
59
* DL drop event
60
* \param p the packet
61
*/
62
void
DlDropEvent
(
Ptr<const Packet>
p);
63
/**
64
* UL drop event
65
* \param p the packet
66
*/
67
void
UlDropEvent
(
Ptr<const Packet>
p);
68
69
uint32_t
m_run
;
///< rng run
70
double
m_losses
;
///< error rate
71
bool
m_bulkSduArrival
;
///< bulk SDU arrival
72
73
uint32_t
m_dlDrops
;
///< number of Dl drops
74
uint32_t
m_ulDrops
;
///< number of UL drops
75
};
76
77
#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:41
LteRlcAmE2eTestCase::DlDropEvent
void DlDropEvent(Ptr< const Packet > p)
DL drop event.
Definition
lte-test-rlc-am-e2e.cc:114
LteRlcAmE2eTestCase::m_ulDrops
uint32_t m_ulDrops
number of UL drops
Definition
lte-test-rlc-am-e2e.h:74
LteRlcAmE2eTestCase::~LteRlcAmE2eTestCase
~LteRlcAmE2eTestCase() override
Definition
lte-test-rlc-am-e2e.cc:109
LteRlcAmE2eTestCase::m_bulkSduArrival
bool m_bulkSduArrival
bulk SDU arrival
Definition
lte-test-rlc-am-e2e.h:71
LteRlcAmE2eTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-am-e2e.cc:128
LteRlcAmE2eTestCase::UlDropEvent
void UlDropEvent(Ptr< const Packet > p)
UL drop event.
Definition
lte-test-rlc-am-e2e.cc:121
LteRlcAmE2eTestCase::m_dlDrops
uint32_t m_dlDrops
number of Dl drops
Definition
lte-test-rlc-am-e2e.h:73
LteRlcAmE2eTestCase::LteRlcAmE2eTestCase
LteRlcAmE2eTestCase()
LteRlcAmE2eTestCase::m_run
uint32_t m_run
rng run
Definition
lte-test-rlc-am-e2e.h:69
LteRlcAmE2eTestCase::m_losses
double m_losses
error rate
Definition
lte-test-rlc-am-e2e.h:70
LteRlcAmE2eTestSuite
Test suite for RlcAmE2e test case.
Definition
lte-test-rlc-am-e2e.h:29
LteRlcAmE2eTestSuite::LteRlcAmE2eTestSuite
LteRlcAmE2eTestSuite()
Definition
lte-test-rlc-am-e2e.cc:32
ns3::Packet
network packets
Definition
packet.h:228
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
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 Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0