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 * 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
17using namespace ns3;
18
19/**
20 * \ingroup lte-test
21 *
22 * \brief Test 1.1 SINR calculation in downlink
23 */
25{
26 public:
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 */
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 */
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 */
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 */
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 */
Smart pointer class similar to boost::intrusive_ptr.
encapsulates test code
Definition test.h:1050
A suite of tests to run.
Definition test.h:1267
Every class exported by the ns3 library is enclosed in the ns3 namespace.