A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-test-deactivate-bearer.h
Go to the documentation of this file.
1
2#ifndef LENA_TEST_DEACTIVATE_BEARER_H
3#define LENA_TEST_DEACTIVATE_BEARER_H
4
5#include "ns3/simulator.h"
6#include "ns3/test.h"
7
8namespace ns3
9{
10
11/**
12 * \ingroup lte-test
13 *
14 * \brief Test case that for testing the deactivation of the bearer
15 * functionality. The test consist in deactivating the bearer and checking
16 * if some traffic will appear afterwards on the given bearer. If some traffic
17 * is detected the test will fail. Firs the de-activation is performed by
18 * using Simulator::Schedule() method which will initiate bearer de-activation
19 * after deActivateTime that is specified as the test parameter. Additionally,
20 * test instantiate de-activation in sequence.
21 */
22
24{
25 public:
26 /**
27 * Constructor
28 *
29 * \param dist distance between the nodes
30 * \param estThrPssDl estimated throughput PSS DL
31 * \param packetSize packet size in bytes
32 * \param interval interval time in ms
33 * \param errorModelEnabled whether the error model is enabled
34 * \param useIdealRrc whether to use ideal RRC
35 */
36 LenaDeactivateBearerTestCase(std::vector<uint16_t> dist,
37 std::vector<uint32_t> estThrPssDl,
38 std::vector<uint16_t> packetSize,
39 uint16_t interval,
40 bool errorModelEnabled,
41 bool useIdealRrc);
43
44 private:
45 /**
46 * Build name string function
47 *
48 * \param nUser number of UE nodes
49 * \param dist distance between nodes
50 * \returns name string
51 */
52 static std::string BuildNameString(uint16_t nUser, std::vector<uint16_t> dist);
53 void DoRun() override;
54 uint16_t m_nUser; ///< number of UE nodes
55 std::vector<uint16_t> m_dist; ///< distance between the nodes
56 std::vector<uint16_t> m_packetSize; ///< packet size in bytes
57 uint16_t m_interval; ///< interval time in ms
58 std::vector<uint32_t> m_estThrPssDl; ///< estimated threshold PSS DL
59 bool m_errorModelEnabled; ///< error mode enabled?
60};
61
62/**
63 * \ingroup lte-test
64 *
65 * \brief The test suite class for the LenaDeactivateBearerTestCase.
66 */
67
69{
70 public:
72};
73
74} // namespace ns3
75
76#endif
Test case that for testing the deactivation of the bearer functionality.
std::vector< uint16_t > m_packetSize
packet size in bytes
void DoRun() override
Implementation to actually run this TestCase.
std::vector< uint16_t > m_dist
distance between the nodes
static std::string BuildNameString(uint16_t nUser, std::vector< uint16_t > dist)
Build name string function.
std::vector< uint32_t > m_estThrPssDl
estimated threshold PSS DL
The test suite class for the LenaDeactivateBearerTestCase.
encapsulates test code
Definition: test.h:1061
A suite of tests to run.
Definition: test.h:1268
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static const uint32_t packetSize
Packet size generated at the AP.