A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
hybrid-buildings-propagation-loss-model.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Marco Miozzo <marco.miozzo@cttc.es>
18 * Nicola Baldo <nbaldo@cttc.es>
19 *
20 */
21
22#ifndef HYBRID_BUILDINGS_PROPAGATION_LOSS_MODEL_H_
23#define HYBRID_BUILDINGS_PROPAGATION_LOSS_MODEL_H_
24
26
27#include <ns3/propagation-environment.h>
28
29namespace ns3
30{
31
32class OkumuraHataPropagationLossModel;
33class ItuR1411LosPropagationLossModel;
34class ItuR1411NlosOverRooftopPropagationLossModel;
35class ItuR1238PropagationLossModel;
36class Kun2600MhzPropagationLossModel;
37
38/**
39 * \ingroup buildings
40 * \ingroup propagation
41 *
42 * \brief The HybridBuildingsPropagationModel is a compound of different models able to evaluate
43 * the pathloss from 200 to 2600 MHz, in different environments and with buildings (i.e., indoor and
44 * outdoor communications).
45 *
46 * This model includes Hata model, COST231, ITU-R P.1411 (short range
47 * communications), ITU-R P.1238 (indoor communications), which are combined in order
48 * to be able to evaluate the pathloss under different scenarios, in detail:
49 * - Environments: urban, suburban, open-areas;
50 * - frequency: from 200 uo to 2600 MHz
51 * - short range communications vs long range communications
52 * - Node position respect to buildings: indoor, outdoor and hybrid (indoor <-> outdoor)
53 * - Building penetretation loss
54 * - floors, etc...
55 *
56 * \warning This model works only with MobilityBuildingInfo
57 *
58 */
59
61{
62 public:
63 /**
64 * \brief Get the type ID.
65 * \return The object TypeId.
66 */
67 static TypeId GetTypeId();
70
71 /**
72 * set the environment type
73 *
74 * \param env
75 */
77
78 /**
79 * set the size of the city
80 *
81 * \param size
82 */
83 void SetCitySize(CitySize size);
84
85 /**
86 * set the propagation frequency
87 *
88 * \param freq
89 */
90 void SetFrequency(double freq);
91
92 /**
93 * set the rooftop height
94 *
95 * \param rooftopHeight
96 */
97 void SetRooftopHeight(double rooftopHeight);
98
99 /**
100 * \brief Compute the path loss according to the nodes position
101 * using the appropriate model.
102 *
103 * \param a the mobility model of the source
104 * \param b the mobility model of the destination
105 * \returns the propagation loss (in dBm)
106 */
107 double GetLoss(Ptr<MobilityModel> a, Ptr<MobilityModel> b) const override;
108
109 private:
110 /**
111 * Compute the path loss using either OkumuraHataPropagationLossModel
112 * or Kun2600MhzPropagationLossModel.
113 *
114 * \param a The mobility model of the source.
115 * \param b The mobility model of the destination.
116 * \returns the propagation loss (in dBm).
117 */
119 /**
120 * Compute the path loss using either ItuR1411LosPropagationLossModel or
121 * ItuR1411NlosOverRooftopPropagationLossModel.
122 *
123 * \param a The mobility model of the source.
124 * \param b The mobility model of the destination.
125 * \returns the propagation loss (in dBm).
126 */
128 /**
129 * Compute the path loss using ItuR1238PropagationLossModel.
130 *
131 * \param a The mobility model of the source.
132 * \param b The mobility model of the destination.
133 * \returns the propagation loss (in dBm).
134 */
136
137 /// OkumuraHataPropagationLossModel
139 /// ItuR1411LosPropagationLossModel
141 /// ItuR1411NlosOverRooftopPropagationLossModel
143 /// ItuR1238PropagationLossModel
145 /// Kun2600MhzPropagationLossModel
147
148 double m_itu1411NlosThreshold; ///< in meters (switch Los -> NLoS)
149 double m_rooftopHeight; ///< Roof Height (in meters)
150 double m_frequency; ///< Operation frequency
151};
152
153} // namespace ns3
154
155#endif /* HYBRID_BUILDINGS_PROPAGATION_LOSS_MODEL_H_ */
This model provides means for simulating the following propagation phenomena in the presence of build...
The HybridBuildingsPropagationModel is a compound of different models able to evaluate the pathloss f...
void SetCitySize(CitySize size)
set the size of the city
double OkumuraHata(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
Compute the path loss using either OkumuraHataPropagationLossModel or Kun2600MhzPropagationLossModel.
Ptr< ItuR1411NlosOverRooftopPropagationLossModel > m_ituR1411NlosOverRooftop
ItuR1411NlosOverRooftopPropagationLossModel.
void SetFrequency(double freq)
set the propagation frequency
void SetRooftopHeight(double rooftopHeight)
set the rooftop height
Ptr< ItuR1411LosPropagationLossModel > m_ituR1411Los
ItuR1411LosPropagationLossModel.
double ItuR1411(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
Compute the path loss using either ItuR1411LosPropagationLossModel or ItuR1411NlosOverRooftopPropagat...
Ptr< Kun2600MhzPropagationLossModel > m_kun2600Mhz
Kun2600MhzPropagationLossModel.
double ItuR1238(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
Compute the path loss using ItuR1238PropagationLossModel.
Ptr< OkumuraHataPropagationLossModel > m_okumuraHata
OkumuraHataPropagationLossModel.
void SetEnvironment(EnvironmentType env)
set the environment type
double GetLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const override
Compute the path loss according to the nodes position using the appropriate model.
Ptr< ItuR1238PropagationLossModel > m_ituR1238
ItuR1238PropagationLossModel.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
a unique identifier for an interface.
Definition: type-id.h:59
EnvironmentType
The type of propagation environment.
CitySize
The size of the city in which propagation takes place.
Every class exported by the ns3 library is enclosed in the ns3 namespace.