A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-test-downlink-power-control.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014 Piotr Gawlowicz
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
18
*
19
*/
20
21
#ifndef LTE_TEST_DOWNLINK_POWER_CONTROL_H
22
#define LTE_TEST_DOWNLINK_POWER_CONTROL_H
23
24
#include "ns3/lte-spectrum-value-helper.h"
25
#include "ns3/spectrum-test.h"
26
#include "ns3/spectrum-value.h"
27
#include "ns3/test.h"
28
#include <ns3/lte-rrc-sap.h>
29
30
using namespace
ns3
;
31
38
class
LteDownlinkPowerControlTestSuite
:
public
TestSuite
39
{
40
public
:
41
LteDownlinkPowerControlTestSuite
();
42
49
double
CalculateRbTxPower(
double
txPower, uint8_t pa);
50
};
51
58
class
LteDownlinkPowerControlSpectrumValueTestCase
:
public
TestCase
59
{
60
public
:
72
LteDownlinkPowerControlSpectrumValueTestCase
(std::string name,
73
uint16_t earfcn,
74
uint16_t bw,
75
double
powerTx,
76
std::map<int, double> powerTxMap,
77
std::vector<int> activeRbs,
78
SpectrumValue
& expected);
79
~
LteDownlinkPowerControlSpectrumValueTestCase
()
override
;
80
81
private
:
82
void
DoRun()
override
;
83
Ptr<SpectrumValue>
m_actual
;
84
Ptr<SpectrumValue>
m_expected
;
85
};
86
94
class
LteDownlinkPowerControlTestCase
:
public
TestCase
95
{
96
public
:
104
LteDownlinkPowerControlTestCase
(
bool
changePower, uint8_t pa, std::string name);
105
~
LteDownlinkPowerControlTestCase
()
override
;
106
107
private
:
108
void
DoRun()
override
;
109
110
bool
m_changePdschConfigDedicated
;
111
LteRrcSap::PdschConfigDedicated
m_pdschConfigDedicated
;
112
double
m_expectedPowerDiff
;
113
};
114
122
class
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
:
public
TestCase
123
{
124
public
:
131
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
(
bool
useIdealRrc, std::string name);
132
~
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
()
override
;
133
142
void
ConnectionReconfigurationEnb(std::string context,
143
uint64_t imsi,
144
uint16_t cellid,
145
uint16_t rnti);
146
155
void
ConnectionReconfigurationUe(std::string context,
156
uint64_t imsi,
157
uint16_t cellid,
158
uint16_t rnti);
159
166
void
ChangePdschConfigDedicated(uint16_t rnti, uint8_t pa);
167
168
private
:
169
void
DoRun()
override
;
170
bool
m_useIdealRrc
;
171
172
bool
m_changePdschConfigDedicatedTriggered
;
173
bool
m_connectionReconfigurationUeReceived
;
174
bool
m_connectionReconfigurationEnbCompleted
;
175
};
176
177
#endif
/* LTE_TEST_DOWNLINK_POWER_CONTROL_H */
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
Test if RRC connection reconfiguration messages are properly generated upon the change in the downlin...
Definition:
lte-test-downlink-power-control.h:123
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_useIdealRrc
bool m_useIdealRrc
use ideal RRC?
Definition:
lte-test-downlink-power-control.h:170
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_changePdschConfigDedicatedTriggered
bool m_changePdschConfigDedicatedTriggered
change PDSCH config dedicated triggered?
Definition:
lte-test-downlink-power-control.h:172
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_connectionReconfigurationUeReceived
bool m_connectionReconfigurationUeReceived
connection reconfiguration UE received?
Definition:
lte-test-downlink-power-control.h:173
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_connectionReconfigurationEnbCompleted
bool m_connectionReconfigurationEnbCompleted
connection reconfiguration ENB completed?
Definition:
lte-test-downlink-power-control.h:174
LteDownlinkPowerControlSpectrumValueTestCase
Test SINR calculation in the downlink when power control is used.
Definition:
lte-test-downlink-power-control.h:59
LteDownlinkPowerControlSpectrumValueTestCase::m_actual
Ptr< SpectrumValue > m_actual
actual Tx Power Spectral Density
Definition:
lte-test-downlink-power-control.h:83
LteDownlinkPowerControlSpectrumValueTestCase::m_expected
Ptr< SpectrumValue > m_expected
expected Tx Power Spectral Density
Definition:
lte-test-downlink-power-control.h:84
LteDownlinkPowerControlTestCase
Test SINR calculation in the downlink when the power control is used.
Definition:
lte-test-downlink-power-control.h:95
LteDownlinkPowerControlTestCase::m_expectedPowerDiff
double m_expectedPowerDiff
expected power difference
Definition:
lte-test-downlink-power-control.h:112
LteDownlinkPowerControlTestCase::m_pdschConfigDedicated
LteRrcSap::PdschConfigDedicated m_pdschConfigDedicated
PDSCH config dedicated.
Definition:
lte-test-downlink-power-control.h:111
LteDownlinkPowerControlTestCase::m_changePdschConfigDedicated
bool m_changePdschConfigDedicated
PDSCH config dedicated change.
Definition:
lte-test-downlink-power-control.h:110
LteDownlinkPowerControlTestSuite
Test suite for the LteDownlinkPowerControlSpectrumValueTestCase.
Definition:
lte-test-downlink-power-control.h:39
ns3::Ptr< SpectrumValue >
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:61
ns3::TestCase
encapsulates test code
Definition:
test.h:1060
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1256
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteRrcSap::PdschConfigDedicated
PdschConfigDedicated structure.
Definition:
lte-rrc-sap.h:163
src
lte
test
lte-test-downlink-power-control.h
Generated on Sun Mar 3 2024 17:11:04 for ns-3 by
1.9.1