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
46{
47 public:
49};
50
58{
59 public:
65 LteUplinkPowerControlTestCase(std::string name);
67
77 void TeleportUe(uint32_t x,
78 uint32_t y,
79 double expectedPuschTxPower,
80 double expectedPucchTxPower,
81 double expectedSrsTxPower);
82
93 uint32_t tpcNum,
94 double expectedPuschTxPower,
95 double expectedPucchTxPower,
96 double expectedSrsTxPower);
97
105 void PuschTxPowerTrace(uint16_t cellId, uint16_t rnti, double txPower);
113 void PucchTxPowerTrace(uint16_t cellId, uint16_t rnti, double txPower);
121 void SrsTxPowerTrace(uint16_t cellId, uint16_t rnti, double txPower);
122
123 protected:
124 void DoRun() override;
125
128
132
135
137};
138
146{
147 public:
155
156 private:
157 void DoRun() override;
158};
159
167{
168 public:
176
177 private:
178 void DoRun() override;
179};
180
188{
189 public:
197
198 private:
199 void DoRun() override;
200};
201
202#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.