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-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
*/
8
9
#ifndef LTE_TEST_RLC_UM_E2E_H
10
#define LTE_TEST_RLC_UM_E2E_H
11
12
#include "ns3/ptr.h"
13
#include "ns3/test.h"
14
15
namespace
ns3
16
{
17
class
Packet
;
18
}
19
20
using namespace
ns3
;
21
22
/**
23
* \ingroup lte-test
24
*
25
* \brief Test suite for RlcUmE2eTestCase
26
*/
27
class
LteRlcUmE2eTestSuite
:
public
TestSuite
28
{
29
public
:
30
LteRlcUmE2eTestSuite
();
31
};
32
33
/**
34
* \ingroup lte-test
35
*
36
* \brief Test end-to-end flow when RLC UM is being used.
37
*/
38
class
LteRlcUmE2eTestCase
:
public
TestCase
39
{
40
public
:
41
/**
42
* Constructor
43
*
44
* \param name the reference name
45
* \param seed the random variable seed
46
* \param losses the error rate
47
*/
48
LteRlcUmE2eTestCase
(std::string name,
uint32_t
seed,
double
losses);
49
LteRlcUmE2eTestCase
();
50
~LteRlcUmE2eTestCase
()
override
;
51
52
private
:
53
void
DoRun
()
override
;
54
55
/**
56
* DL drop event
57
* \param p the packet
58
*/
59
void
DlDropEvent
(
Ptr<const Packet>
p);
60
/**
61
* UL drop event
62
* \param p the packet
63
*/
64
void
UlDropEvent
(
Ptr<const Packet>
p);
65
66
uint32_t
m_dlDrops
;
///< number of Dl drops
67
uint32_t
m_ulDrops
;
///< number of UL drops
68
69
uint32_t
m_seed
;
///< random number seed
70
double
m_losses
;
///< error rate
71
};
72
73
#endif
// LTE_TEST_RLC_UM_E2E_H
LteRlcUmE2eTestCase
Test end-to-end flow when RLC UM is being used.
Definition
lte-test-rlc-um-e2e.h:39
LteRlcUmE2eTestCase::m_dlDrops
uint32_t m_dlDrops
number of Dl drops
Definition
lte-test-rlc-um-e2e.h:66
LteRlcUmE2eTestCase::m_losses
double m_losses
error rate
Definition
lte-test-rlc-um-e2e.h:70
LteRlcUmE2eTestCase::UlDropEvent
void UlDropEvent(Ptr< const Packet > p)
UL drop event.
Definition
lte-test-rlc-um-e2e.cc:101
LteRlcUmE2eTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-rlc-um-e2e.cc:108
LteRlcUmE2eTestCase::DlDropEvent
void DlDropEvent(Ptr< const Packet > p)
DL drop event.
Definition
lte-test-rlc-um-e2e.cc:94
LteRlcUmE2eTestCase::m_seed
uint32_t m_seed
random number seed
Definition
lte-test-rlc-um-e2e.h:69
LteRlcUmE2eTestCase::LteRlcUmE2eTestCase
LteRlcUmE2eTestCase()
LteRlcUmE2eTestCase::m_ulDrops
uint32_t m_ulDrops
number of UL drops
Definition
lte-test-rlc-um-e2e.h:67
LteRlcUmE2eTestCase::~LteRlcUmE2eTestCase
~LteRlcUmE2eTestCase() override
Definition
lte-test-rlc-um-e2e.cc:89
LteRlcUmE2eTestSuite
Test suite for RlcUmE2eTestCase.
Definition
lte-test-rlc-um-e2e.h:28
LteRlcUmE2eTestSuite::LteRlcUmE2eTestSuite
LteRlcUmE2eTestSuite()
Test x.x.x RLC UM: End-to-end flow.
Definition
lte-test-rlc-um-e2e.cc:39
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-um-e2e.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0