A Discrete-Event Network Simulator
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
28using namespace ns3;
29
30/**
31 * \ingroup lte-test
32 *
33 * \brief Test 1.1 SINR calculation in downlink
34 */
36{
37 public:
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 */
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 */
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 */
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 */
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 */
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
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.