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-downlink-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_DOWNLINK_POWER_CONTROL_H
23
#define LTE_TEST_DOWNLINK_POWER_CONTROL_H
24
25
#include "ns3/spectrum-value.h"
26
#include <ns3/lte-rrc-sap.h>
27
28
#include "ns3/spectrum-test.h"
29
#include "ns3/lte-spectrum-value-helper.h"
30
31
#include "ns3/test.h"
32
33
using namespace
ns3
;
34
38
class
LteDownlinkPowerControlTestSuite
:
public
TestSuite
39
{
40
public
:
41
LteDownlinkPowerControlTestSuite
();
42
43
double
CalculateRbTxPower (
double
txPower, uint8_t pa);
44
};
45
46
class
LteDownlinkPowerControlSpectrumValueTestCase
:
public
TestCase
47
{
48
public
:
49
LteDownlinkPowerControlSpectrumValueTestCase
(std::string name,
50
uint16_t earfcn, uint8_t bw,
double
powerTx,
51
std::map<int, double> powerTxMap, std::vector <int> activeRbs,
52
SpectrumValue
& expected);
53
virtual
~
LteDownlinkPowerControlSpectrumValueTestCase
();
54
55
private
:
56
virtual
void
DoRun (
void
);
57
Ptr<SpectrumValue>
m_actual
;
58
Ptr<SpectrumValue>
m_expected
;
59
60
};
61
62
class
LteDownlinkPowerControlTestCase
:
public
TestCase
63
{
64
public
:
65
LteDownlinkPowerControlTestCase
(
bool
changePower, uint8_t pa, std::string name);
66
virtual
~
LteDownlinkPowerControlTestCase
();
67
68
private
:
69
virtual
void
DoRun (
void
);
70
71
bool
m_changePdschConfigDedicated
;
72
LteRrcSap::PdschConfigDedicated
m_pdschConfigDedicated
;
73
double
m_expectedPowerDiff
;
74
};
75
76
77
class
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
:
public
TestCase
78
{
79
public
:
80
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
(
bool
useIdealRrc, std::string name);
81
virtual
~
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
();
82
83
void
ConnectionReconfigurationEnb (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti);
84
85
void
ConnectionReconfigurationUe (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti);
86
87
void
ChangePdschConfigDedicated (uint16_t rnti, uint8_t pa);
88
private
:
89
virtual
void
DoRun (
void
);
90
bool
m_useIdealRrc
;
91
92
bool
m_changePdschConfigDedicatedTriggered
;
93
bool
m_connectionReconfigurationUeReceived
;
94
bool
m_connectionReconfigurationEnbCompleted
;
95
};
96
97
#endif
/* LTE_TEST_DOWNLINK_POWER_CONTROL_H */
ns3::Ptr< SpectrumValue >
LteDownlinkPowerControlSpectrumValueTestCase::m_expected
Ptr< SpectrumValue > m_expected
Definition:
lte-test-downlink-power-control.h:58
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1333
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_useIdealRrc
bool m_useIdealRrc
Definition:
lte-test-downlink-power-control.h:90
ns3::TestCase
encapsulates test code
Definition:
test.h:1147
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_connectionReconfigurationUeReceived
bool m_connectionReconfigurationUeReceived
Definition:
lte-test-downlink-power-control.h:93
LteDownlinkPowerControlTestCase::m_pdschConfigDedicated
LteRrcSap::PdschConfigDedicated m_pdschConfigDedicated
Definition:
lte-test-downlink-power-control.h:72
LteDownlinkPowerControlSpectrumValueTestCase::m_actual
Ptr< SpectrumValue > m_actual
Definition:
lte-test-downlink-power-control.h:57
LteDownlinkPowerControlTestCase
Definition:
lte-test-downlink-power-control.h:62
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_changePdschConfigDedicatedTriggered
bool m_changePdschConfigDedicatedTriggered
Definition:
lte-test-downlink-power-control.h:92
LteDownlinkPowerControlTestCase::m_changePdschConfigDedicated
bool m_changePdschConfigDedicated
Definition:
lte-test-downlink-power-control.h:71
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase
Definition:
lte-test-downlink-power-control.h:77
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteDownlinkPowerControlSpectrumValueTestCase
Definition:
lte-test-downlink-power-control.h:46
LteDownlinkPowerControlTestCase::m_expectedPowerDiff
double m_expectedPowerDiff
Definition:
lte-test-downlink-power-control.h:73
LteDownlinkPowerControlTestSuite
Test 1.1 SINR calculation in downlink.
Definition:
lte-test-downlink-power-control.h:38
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::m_connectionReconfigurationEnbCompleted
bool m_connectionReconfigurationEnbCompleted
Definition:
lte-test-downlink-power-control.h:94
ns3::LteRrcSap::PdschConfigDedicated
Definition:
lte-rrc-sap.h:142
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:57
src
lte
test
lte-test-downlink-power-control.h
Generated on Wed Sep 30 2015 15:55:42 for ns-3 by
1.8.9.1