A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
lte-test-fading.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: Marco Miozzo <marco.miozzo@cttc.es>
19
*/
20
21
#ifndef LTE_TEST_FADING_H
22
#define LTE_TEST_FADING_H
23
24
#include "ns3/spectrum-value.h"
25
26
#include "ns3/test.h"
27
28
#include <ns3/buildings-mobility-model.h>
29
#include <ns3/buildings-propagation-loss-model.h>
30
#include <ns3/spectrum-value.h>
31
32
#include <ns3/trace-fading-loss-model.h>
33
34
using namespace
ns3
;
35
36
44
class
LteFadingTestSuite
:
public
TestSuite
45
{
46
public
:
47
LteFadingTestSuite
();
48
};
49
50
59
class
LteFadingTestCase
:
public
TestCase
60
{
61
public
:
69
LteFadingTestCase
(
Ptr<BuildingsMobilityModel>
m1
,
Ptr<BuildingsMobilityModel>
m2
,
double
refValue, std::string name);
70
virtual
~
LteFadingTestCase
();
71
72
private
:
73
virtual
void
DoRun (
void
);
74
75
void
GetFadingSample ();
76
77
Ptr<BuildingsMobilityModel>
m_node1
;
78
Ptr<BuildingsMobilityModel>
m_node2
;
79
Ptr<TraceFadingLossModel>
m_fadingModule
;
80
double
m_lossRef
;
81
std::vector<SpectrumValue>
m_fadingSamples
;
82
83
84
};
85
92
class
LteFadingSystemTestCase
:
public
TestCase
93
{
94
public
:
102
LteFadingSystemTestCase
(std::string name,
double
snrDb,
double
dist, uint16_t mcsIndex);
103
LteFadingSystemTestCase
();
104
virtual
~
LteFadingSystemTestCase
();
105
110
void
DlScheduling (
DlSchedulingCallbackInfo
dlInfo);
111
112
private
:
113
virtual
void
DoRun (
void
);
114
115
double
m_snrDb
;
116
double
m_distance
;
117
uint16_t
m_mcsIndex
;
118
};
119
120
#endif
/*LTE_TEST_FADING_H*/
LteFadingTestCase::m_node2
Ptr< BuildingsMobilityModel > m_node2
building mobility model #2
Definition:
lte-test-fading.h:78
ns3::Ptr< BuildingsMobilityModel >
LteFadingTestCase::m_fadingSamples
std::vector< SpectrumValue > m_fadingSamples
fading samples
Definition:
lte-test-fading.h:81
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1342
MRG32k3a::m1
const double m1
First component modulus, 232 - 209.
Definition:
rng-stream.cc:57
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
LteFadingSystemTestCase::m_distance
double m_distance
distance
Definition:
lte-test-fading.h:116
LteFadingTestCase::m_fadingModule
Ptr< TraceFadingLossModel > m_fadingModule
fading loss model
Definition:
lte-test-fading.h:79
LteFadingSystemTestCase
Lte Fading System Test Case.
Definition:
lte-test-fading.h:92
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteFadingTestCase::m_node1
Ptr< BuildingsMobilityModel > m_node1
building mobility model #1
Definition:
lte-test-fading.h:77
LteFadingTestCase
Fading test case is checking if the pathloss between macro and UE is equal to the theoretical value w...
Definition:
lte-test-fading.h:59
LteFadingTestSuite
Test 1.1 fading model.
Definition:
lte-test-fading.h:44
LteFadingSystemTestCase::m_mcsIndex
uint16_t m_mcsIndex
MCS index.
Definition:
lte-test-fading.h:117
MRG32k3a::m2
const double m2
Second component modulus, 232 - 22853.
Definition:
rng-stream.cc:60
ns3::DlSchedulingCallbackInfo
DlSchedulingCallbackInfo structure.
Definition:
lte-common.h:239
LteFadingTestCase::m_lossRef
double m_lossRef
loss reference
Definition:
lte-test-fading.h:80
LteFadingSystemTestCase::m_snrDb
double m_snrDb
SNR in DB.
Definition:
lte-test-fading.h:115
Generated on Wed Nov 7 2018 10:02:03 for ns-3 by
1.8.14