A Discrete-Event Network Simulator
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
30using namespace ns3;
31
32namespace ns3
33{
34class LteFfrSimple;
36class MobilityModel;
37} // namespace ns3
38
45{
46 public:
48};
49
56{
57 public:
63 LteUplinkPowerControlTestCase(std::string name);
65
75 void TeleportUe(uint32_t x,
76 uint32_t y,
77 double expectedPuschTxPower,
78 double expectedPucchTxPower,
79 double expectedSrsTxPower);
80
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
126
130
133
135};
136
143{
144 public:
152
153 private:
154 void DoRun() override;
155};
156
163{
164 public:
172
173 private:
174 void DoRun() override;
175};
176
183{
184 public:
192
193 private:
194 void DoRun() override;
195};
196
197#endif /* LTE_TEST_UPLINK_POWER_CONTROL_H */
Simple Frequency Reuse algorithm implementation which uses only 1 sub-band.
This class realizes Uplink Power Control functionality.
Keep track of the current position and velocity of an object.
encapsulates test code
Definition: test.h:1060
A suite of tests to run.
Definition: test.h:1256
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
Every class exported by the ns3 library is enclosed in the ns3 namespace.