A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
34
class
LteUplinkPowerControlTestSuite
:
public
TestSuite
35
{
36
public
:
37
LteUplinkPowerControlTestSuite
();
38
};
39
40
class
LteUplinkPowerControlTestCase
:
public
TestCase
41
{
42
public
:
43
LteUplinkPowerControlTestCase
(std::string name);
44
virtual
~
LteUplinkPowerControlTestCase
();
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
59
Ptr<MobilityModel>
m_ueMobility
;
60
Time
m_teleportTime
;
61
62
double
m_expectedPuschTxPower
;
63
double
m_expectedPucchTxPower
;
64
double
m_expectedSrsTxPower
;
65
66
Ptr<LteUePowerControl>
m_ueUpc
;
67
bool
m_accumulatedMode
;
68
69
Ptr<LteFfrSimple>
m_ffrSimple
;
70
};
71
72
class
LteUplinkOpenLoopPowerControlTestCase
:
public
LteUplinkPowerControlTestCase
73
{
74
public
:
75
LteUplinkOpenLoopPowerControlTestCase
(std::string name);
76
virtual
~
LteUplinkOpenLoopPowerControlTestCase
();
77
78
private
:
79
virtual
void
DoRun (
void
);
80
};
81
82
class
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
:
public
LteUplinkPowerControlTestCase
83
{
84
public
:
85
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
(std::string name);
86
virtual
~
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
();
87
88
private
:
89
virtual
void
DoRun (
void
);
90
};
91
92
class
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
:
public
LteUplinkPowerControlTestCase
93
{
94
public
:
95
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
(std::string name);
96
virtual
~
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
();
97
98
private
:
99
virtual
void
DoRun (
void
);
100
};
101
102
#endif
/* LTE_TEST_UPLINK_POWER_CONTROL_H */
LteUplinkPowerControlTestCase::m_accumulatedMode
bool m_accumulatedMode
Definition:
lte-test-uplink-power-control.h:67
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::Ptr< MobilityModel >
LteUplinkClosedLoopPowerControlAbsoluteModeTestCase
Definition:
lte-test-uplink-power-control.h:82
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1276
LteUplinkPowerControlTestCase::m_ueUpc
Ptr< LteUePowerControl > m_ueUpc
Definition:
lte-test-uplink-power-control.h:66
LteUplinkPowerControlTestCase::m_teleportTime
Time m_teleportTime
Definition:
lte-test-uplink-power-control.h:60
LteUplinkPowerControlTestCase::m_expectedSrsTxPower
double m_expectedSrsTxPower
Definition:
lte-test-uplink-power-control.h:64
ns3::TestCase
encapsulates test code
Definition:
test.h:1108
LteUplinkPowerControlTestCase::m_expectedPuschTxPower
double m_expectedPuschTxPower
Definition:
lte-test-uplink-power-control.h:62
LteUplinkClosedLoopPowerControlAccumulatedModeTestCase
Definition:
lte-test-uplink-power-control.h:92
LteUplinkPowerControlTestCase::m_expectedPucchTxPower
double m_expectedPucchTxPower
Definition:
lte-test-uplink-power-control.h:63
LteUplinkPowerControlTestCase::m_ffrSimple
Ptr< LteFfrSimple > m_ffrSimple
Definition:
lte-test-uplink-power-control.h:69
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteUplinkPowerControlTestSuite
Test 1.1 Uplink Power Control.
Definition:
lte-test-uplink-power-control.h:34
LteUplinkPowerControlTestCase
Definition:
lte-test-uplink-power-control.h:40
LteUplinkPowerControlTestCase::m_ueMobility
Ptr< MobilityModel > m_ueMobility
Definition:
lte-test-uplink-power-control.h:59
LteUplinkOpenLoopPowerControlTestCase
Definition:
lte-test-uplink-power-control.h:72
sample-rng-plot.x
list x
Definition:
sample-rng-plot.py:26
src
lte
test
lte-test-uplink-power-control.h
Generated on Wed May 13 2015 14:59:25 for ns-3 by
1.8.9.1