A Discrete-Event Network Simulator
API
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
29using namespace ns3;
30
38{
39public:
41};
42
43
51{
52public:
58 LteUplinkPowerControlTestCase (std::string name);
60
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
110protected:
111 virtual void DoRun (void);
112
115
119
122
124};
125
133{
134public:
140 LteUplinkOpenLoopPowerControlTestCase (std::string name);
142
143private:
144 virtual void DoRun (void);
145};
146
154{
155public:
163
164private:
165 virtual void DoRun (void);
166};
167
175{
176public:
184
185private:
186 virtual void DoRun (void);
187};
188
189#endif /* LTE_TEST_UPLINK_POWER_CONTROL_H */
encapsulates test code
Definition: test.h:994
A suite of tests to run.
Definition: test.h:1188
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:103
Every class exported by the ns3 library is enclosed in the ns3 namespace.
list x
Random number samples.