A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
lte-test-downlink-sinr.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Manuel Requena <manuel.requena@cttc.es>
19
* Modified by Marco Miozzo <mmiozzo@ctt.es>
20
* Extend to Data and Ctrl frames
21
*/
22
23
#ifndef LTE_TEST_DOWNLINK_SINR_H
24
#define LTE_TEST_DOWNLINK_SINR_H
25
26
#include "ns3/spectrum-value.h"
27
28
#include "ns3/test.h"
29
30
using namespace
ns3
;
31
35
class
LteDownlinkSinrTestSuite
:
public
TestSuite
36
{
37
public
:
38
LteDownlinkSinrTestSuite
();
39
};
40
41
42
class
LteDownlinkDataSinrTestCase
:
public
TestCase
43
{
44
public
:
45
LteDownlinkDataSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
46
virtual
~
LteDownlinkDataSinrTestCase
();
47
48
private
:
49
virtual
void
DoRun (
void
);
50
51
Ptr<SpectrumValue>
m_sv
;
52
Ptr<const SpectrumModel>
m_sm
;
53
Ptr<SpectrumValue>
m_expectedSinr
;
54
};
55
56
57
class
LteDownlinkCtrlSinrTestCase
:
public
TestCase
58
{
59
public
:
60
LteDownlinkCtrlSinrTestCase
(
Ptr<SpectrumValue>
sv,
Ptr<SpectrumValue>
sinr, std::string name);
61
virtual
~
LteDownlinkCtrlSinrTestCase
();
62
63
private
:
64
virtual
void
DoRun (
void
);
65
66
Ptr<SpectrumValue>
m_sv
;
67
Ptr<const SpectrumModel>
m_sm
;
68
Ptr<SpectrumValue>
m_expectedSinr
;
69
};
70
71
#endif
/* LTE_TEST_DOWNLINK_SINR_H */
ns3::Ptr< SpectrumValue >
LteDownlinkCtrlSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
Definition:
lte-test-downlink-sinr.h:68
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1333
ns3::TestCase
encapsulates test code
Definition:
test.h:1147
LteDownlinkCtrlSinrTestCase
Definition:
lte-test-downlink-sinr.h:57
LteDownlinkDataSinrTestCase
Definition:
lte-test-downlink-sinr.h:42
LteDownlinkCtrlSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
Definition:
lte-test-downlink-sinr.h:66
LteDownlinkCtrlSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
Definition:
lte-test-downlink-sinr.h:67
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteDownlinkDataSinrTestCase::m_sv
Ptr< SpectrumValue > m_sv
Definition:
lte-test-downlink-sinr.h:51
LteDownlinkSinrTestSuite
Test 1.1 SINR calculation in downlink.
Definition:
lte-test-downlink-sinr.h:35
LteDownlinkDataSinrTestCase::m_expectedSinr
Ptr< SpectrumValue > m_expectedSinr
Definition:
lte-test-downlink-sinr.h:53
LteDownlinkDataSinrTestCase::m_sm
Ptr< const SpectrumModel > m_sm
Definition:
lte-test-downlink-sinr.h:52
src
lte
test
lte-test-downlink-sinr.h
Generated on Wed Sep 30 2015 15:55:42 for ns-3 by
1.8.9.1