A Discrete-Event Network Simulator
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
16namespace ns3
17{
18class Packet;
19}
20
21using namespace ns3;
22
23/**
24 * \ingroup lte-test
25 *
26 * \brief Test suite for RlcAmE2e test case.
27 */
29{
30 public:
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 */
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);
53 ~LteRlcAmE2eTestCase() override;
54
55 private:
56 void DoRun() override;
57
58 /**
59 * DL drop event
60 * \param p the packet
61 */
63 /**
64 * UL drop event
65 * \param p the packet
66 */
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
Test cases used for the test suite lte-rlc-am-e2e.
void DlDropEvent(Ptr< const Packet > p)
DL drop event.
uint32_t m_ulDrops
number of UL drops
bool m_bulkSduArrival
bulk SDU arrival
void DoRun() override
Implementation to actually run this TestCase.
void UlDropEvent(Ptr< const Packet > p)
UL drop event.
uint32_t m_dlDrops
number of Dl drops
double m_losses
error rate
Test suite for RlcAmE2e test case.
network packets
Definition packet.h:228
Smart pointer class similar to boost::intrusive_ptr.
encapsulates test code
Definition test.h:1050
A suite of tests to run.
Definition test.h:1267
Every class exported by the ns3 library is enclosed in the ns3 namespace.