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
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
* Modified by Marco Miozzo <mmiozzo@ctt.es>
8
* Extend to Data and Ctrl frames
9
*/
10
11
#ifndef LTE_TEST_DOWNLINK_SINR_H
12
#define LTE_TEST_DOWNLINK_SINR_H
13
14
#include "ns3/spectrum-value.h"
15
#include "ns3/test.h"
16
17
using namespace
ns3
;
18
19
/**
20
* \ingroup lte-test
21
*
22
* \brief Test 1.1 SINR calculation in downlink
23
*/
24
class
LteDownlinkSinrTestSuite
:
public
TestSuite
25
{
26
public
:
27
LteDownlinkSinrTestSuite
();
28
};
29
30
/**
31
* \ingroup lte-test
32
*
33
* \brief Test compares if the generated SINR is equal to estimated SINR
34
* value. Test generates several calls to LteSpectrumPhy::StartRx corresponding
35
* to several signals. One will be the signal of interest, i.e., the
36
* LteSpectrumSignalParametersDlCtrlFrame of the first signal will have the
37
* same CellId of the receiving PHY; the others will have a different
38
* CellId and hence will be the interfering signals.
39
*/
40
class
LteDownlinkDataSinrTestCase
:
public
TestCase
41
{
42
public
:
43
/**
44
* Constructor
45
*
46
* \param sv the spectrum value
47
* \param sinr the SINR
48
* \param name the name of the test
49
*/
50
LteDownlinkDataSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
51
~LteDownlinkDataSinrTestCase
()
override
;
52
53
private
:
54
void
DoRun
()
override
;
55
56
Ptr<SpectrumValue>
m_sv
;
///< the spectrum value
57
Ptr<const SpectrumModel>
m_sm
;
///< the spectrum model
58
Ptr<SpectrumValue>
m_expectedSinr
;
///< the expected SINR
59
};
60
61
/**
62
* \ingroup lte-test
63
*
64
* \brief
65
* Test compares if the generated SINR is equal to estimated SINR value.
66
* Test generates several calls to LteSpectrumPhy::StartRx corresponding
67
* to several signals. One will be the signal of interest, i.e., the
68
* LteSpectrumSignalParametersDlCtrlFrame of the first signal will have the
69
* same CellId of the receiving PHY; the others will have a different
70
* CellId and hence will be the interfering signals.
71
*/
72
class
LteDownlinkCtrlSinrTestCase
:
public
TestCase
73
{
74
public
:
75
/**
76
* Constructor
77
*
78
* \param sv the spectrum value
79
* \param sinr the SINR
80
* \param name the name of the test
81
*/
82
LteDownlinkCtrlSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
83
~LteDownlinkCtrlSinrTestCase
()
override
;
84
85
private
:
86
void
DoRun
()
override
;
87
88
Ptr<SpectrumValue>
m_sv
;
///< the spectrum value
89
Ptr<const SpectrumModel>
m_sm
;
///< the spectrum model
90
Ptr<SpectrumValue>
m_expectedSinr
;
///< the expected SINR
91
};
92
93
#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:73
LteDownlinkCtrlSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
the expected SINR
Definition
lte-test-downlink-sinr.h:90
LteDownlinkCtrlSinrTestCase::LteDownlinkCtrlSinrTestCase
LteDownlinkCtrlSinrTestCase(Ptr< SpectrumValue > sv, Ptr< SpectrumValue > sinr, std::string name)
Constructor.
Definition
lte-test-downlink-sinr.cc:275
LteDownlinkCtrlSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
the spectrum model
Definition
lte-test-downlink-sinr.h:89
LteDownlinkCtrlSinrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-downlink-sinr.cc:291
LteDownlinkCtrlSinrTestCase::~LteDownlinkCtrlSinrTestCase
~LteDownlinkCtrlSinrTestCase() override
Definition
lte-test-downlink-sinr.cc:286
LteDownlinkCtrlSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
the spectrum value
Definition
lte-test-downlink-sinr.h:88
LteDownlinkDataSinrTestCase
Test compares if the generated SINR is equal to estimated SINR value.
Definition
lte-test-downlink-sinr.h:41
LteDownlinkDataSinrTestCase::~LteDownlinkDataSinrTestCase
~LteDownlinkDataSinrTestCase() override
Definition
lte-test-downlink-sinr.cc:116
LteDownlinkDataSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
the spectrum model
Definition
lte-test-downlink-sinr.h:57
LteDownlinkDataSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
the expected SINR
Definition
lte-test-downlink-sinr.h:58
LteDownlinkDataSinrTestCase::LteDownlinkDataSinrTestCase
LteDownlinkDataSinrTestCase(Ptr< SpectrumValue > sv, Ptr< SpectrumValue > sinr, std::string name)
Constructor.
Definition
lte-test-downlink-sinr.cc:105
LteDownlinkDataSinrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-downlink-sinr.cc:121
LteDownlinkDataSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
the spectrum value
Definition
lte-test-downlink-sinr.h:56
LteDownlinkSinrTestSuite
Test 1.1 SINR calculation in downlink.
Definition
lte-test-downlink-sinr.h:25
LteDownlinkSinrTestSuite::LteDownlinkSinrTestSuite
LteDownlinkSinrTestSuite()
Test 1.1 SINR calculation in downlink.
Definition
lte-test-downlink-sinr.cc:37
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::TestSuite
A suite of tests to run.
Definition
test.h:1267
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-downlink-sinr.h
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0