|
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 |
|
22 #ifndef OH_BUILDINGS_PROPAGATION_LOSS_MODEL_H_ |
|
23 #define OH_BUILDINGS_PROPAGATION_LOSS_MODEL_H_ |
|
24 |
|
25 #include <ns3/buildings-propagation-loss-model.h> |
|
26 |
|
27 namespace ns3 { |
|
28 |
|
29 |
|
30 /** |
|
31 * \ingroup propagation |
|
32 * |
|
33 * \brief The Okumura Hata (OH)-Building-Propagation-Model is propagation module |
|
34 * using only the Okumura Hata model from the one provided by |
|
35 * BuildingsPropagationLossModel, in different environments and with |
|
36 * buildings (i.e., indoor and outdoor communications). |
|
37 * |
|
38 * This model includes Hata model, COST231, ITU-R P.1411 (short range |
|
39 * communications), ITU-R P.1238 (indoor communications). |
|
40 * Building-Propagation-Model properly combines the models above in order |
|
41 * to be able to evaluate the pathloss under different scenarios, in detail: |
|
42 * - Environments: urban, suburban, open-areas; |
|
43 * - frequency: from 200 uo to 2600 MHz |
|
44 * - short range communications vs long range communications |
|
45 * - Node position respect to buildings: indoor, outdoor and hybrid (indoor <-> outdoor) |
|
46 * - Building penetretation loss |
|
47 * - floors, etc... |
|
48 * |
|
49 * Frequency: 200 MHz to 2000 MHz |
|
50 * Link Distance:up to 20 km |
|
51 * \warning This model works with BuildingsMobilityModel |
|
52 * |
|
53 */ |
|
54 |
|
55 class OhBuildingsPropagationLossModel : public BuildingsPropagationLossModel |
|
56 { |
|
57 |
|
58 public: |
|
59 static TypeId GetTypeId (void); |
|
60 OhBuildingsPropagationLossModel (); |
|
61 ~OhBuildingsPropagationLossModel (); |
|
62 |
|
63 /** |
|
64 * \param a the mobility model of the source |
|
65 * \param b the mobility model of the destination |
|
66 * \returns the propagation loss (in dBm) |
|
67 */ |
|
68 virtual double GetLoss (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const; |
|
69 |
|
70 |
|
71 }; |
|
72 |
|
73 } |
|
74 |
|
75 #endif /* OH_BUILDINGS_PROPAGATION_LOSS_MODEL_H_ */ |