A Discrete-Event Network Simulator
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
15namespace ns3
16{
17class Packet;
18}
19
20using namespace ns3;
21
22/**
23 * @ingroup lte-test
24 *
25 * @brief Test suite for RlcUmE2eTestCase
26 */
28{
29 public:
31};
32
33/**
34 * @ingroup lte-test
35 *
36 * @brief Test end-to-end flow when RLC UM is being used.
37 */
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);
50 ~LteRlcUmE2eTestCase() override;
51
52 private:
53 void DoRun() override;
54
55 /**
56 * DL drop event
57 * @param p the packet
58 */
60 /**
61 * UL drop event
62 * @param p the packet
63 */
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
Test end-to-end flow when RLC UM is being used.
uint32_t m_dlDrops
number of Dl drops
double m_losses
error rate
void UlDropEvent(Ptr< const Packet > p)
UL drop event.
void DoRun() override
Implementation to actually run this TestCase.
void DlDropEvent(Ptr< const Packet > p)
DL drop event.
uint32_t m_seed
random number seed
uint32_t m_ulDrops
number of UL drops
Test suite for RlcUmE2eTestCase.
LteRlcUmE2eTestSuite()
Test x.x.x RLC UM: End-to-end flow.
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.