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-downlink-sinr.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Manuel Requena <manuel.requena@cttc.es>
18
* Modified by Marco Miozzo <mmiozzo@ctt.es>
19
* Extend to Data and Ctrl frames
20
*/
21
22
#ifndef LTE_TEST_DOWNLINK_SINR_H
23
#define LTE_TEST_DOWNLINK_SINR_H
24
25
#include "ns3/spectrum-value.h"
26
#include "ns3/test.h"
27
28
using namespace
ns3
;
29
30
/**
31
* \ingroup lte-test
32
*
33
* \brief Test 1.1 SINR calculation in downlink
34
*/
35
class
LteDownlinkSinrTestSuite
:
public
TestSuite
36
{
37
public
:
38
LteDownlinkSinrTestSuite
();
39
};
40
41
/**
42
* \ingroup lte-test
43
*
44
* \brief Test compares if the generated SINR is equal to estimated SINR
45
* value. Test generates several calls to LteSpectrumPhy::StartRx corresponding
46
* to several signals. One will be the signal of interest, i.e., the
47
* LteSpectrumSignalParametersDlCtrlFrame of the first signal will have the
48
* same CellId of the receiving PHY; the others will have a different
49
* CellId and hence will be the interfering signals.
50
*/
51
class
LteDownlinkDataSinrTestCase
:
public
TestCase
52
{
53
public
:
54
/**
55
* Constructor
56
*
57
* \param sv the spectrum value
58
* \param sinr the SINR
59
* \param name the name of the test
60
*/
61
LteDownlinkDataSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
62
~LteDownlinkDataSinrTestCase
()
override
;
63
64
private
:
65
void
DoRun
()
override
;
66
67
Ptr<SpectrumValue>
m_sv
;
///< the spectrum value
68
Ptr<const SpectrumModel>
m_sm
;
///< the spectrum model
69
Ptr<SpectrumValue>
m_expectedSinr
;
///< the expected SINR
70
};
71
72
/**
73
* \ingroup lte-test
74
*
75
* \brief
76
* Test compares if the generated SINR is equal to estimated SINR value.
77
* Test generates several calls to LteSpectrumPhy::StartRx corresponding
78
* to several signals. One will be the signal of interest, i.e., the
79
* LteSpectrumSignalParametersDlCtrlFrame of the first signal will have the
80
* same CellId of the receiving PHY; the others will have a different
81
* CellId and hence will be the interfering signals.
82
*/
83
class
LteDownlinkCtrlSinrTestCase
:
public
TestCase
84
{
85
public
:
86
/**
87
* Constructor
88
*
89
* \param sv the spectrum value
90
* \param sinr the SINR
91
* \param name the name of the test
92
*/
93
LteDownlinkCtrlSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
94
~LteDownlinkCtrlSinrTestCase
()
override
;
95
96
private
:
97
void
DoRun
()
override
;
98
99
Ptr<SpectrumValue>
m_sv
;
///< the spectrum value
100
Ptr<const SpectrumModel>
m_sm
;
///< the spectrum model
101
Ptr<SpectrumValue>
m_expectedSinr
;
///< the expected SINR
102
};
103
104
#endif
/* LTE_TEST_DOWNLINK_SINR_H */
LteDownlinkCtrlSinrTestCase
Test compares if the generated SINR is equal to estimated SINR value.
Definition:
lte-test-downlink-sinr.h:84
LteDownlinkCtrlSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
the expected SINR
Definition:
lte-test-downlink-sinr.h:101
LteDownlinkCtrlSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
the spectrum model
Definition:
lte-test-downlink-sinr.h:100
LteDownlinkCtrlSinrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-downlink-sinr.cc:302
LteDownlinkCtrlSinrTestCase::~LteDownlinkCtrlSinrTestCase
~LteDownlinkCtrlSinrTestCase() override
Definition:
lte-test-downlink-sinr.cc:297
LteDownlinkCtrlSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
the spectrum value
Definition:
lte-test-downlink-sinr.h:99
LteDownlinkDataSinrTestCase
Test compares if the generated SINR is equal to estimated SINR value.
Definition:
lte-test-downlink-sinr.h:52
LteDownlinkDataSinrTestCase::~LteDownlinkDataSinrTestCase
~LteDownlinkDataSinrTestCase() override
Definition:
lte-test-downlink-sinr.cc:127
LteDownlinkDataSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
the spectrum model
Definition:
lte-test-downlink-sinr.h:68
LteDownlinkDataSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
the expected SINR
Definition:
lte-test-downlink-sinr.h:69
LteDownlinkDataSinrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-downlink-sinr.cc:132
LteDownlinkDataSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
the spectrum value
Definition:
lte-test-downlink-sinr.h:67
LteDownlinkSinrTestSuite
Test 1.1 SINR calculation in downlink.
Definition:
lte-test-downlink-sinr.h:36
LteDownlinkSinrTestSuite::LteDownlinkSinrTestSuite
LteDownlinkSinrTestSuite()
Test 1.1 SINR calculation in downlink.
Definition:
lte-test-downlink-sinr.cc:48
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::TestCase
encapsulates test code
Definition:
test.h:1061
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1273
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-downlink-sinr.h
Generated on Tue May 28 2024 23:37:46 for ns-3 by
1.9.6