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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
radio-environment-map-helper.h
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
42
class
RadioEnvironmentMapHelper
:
public
Object
43
{
44
public
:
45
46
RadioEnvironmentMapHelper
();
47
virtual
~
RadioEnvironmentMapHelper
();
48
49
// inherited from Object
50
virtual
void
DoDispose
(
void
);
51
static
TypeId
GetTypeId (
void
);
52
56
uint8_t
GetBandwidth
()
const
;
57
62
void
SetBandwidth
(uint8_t bw);
63
68
void
Install
();
69
70
private
:
71
72
void
DelayedInstall ();
73
void
RunOneIteration (
double
xMin,
double
xMax,
double
yMin,
double
yMax);
74
void
PrintAndReset ();
75
void
Finalize ();
76
77
78
struct
RemPoint
79
{
80
Ptr<RemSpectrumPhy>
phy;
81
Ptr<BuildingsMobilityModel>
bmm;
82
};
83
84
std::list<RemPoint> m_rem;
85
86
double
m_xMin;
87
double
m_xMax;
88
uint16_t m_xRes;
89
double
m_xStep;
90
91
double
m_yMin;
92
double
m_yMax;
93
uint16_t m_yRes;
94
double
m_yStep;
95
96
uint32_t m_maxPointsPerIteration;
97
98
uint16_t m_earfcn;
99
uint16_t m_bandwidth;
100
101
double
m_z;
102
103
std::string m_channelPath;
104
std::string m_outputFile;
105
106
bool
m_stopWhenDone;
107
108
Ptr<SpectrumChannel>
m_channel;
109
110
double
m_noisePower;
111
112
std::ofstream m_outFile;
113
114
};
115
116
117
}
118
119
#endif
/* RADIO_ENVIRONMENT_MAP_HELPER_H */
ns3::RadioEnvironmentMapHelper
Definition:
radio-environment-map-helper.h:42
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::RadioEnvironmentMapHelper::GetBandwidth
uint8_t GetBandwidth() const
Definition:
radio-environment-map-helper.cc:141
ns3::RadioEnvironmentMapHelper::Install
void Install()
Definition:
radio-environment-map-helper.cc:169
ns3::RadioEnvironmentMapHelper::SetBandwidth
void SetBandwidth(uint8_t bw)
Definition:
radio-environment-map-helper.cc:147
ns3::RadioEnvironmentMapHelper::RemPoint
Definition:
radio-environment-map-helper.h:78
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::RadioEnvironmentMapHelper::DoDispose
virtual void DoDispose(void)
Definition:
radio-environment-map-helper.cc:62
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:44
src
lte
helper
radio-environment-map-helper.h
Generated on Sun Mar 16 2014 11:25:05 for ns-3 by
1.8.6