A Discrete-Event Network Simulator
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
30using namespace ns3;
31
40{
41 public:
43
50 double CalculateRbTxPower(double txPower, uint8_t pa);
51};
52
61{
62 public:
75 uint16_t earfcn,
76 uint16_t bw,
77 double powerTx,
78 std::map<int, double> powerTxMap,
79 std::vector<int> activeRbs,
80 SpectrumValue& expected);
82
83 private:
84 void DoRun() override;
87};
88
98{
99 public:
107 LteDownlinkPowerControlTestCase(bool changePower, uint8_t pa, std::string name);
109
110 private:
111 void DoRun() override;
112
116};
117
127{
128 public:
135 LteDownlinkPowerControlRrcConnectionReconfigurationTestCase(bool useIdealRrc, std::string name);
137
146 void ConnectionReconfigurationEnb(std::string context,
147 uint64_t imsi,
148 uint16_t cellid,
149 uint16_t rnti);
150
159 void ConnectionReconfigurationUe(std::string context,
160 uint64_t imsi,
161 uint16_t cellid,
162 uint16_t rnti);
163
170 void ChangePdschConfigDedicated(uint16_t rnti, uint8_t pa);
171
172 private:
173 void DoRun() override;
175
179};
180
181#endif /* LTE_TEST_DOWNLINK_POWER_CONTROL_H */
Set of values corresponding to a given SpectrumModel.
encapsulates test code
Definition: test.h:1060
A suite of tests to run.
Definition: test.h:1256
Every class exported by the ns3 library is enclosed in the ns3 namespace.
PdschConfigDedicated structure.
Definition: lte-rrc-sap.h:157