A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
lte-test-interference-fr.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
* Based on lte-test-interference.{h,cc} by:
19
* Manuel Requena <manuel.requena@cttc.es>
20
* Nicola Baldo <nbaldo@cttc.es>
21
*/
22
23
#ifndef LTE_TEST_INTERFERENCE_FR_H
24
#define LTE_TEST_INTERFERENCE_FR_H
25
26
#include "ns3/test.h"
27
28
using namespace
ns3
;
29
30
/**
31
* \ingroup lte-test
32
*
33
* \brief Test suite for the interference test when using different
34
* frequency reuse algorithms.Check if the interfence values correspond to
35
* theoretical values.
36
*/
37
class
LteInterferenceFrTestSuite
:
public
TestSuite
38
{
39
public
:
40
LteInterferenceFrTestSuite
();
41
};
42
43
/**
44
* \ingroup lte-test
45
*
46
* \brief Lte interference test when using hard frequency reuse algorithm. Check
47
* if the interfence values correspond to theoretical values.
48
*/
49
class
LteInterferenceHardFrTestCase
:
public
TestCase
50
{
51
public
:
52
/**
53
* Constructor
54
*
55
* \param name the reference name
56
* \param d1 distance between ENB and UE
57
* \param d2 distance between ENB and other UE
58
* \param dlSinr the DL SINR
59
* \param ulSinr the UL SINR
60
*/
61
LteInterferenceHardFrTestCase
(std::string name,
62
double
d1,
63
double
d2,
64
double
dlSinr,
65
double
ulSinr);
66
~LteInterferenceHardFrTestCase
()
override
;
67
68
private
:
69
void
DoRun
()
override
;
70
71
double
m_d1
;
///< distance between UE and ENB
72
double
m_d2
;
///< distance between UE and other ENB
73
double
m_expectedDlSinrDb
;
///< expected DL SINR in dB
74
};
75
76
/**
77
* \ingroup lte-test
78
*
79
* \brief Lte interference test when using strict frequency reuse algorithm.
80
*/
81
class
LteInterferenceStrictFrTestCase
:
public
TestCase
82
{
83
public
:
84
/**
85
* Constructor
86
*
87
* \param name the reference name
88
* \param d1 distance between ENB and UE
89
* \param d2 distance between ENB and other UE
90
* \param commonDlSinr the DL SINR
91
* \param commonUlSinr the UL SINR
92
* \param edgeDlSinr the DL SINR
93
* \param edgeUlSinr the UL SINR
94
* \param rspqThreshold RSPQ threshold
95
*/
96
LteInterferenceStrictFrTestCase
(std::string name,
97
double
d1,
98
double
d2,
99
double
commonDlSinr,
100
double
commonUlSinr,
101
double
edgeDlSinr,
102
double
edgeUlSinr,
103
uint32_t
rspqThreshold);
104
~LteInterferenceStrictFrTestCase
()
override
;
105
106
private
:
107
void
DoRun
()
override
;
108
109
double
m_d1
;
///< distance between UE and ENB
110
double
m_d2
;
///< distance between UE and other ENB
111
double
m_commonDlSinrDb
;
///< expected common DL SINR in dB
112
double
m_edgeDlSinrDb
;
///< expected edge DL SINR in dB
113
114
uint32_t
m_rspqThreshold
;
///< RSPQ threshold
115
};
116
117
#endif
/* LTE_TEST_INTERFERENCE_FR_H */
LteInterferenceFrTestSuite
Test suite for the interference test when using different frequency reuse algorithms....
Definition:
lte-test-interference-fr.h:38
LteInterferenceFrTestSuite::LteInterferenceFrTestSuite
LteInterferenceFrTestSuite()
TestSuite.
Definition:
lte-test-interference-fr.cc:53
LteInterferenceHardFrTestCase
Lte interference test when using hard frequency reuse algorithm.
Definition:
lte-test-interference-fr.h:50
LteInterferenceHardFrTestCase::m_expectedDlSinrDb
double m_expectedDlSinrDb
expected DL SINR in dB
Definition:
lte-test-interference-fr.h:73
LteInterferenceHardFrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-interference-fr.cc:149
LteInterferenceHardFrTestCase::m_d2
double m_d2
distance between UE and other ENB
Definition:
lte-test-interference-fr.h:72
LteInterferenceHardFrTestCase::m_d1
double m_d1
distance between UE and ENB
Definition:
lte-test-interference-fr.h:71
LteInterferenceHardFrTestCase::~LteInterferenceHardFrTestCase
~LteInterferenceHardFrTestCase() override
Definition:
lte-test-interference-fr.cc:144
LteInterferenceStrictFrTestCase
Lte interference test when using strict frequency reuse algorithm.
Definition:
lte-test-interference-fr.h:82
LteInterferenceStrictFrTestCase::m_d1
double m_d1
distance between UE and ENB
Definition:
lte-test-interference-fr.h:109
LteInterferenceStrictFrTestCase::m_rspqThreshold
uint32_t m_rspqThreshold
RSPQ threshold.
Definition:
lte-test-interference-fr.h:114
LteInterferenceStrictFrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-interference-fr.cc:324
LteInterferenceStrictFrTestCase::m_commonDlSinrDb
double m_commonDlSinrDb
expected common DL SINR in dB
Definition:
lte-test-interference-fr.h:111
LteInterferenceStrictFrTestCase::m_edgeDlSinrDb
double m_edgeDlSinrDb
expected edge DL SINR in dB
Definition:
lte-test-interference-fr.h:112
LteInterferenceStrictFrTestCase::m_d2
double m_d2
distance between UE and other ENB
Definition:
lte-test-interference-fr.h:110
LteInterferenceStrictFrTestCase::~LteInterferenceStrictFrTestCase
~LteInterferenceStrictFrTestCase() override
Definition:
lte-test-interference-fr.cc:319
ns3::TestCase
encapsulates test code
Definition:
test.h:1061
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1273
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-interference-fr.h
Generated on Tue May 28 2024 23:37:49 for ns-3 by
1.9.6