A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-test-uplink-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_UPLINK_POWER_CONTROL_H
22
#define LTE_TEST_UPLINK_POWER_CONTROL_H
23
24
#include "ns3/nstime.h"
25
#include "ns3/ptr.h"
26
#include "ns3/spectrum-test.h"
27
#include "ns3/spectrum-value.h"
28
#include "ns3/test.h"
29
30
using namespace
ns3
;
31
32
namespace
ns3
33
{
34
class
LteFfrSimple
;
35
class
LteUePowerControl
;
36
class
MobilityModel
;
37
}
// namespace ns3
38
44
class
LteUplinkPowerControlTestSuite
:
public
TestSuite
45
{
46
public
:
47
LteUplinkPowerControlTestSuite
();
48
};
49
55
class
LteUplinkPowerControlTestCase
:
public
TestCase
56
{
57
public
:
63
LteUplinkPowerControlTestCase
(std::string name);
64
~
LteUplinkPowerControlTestCase
()
override
;
65
75
void
TeleportUe(uint32_t
x
,
76
uint32_t y,
77
double
expectedPuschTxPower,
78
double
expectedPucchTxPower,
79
double
expectedSrsTxPower);
80
90
void
SetTpcConfiguration(uint32_t tpc,
91
uint32_t tpcNum,
92
double
expectedPuschTxPower,
93
double
expectedPucchTxPower,
94
double
expectedSrsTxPower);
95
103
void
PuschTxPowerTrace(uint16_t cellId, uint16_t rnti,
double
txPower);
111
void
PucchTxPowerTrace(uint16_t cellId, uint16_t rnti,
double
txPower);
119
void
SrsTxPowerTrace(uint16_t cellId, uint16_t rnti,
double
txPower);
120
121
protected
:
122
void
DoRun()
override
;
123
124
Ptr<MobilityModel>
m_ueMobility
;
125
Time
m_teleportTime
;
126
127
double
m_expectedPuschTxPower
;
128
double
m_expectedPucchTxPower
;
129
double
m_expectedSrsTxPower
;
130
131
Ptr<LteUePowerControl>
m_ueUpc
;
132
bool
m_accumulatedMode
;
133
134
Ptr<LteFfrSimple>
m_ffrSimple
;
135
};
136
142
class
LteUplinkOpenLoopPowerControlTestCase
:
public
LteUplinkPowerControlTestCase
143
{
144
public
:
150
LteUplinkOpenLoopPowerControlTestCase
(std::string name);
151
~
LteUplinkOpenLoopPowerControlTestCase
()
override
;
152
153
private
:
154
void
DoRun()
override
;
155
};
156
162
class
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
:
public
LteUplinkPowerControlTestCase
163
{
164
public
:
170
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
(std::string name);
171
~
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
()
override
;
172
173
private
:
174
void
DoRun()
override
;
175
};
176
182
class
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
:
public
LteUplinkPowerControlTestCase
183
{
184
public
:
190
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
(std::string name);
191
~
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
()
override
;
192
193
private
:
194
void
DoRun()
override
;
195
};
196
197
#endif
/* LTE_TEST_UPLINK_POWER_CONTROL_H */
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
Lte Uplink Closed Loop Power Control Absolute Mode Test Case.
Definition:
lte-test-uplink-power-control.h:163
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
Lte Uplink Closed Loop Power Control Accumulated Mode Test Case.
Definition:
lte-test-uplink-power-control.h:183
LteUplinkOpenLoopPowerControlTestCase
Lte Uplink Open Loop Power Control Test Case.
Definition:
lte-test-uplink-power-control.h:143
LteUplinkPowerControlTestCase
Lte Uplink Power Control Test Case.
Definition:
lte-test-uplink-power-control.h:56
LteUplinkPowerControlTestCase::m_ueMobility
Ptr< MobilityModel > m_ueMobility
UE mobility model.
Definition:
lte-test-uplink-power-control.h:124
LteUplinkPowerControlTestCase::m_accumulatedMode
bool m_accumulatedMode
indicates whether accumulated mode is being used
Definition:
lte-test-uplink-power-control.h:132
LteUplinkPowerControlTestCase::m_expectedPucchTxPower
double m_expectedPucchTxPower
expected PUCCH transmit power
Definition:
lte-test-uplink-power-control.h:128
LteUplinkPowerControlTestCase::m_ffrSimple
Ptr< LteFfrSimple > m_ffrSimple
FFR simple.
Definition:
lte-test-uplink-power-control.h:134
LteUplinkPowerControlTestCase::m_teleportTime
Time m_teleportTime
teleport time
Definition:
lte-test-uplink-power-control.h:125
LteUplinkPowerControlTestCase::m_expectedSrsTxPower
double m_expectedSrsTxPower
expected SRS transmit power
Definition:
lte-test-uplink-power-control.h:129
LteUplinkPowerControlTestCase::m_expectedPuschTxPower
double m_expectedPuschTxPower
expected PUSCH transmit power
Definition:
lte-test-uplink-power-control.h:127
LteUplinkPowerControlTestCase::m_ueUpc
Ptr< LteUePowerControl > m_ueUpc
UE power control.
Definition:
lte-test-uplink-power-control.h:131
LteUplinkPowerControlTestSuite
Test 1.1 Uplink Power Control.
Definition:
lte-test-uplink-power-control.h:45
ns3::LteFfrSimple
Simple Frequency Reuse algorithm implementation which uses only 1 sub-band.
Definition:
lte-ffr-simple.h:44
ns3::LteUePowerControl
This class realizes Uplink Power Control functionality.
Definition:
lte-ue-power-control.h:55
ns3::MobilityModel
Keep track of the current position and velocity of an object.
Definition:
mobility-model.h:40
ns3::Ptr< MobilityModel >
ns3::TestCase
encapsulates test code
Definition:
test.h:1060
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1256
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.x
x
Definition:
two-ray-to-three-gpp-ch-calibration.py:603
src
lte
test
lte-test-uplink-power-control.h
Generated on Sun Mar 3 2024 17:11:04 for ns-3 by
1.9.1