A Discrete-Event Network Simulator
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
28using 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 */
38{
39 public:
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 */
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);
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 */
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);
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 */
Test suite for the interference test when using different frequency reuse algorithms....
Lte interference test when using hard frequency reuse algorithm.
double m_expectedDlSinrDb
expected DL SINR in dB
void DoRun() override
Implementation to actually run this TestCase.
double m_d2
distance between UE and other ENB
double m_d1
distance between UE and ENB
Lte interference test when using strict frequency reuse algorithm.
double m_d1
distance between UE and ENB
void DoRun() override
Implementation to actually run this TestCase.
double m_commonDlSinrDb
expected common DL SINR in dB
double m_edgeDlSinrDb
expected edge DL SINR in dB
double m_d2
distance between UE and other ENB
encapsulates test code
Definition: test.h:1061
A suite of tests to run.
Definition: test.h:1268
Every class exported by the ns3 library is enclosed in the ns3 namespace.