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 
29 using namespace ns3;
30 
35 {
36 public:
38 };
39 
41 {
42 public:
43  LteUplinkPowerControlTestCase (std::string name);
45 
46  void TeleportUe (uint32_t x, uint32_t y,
47  double expectedPuschTxPower, double expectedPucchTxPower, double expectedSrsTxPower);
48 
49  void SetTpcConfiguration (uint32_t tpc, uint32_t tpcNum,
50  double expectedPuschTxPower, double expectedPucchTxPower, double expectedSrsTxPower);
51 
52  void PuschTxPowerTrace (uint16_t cellId, uint16_t rnti, double txPower);
53  void PucchTxPowerTrace (uint16_t cellId, uint16_t rnti, double txPower);
54  void SrsTxPowerTrace (uint16_t cellId, uint16_t rnti, double txPower);
55 
56 protected:
57  virtual void DoRun (void);
58 
61 
65 
68 
70 };
71 
73 {
74 public:
75  LteUplinkOpenLoopPowerControlTestCase (std::string name);
77 
78 private:
79  virtual void DoRun (void);
80 };
81 
83 {
84 public:
87 
88 private:
89  virtual void DoRun (void);
90 };
91 
93 {
94 public:
97 
98 private:
99  virtual void DoRun (void);
100 };
101 
102 #endif /* LTE_TEST_UPLINK_POWER_CONTROL_H */
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:102
A suite of tests to run.
Definition: test.h:1333
encapsulates test code
Definition: test.h:1147
Every class exported by the ns3 library is enclosed in the ns3 namespace.