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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
radio-environment-map-helper.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2012 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: Nicola Baldo <nbaldo@cttc.es>
19
*/
20
21
22
#ifndef RADIO_ENVIRONMENT_MAP_HELPER_H
23
#define RADIO_ENVIRONMENT_MAP_HELPER_H
24
25
26
#include <ns3/object.h>
27
#include <fstream>
28
29
30
namespace
ns3 {
31
32
class
RemSpectrumPhy;
33
class
Node;
34
class
NetDevice;
35
class
SpectrumChannel;
36
//class BuildingsMobilityModel;
37
class
MobilityModel;
38
43
class
RadioEnvironmentMapHelper
:
public
Object
44
{
45
public
:
46
47
RadioEnvironmentMapHelper
();
48
virtual
~RadioEnvironmentMapHelper
();
49
50
// inherited from Object
51
virtual
void
DoDispose
(
void
);
52
static
TypeId
GetTypeId
(
void
);
53
57
uint8_t
GetBandwidth
()
const
;
58
63
void
SetBandwidth
(uint8_t bw);
64
69
void
Install
();
70
71
private
:
72
73
void
DelayedInstall
();
74
void
RunOneIteration
(
double
xMin,
double
xMax,
double
yMin,
double
yMax);
75
void
PrintAndReset
();
76
void
Finalize
();
77
78
79
struct
RemPoint
80
{
81
Ptr<RemSpectrumPhy>
phy
;
82
Ptr<MobilityModel>
bmm
;
83
};
84
85
std::list<RemPoint>
m_rem
;
86
87
double
m_xMin
;
88
double
m_xMax
;
89
uint16_t
m_xRes
;
90
double
m_xStep
;
91
92
double
m_yMin
;
93
double
m_yMax
;
94
uint16_t
m_yRes
;
95
double
m_yStep
;
96
97
uint32_t
m_maxPointsPerIteration
;
98
99
uint16_t
m_earfcn
;
100
uint16_t
m_bandwidth
;
101
102
double
m_z
;
103
104
std::string
m_channelPath
;
105
std::string
m_outputFile
;
106
107
bool
m_stopWhenDone
;
108
109
Ptr<SpectrumChannel>
m_channel
;
110
111
double
m_noisePower
;
112
113
std::ofstream
m_outFile
;
114
115
};
116
117
118
}
119
120
#endif
/* RADIO_ENVIRONMENT_MAP_HELPER_H */
ns3::RadioEnvironmentMapHelper
Generates a 2D map of the SINR from the strongest transmitter in the downlink of an LTE FDD system...
Definition:
radio-environment-map-helper.h:43
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::RadioEnvironmentMapHelper::PrintAndReset
void PrintAndReset()
Definition:
radio-environment-map-helper.cc:294
ns3::RadioEnvironmentMapHelper::m_xRes
uint16_t m_xRes
Definition:
radio-environment-map-helper.h:89
ns3::RadioEnvironmentMapHelper::DelayedInstall
void DelayedInstall()
Definition:
radio-environment-map-helper.cc:200
ns3::RadioEnvironmentMapHelper::m_outFile
std::ofstream m_outFile
Definition:
radio-environment-map-helper.h:113
ns3::RadioEnvironmentMapHelper::RemPoint::bmm
Ptr< MobilityModel > bmm
Definition:
radio-environment-map-helper.h:82
ns3::RadioEnvironmentMapHelper::m_maxPointsPerIteration
uint32_t m_maxPointsPerIteration
Definition:
radio-environment-map-helper.h:97
ns3::RadioEnvironmentMapHelper::GetTypeId
static TypeId GetTypeId(void)
Definition:
radio-environment-map-helper.cc:70
ns3::RadioEnvironmentMapHelper::Finalize
void Finalize()
Definition:
radio-environment-map-helper.cc:323
ns3::RadioEnvironmentMapHelper::m_xMax
double m_xMax
Definition:
radio-environment-map-helper.h:88
ns3::RadioEnvironmentMapHelper::m_stopWhenDone
bool m_stopWhenDone
Definition:
radio-environment-map-helper.h:107
ns3::RadioEnvironmentMapHelper::m_yMin
double m_yMin
Definition:
radio-environment-map-helper.h:92
ns3::RadioEnvironmentMapHelper::RemPoint::phy
Ptr< RemSpectrumPhy > phy
Definition:
radio-environment-map-helper.h:81
ns3::RadioEnvironmentMapHelper::m_bandwidth
uint16_t m_bandwidth
Definition:
radio-environment-map-helper.h:100
ns3::RadioEnvironmentMapHelper::RunOneIteration
void RunOneIteration(double xMin, double xMax, double yMin, double yMax)
Definition:
radio-environment-map-helper.cc:260
ns3::RadioEnvironmentMapHelper::GetBandwidth
uint8_t GetBandwidth() const
Definition:
radio-environment-map-helper.cc:143
ns3::RadioEnvironmentMapHelper::m_rem
std::list< RemPoint > m_rem
Definition:
radio-environment-map-helper.h:85
ns3::RadioEnvironmentMapHelper::m_yStep
double m_yStep
Definition:
radio-environment-map-helper.h:95
ns3::RadioEnvironmentMapHelper::m_yMax
double m_yMax
Definition:
radio-environment-map-helper.h:93
ns3::RadioEnvironmentMapHelper::Install
void Install()
Deploy the RemSpectrumPhy objects that generate the map according to the specified settings...
Definition:
radio-environment-map-helper.cc:171
ns3::RadioEnvironmentMapHelper::SetBandwidth
void SetBandwidth(uint8_t bw)
Definition:
radio-environment-map-helper.cc:149
ns3::RadioEnvironmentMapHelper::m_z
double m_z
Definition:
radio-environment-map-helper.h:102
ns3::RadioEnvironmentMapHelper::m_channelPath
std::string m_channelPath
Definition:
radio-environment-map-helper.h:104
ns3::RadioEnvironmentMapHelper::RemPoint
Definition:
radio-environment-map-helper.h:79
ns3::RadioEnvironmentMapHelper::~RadioEnvironmentMapHelper
virtual ~RadioEnvironmentMapHelper()
Definition:
radio-environment-map-helper.cc:57
ns3::RadioEnvironmentMapHelper::m_earfcn
uint16_t m_earfcn
Definition:
radio-environment-map-helper.h:99
ns3::RadioEnvironmentMapHelper::m_channel
Ptr< SpectrumChannel > m_channel
Definition:
radio-environment-map-helper.h:109
ns3::RadioEnvironmentMapHelper::m_yRes
uint16_t m_yRes
Definition:
radio-environment-map-helper.h:94
ns3::RadioEnvironmentMapHelper::RadioEnvironmentMapHelper
RadioEnvironmentMapHelper()
Definition:
radio-environment-map-helper.cc:52
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::RadioEnvironmentMapHelper::m_outputFile
std::string m_outputFile
Definition:
radio-environment-map-helper.h:105
ns3::RadioEnvironmentMapHelper::m_xStep
double m_xStep
Definition:
radio-environment-map-helper.h:90
ns3::RadioEnvironmentMapHelper::DoDispose
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
radio-environment-map-helper.cc:64
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::RadioEnvironmentMapHelper::m_noisePower
double m_noisePower
Definition:
radio-environment-map-helper.h:111
ns3::RadioEnvironmentMapHelper::m_xMin
double m_xMin
Definition:
radio-environment-map-helper.h:87
src
lte
helper
radio-environment-map-helper.h
Generated on Sat Apr 19 2014 14:06:59 for ns-3 by
1.8.6