A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
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
36
class
LteDownlinkSinrTestSuite
:
public
TestSuite
37
{
38
public
:
39
LteDownlinkSinrTestSuite
();
40
};
41
53
class
LteDownlinkDataSinrTestCase
:
public
TestCase
54
{
55
public
:
63
LteDownlinkDataSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
64
~LteDownlinkDataSinrTestCase
()
override
;
65
66
private
:
67
void
DoRun
()
override
;
68
69
Ptr<SpectrumValue>
m_sv
;
70
Ptr<const SpectrumModel>
m_sm
;
71
Ptr<SpectrumValue>
m_expectedSinr
;
72
};
73
86
class
LteDownlinkCtrlSinrTestCase
:
public
TestCase
87
{
88
public
:
96
LteDownlinkCtrlSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
97
~LteDownlinkCtrlSinrTestCase
()
override
;
98
99
private
:
100
void
DoRun
()
override
;
101
102
Ptr<SpectrumValue>
m_sv
;
103
Ptr<const SpectrumModel>
m_sm
;
104
Ptr<SpectrumValue>
m_expectedSinr
;
105
};
106
107
#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:87
LteDownlinkCtrlSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
the expected SINR
Definition:
lte-test-downlink-sinr.h:104
LteDownlinkCtrlSinrTestCase::LteDownlinkCtrlSinrTestCase
LteDownlinkCtrlSinrTestCase(Ptr< SpectrumValue > sv, Ptr< SpectrumValue > sinr, std::string name)
Constructor.
Definition:
lte-test-downlink-sinr.cc:282
LteDownlinkCtrlSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
the spectrum model
Definition:
lte-test-downlink-sinr.h:103
LteDownlinkCtrlSinrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-downlink-sinr.cc:298
LteDownlinkCtrlSinrTestCase::~LteDownlinkCtrlSinrTestCase
~LteDownlinkCtrlSinrTestCase() override
Definition:
lte-test-downlink-sinr.cc:293
LteDownlinkCtrlSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
the spectrum value
Definition:
lte-test-downlink-sinr.h:102
LteDownlinkDataSinrTestCase
Test compares if the generated SINR is equal to estimated SINR value.
Definition:
lte-test-downlink-sinr.h:54
LteDownlinkDataSinrTestCase::~LteDownlinkDataSinrTestCase
~LteDownlinkDataSinrTestCase() override
Definition:
lte-test-downlink-sinr.cc:123
LteDownlinkDataSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
the spectrum model
Definition:
lte-test-downlink-sinr.h:70
LteDownlinkDataSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
the expected SINR
Definition:
lte-test-downlink-sinr.h:71
LteDownlinkDataSinrTestCase::LteDownlinkDataSinrTestCase
LteDownlinkDataSinrTestCase(Ptr< SpectrumValue > sv, Ptr< SpectrumValue > sinr, std::string name)
Constructor.
Definition:
lte-test-downlink-sinr.cc:112
LteDownlinkDataSinrTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-downlink-sinr.cc:128
LteDownlinkDataSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
the spectrum value
Definition:
lte-test-downlink-sinr.h:69
LteDownlinkSinrTestSuite
Test 1.1 SINR calculation in downlink.
Definition:
lte-test-downlink-sinr.h:37
LteDownlinkSinrTestSuite::LteDownlinkSinrTestSuite
LteDownlinkSinrTestSuite()
Test 1.1 SINR calculation in downlink.
Definition:
lte-test-downlink-sinr.cc:48
ns3::Ptr< SpectrumValue >
ns3::TestCase
encapsulates test code
Definition:
test.h:1060
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1256
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 Nov 1 2022 23:00:15 for ns-3 by
1.9.3