A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
lte-test-uplink-power-control.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2014 Piotr Gawlowicz
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
19
*
20
*/
21
22
#ifndef LTE_TEST_UPLINK_POWER_CONTROL_H
23
#define LTE_TEST_UPLINK_POWER_CONTROL_H
24
25
#include "ns3/spectrum-value.h"
26
#include "ns3/spectrum-test.h"
27
#include "ns3/test.h"
28
29
using namespace
ns3
;
30
37
class
LteUplinkPowerControlTestSuite
:
public
TestSuite
38
{
39
public
:
40
LteUplinkPowerControlTestSuite
();
41
};
42
43
50
class
LteUplinkPowerControlTestCase
:
public
TestCase
51
{
52
public
:
58
LteUplinkPowerControlTestCase
(std::string name);
59
virtual
~
LteUplinkPowerControlTestCase
();
60
70
void
TeleportUe (uint32_t
x
, uint32_t y,
71
double
expectedPuschTxPower,
double
expectedPucchTxPower,
double
expectedSrsTxPower);
72
82
void
SetTpcConfiguration (uint32_t tpc, uint32_t tpcNum,
83
double
expectedPuschTxPower,
double
expectedPucchTxPower,
double
expectedSrsTxPower);
84
92
void
PuschTxPowerTrace (uint16_t cellId, uint16_t rnti,
double
txPower);
100
void
PucchTxPowerTrace (uint16_t cellId, uint16_t rnti,
double
txPower);
108
void
SrsTxPowerTrace (uint16_t cellId, uint16_t rnti,
double
txPower);
109
110
protected
:
111
virtual
void
DoRun (
void
);
112
113
Ptr<MobilityModel>
m_ueMobility
;
114
Time
m_teleportTime
;
115
116
double
m_expectedPuschTxPower
;
117
double
m_expectedPucchTxPower
;
118
double
m_expectedSrsTxPower
;
119
120
Ptr<LteUePowerControl>
m_ueUpc
;
121
bool
m_accumulatedMode
;
122
123
Ptr<LteFfrSimple>
m_ffrSimple
;
124
};
125
132
class
LteUplinkOpenLoopPowerControlTestCase
:
public
LteUplinkPowerControlTestCase
133
{
134
public
:
140
LteUplinkOpenLoopPowerControlTestCase
(std::string name);
141
virtual
~
LteUplinkOpenLoopPowerControlTestCase
();
142
143
private
:
144
virtual
void
DoRun (
void
);
145
};
146
153
class
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
:
public
LteUplinkPowerControlTestCase
154
{
155
public
:
161
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
(std::string name);
162
virtual
~
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
();
163
164
private
:
165
virtual
void
DoRun (
void
);
166
};
167
174
class
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
:
public
LteUplinkPowerControlTestCase
175
{
176
public
:
182
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
(std::string name);
183
virtual
~
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
();
184
185
private
:
186
virtual
void
DoRun (
void
);
187
};
188
189
#endif
/* LTE_TEST_UPLINK_POWER_CONTROL_H */
LteUplinkPowerControlTestCase::m_accumulatedMode
bool m_accumulatedMode
indicates whether accumulated mode is being used
Definition:
lte-test-uplink-power-control.h:121
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::Ptr< MobilityModel >
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
Lte Uplink Closed Loop Power Control Absolute Mode Test Case.
Definition:
lte-test-uplink-power-control.h:153
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1342
LteUplinkPowerControlTestCase::m_ueUpc
Ptr< LteUePowerControl > m_ueUpc
UE power control.
Definition:
lte-test-uplink-power-control.h:120
LteUplinkPowerControlTestCase::m_teleportTime
Time m_teleportTime
teleport time
Definition:
lte-test-uplink-power-control.h:114
LteUplinkPowerControlTestCase::m_expectedSrsTxPower
double m_expectedSrsTxPower
expected SRS transmit power
Definition:
lte-test-uplink-power-control.h:118
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
LteUplinkPowerControlTestCase::m_expectedPuschTxPower
double m_expectedPuschTxPower
expected PUSCH transmit power
Definition:
lte-test-uplink-power-control.h:116
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
Lte Uplink Closed Loop Power Control Accumulated Mode Test Case.
Definition:
lte-test-uplink-power-control.h:174
LteUplinkPowerControlTestCase::m_expectedPucchTxPower
double m_expectedPucchTxPower
expected PUCCH transmit power
Definition:
lte-test-uplink-power-control.h:117
LteUplinkPowerControlTestCase::m_ffrSimple
Ptr< LteFfrSimple > m_ffrSimple
FFR simple.
Definition:
lte-test-uplink-power-control.h:123
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteUplinkPowerControlTestSuite
Test 1.1 Uplink Power Control.
Definition:
lte-test-uplink-power-control.h:37
LteUplinkPowerControlTestCase
Lte Uplink Power Control Test Case.
Definition:
lte-test-uplink-power-control.h:50
LteUplinkPowerControlTestCase::m_ueMobility
Ptr< MobilityModel > m_ueMobility
UE mobility model.
Definition:
lte-test-uplink-power-control.h:113
LteUplinkOpenLoopPowerControlTestCase
Lte Uplink Open Loop Power Control Test Case.
Definition:
lte-test-uplink-power-control.h:132
sample-rng-plot.x
list x
Definition:
sample-rng-plot.py:34
Generated on Wed Nov 7 2018 10:02:04 for ns-3 by
1.8.14