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-aggregation-throughput-scale.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Alexander Krotov
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Alexander Krotov <krotov@iitp.ru>
7
*
8
*/
9
10
#ifndef LTE_AGGREGATION_THROUGHPUT_SCALE_H
11
#define LTE_AGGREGATION_THROUGHPUT_SCALE_H
12
13
#include <ns3/test.h>
14
15
using namespace
ns3
;
16
17
/**
18
* \brief Test suite for executing carrier aggregation throughput scaling test case.
19
*
20
* \sa ns3::LteAggregationThroughputScaleTestCase
21
*/
22
class
LteAggregationThroughputScaleTestSuite
:
public
TestSuite
23
{
24
public
:
25
LteAggregationThroughputScaleTestSuite
();
26
};
27
28
/**
29
* \ingroup lte
30
*
31
* \brief Testing that UE throughput scales linearly with number of component carriers.
32
* Also attaches UE to last component carrier to make sure no code assumes
33
* that primary carrier is first.
34
*/
35
class
LteAggregationThroughputScaleTestCase
:
public
TestCase
36
{
37
public
:
38
/**
39
* \brief Creates an instance of the carrier aggregation throughput scaling test case.
40
* \param name name of this test
41
*/
42
LteAggregationThroughputScaleTestCase
(std::string name);
43
44
~LteAggregationThroughputScaleTestCase
()
override
;
45
46
private
:
47
/**
48
* \brief Setup the simulation, run it, and verify the result.
49
*/
50
void
DoRun
()
override
;
51
52
/**
53
* \brief Get throughput function
54
*
55
* \param numberOfComponentCarriers Number of component carriers
56
* \return The total data received (in Megabits)
57
*/
58
double
GetThroughput
(uint8_t numberOfComponentCarriers);
59
60
uint16_t
m_expectedCellId
;
///< Cell ID UE is expected to attach to
61
uint16_t
m_actualCellId
;
///< Cell ID UE has attached to
62
};
63
64
#endif
/* LTE_AGGREGATION_THROUGHPUT_SCALE_H */
LteAggregationThroughputScaleTestCase
Testing that UE throughput scales linearly with number of component carriers.
Definition
lte-test-aggregation-throughput-scale.h:36
LteAggregationThroughputScaleTestCase::m_actualCellId
uint16_t m_actualCellId
Cell ID UE has attached to.
Definition
lte-test-aggregation-throughput-scale.h:61
LteAggregationThroughputScaleTestCase::DoRun
void DoRun() override
Setup the simulation, run it, and verify the result.
Definition
lte-test-aggregation-throughput-scale.cc:147
LteAggregationThroughputScaleTestCase::GetThroughput
double GetThroughput(uint8_t numberOfComponentCarriers)
Get throughput function.
Definition
lte-test-aggregation-throughput-scale.cc:64
LteAggregationThroughputScaleTestCase::m_expectedCellId
uint16_t m_expectedCellId
Cell ID UE is expected to attach to.
Definition
lte-test-aggregation-throughput-scale.h:60
LteAggregationThroughputScaleTestCase::~LteAggregationThroughputScaleTestCase
~LteAggregationThroughputScaleTestCase() override
Definition
lte-test-aggregation-throughput-scale.cc:58
LteAggregationThroughputScaleTestCase::LteAggregationThroughputScaleTestCase
LteAggregationThroughputScaleTestCase(std::string name)
Creates an instance of the carrier aggregation throughput scaling test case.
Definition
lte-test-aggregation-throughput-scale.cc:52
LteAggregationThroughputScaleTestSuite
Test suite for executing carrier aggregation throughput scaling test case.
Definition
lte-test-aggregation-throughput-scale.h:23
LteAggregationThroughputScaleTestSuite::LteAggregationThroughputScaleTestSuite
LteAggregationThroughputScaleTestSuite()
Definition
lte-test-aggregation-throughput-scale.cc:39
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::TestSuite
A suite of tests to run.
Definition
test.h:1267
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-aggregation-throughput-scale.h
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0