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