A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
okumura-hata-propagation-loss-model.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011, 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Marco Miozzo <marco.miozzo@cttc.es>
7 * Nicola Baldo <nbaldo@cttc.es>
8 *
9 */
10
11#ifndef OKUMURA_HATA_PROPAGATION_LOSS_MODEL_H
12#define OKUMURA_HATA_PROPAGATION_LOSS_MODEL_H
13
16
17namespace ns3
18{
19
20/**
21 * \ingroup propagation
22 *
23 * \brief this class implements the Okumura Hata propagation loss model
24 *
25 * this class implements the Okumura Hata propagation loss model,
26 * which is used to model open area pathloss for distances > 1 Km
27 * and frequencies ranging from 150 MHz to 2.0 GHz.
28 * For more information about the model, please see
29 * the propagation module documentation in .rst format.
30 */
32{
33 public:
34 /**
35 * \brief Get the type ID.
36 * \return the object TypeId
37 */
38 static TypeId GetTypeId();
39
42
43 // Delete copy constructor and assignment operator to avoid misuse
46
47 /**
48 * \param a the first mobility model
49 * \param b the second mobility model
50 *
51 * \return the loss in dBm for the propagation between
52 * the two given mobility models
53 */
55
56 private:
57 double DoCalcRxPower(double txPowerDbm,
59 Ptr<MobilityModel> b) const override;
60 int64_t DoAssignStreams(int64_t stream) override;
61
62 EnvironmentType m_environment; //!< Environment Scenario
63 CitySize m_citySize; //!< Size of the city
64 double m_frequency; //!< frequency in Hz
65};
66
67} // namespace ns3
68
69#endif // OKUMURA_HATA_PROPAGATION_LOSS_MODEL_H
this class implements the Okumura Hata propagation loss model
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
EnvironmentType m_environment
Environment Scenario.
double DoCalcRxPower(double txPowerDbm, Ptr< MobilityModel > a, Ptr< MobilityModel > b) const override
PropagationLossModel.
OkumuraHataPropagationLossModel & operator=(const OkumuraHataPropagationLossModel &)=delete
OkumuraHataPropagationLossModel(const OkumuraHataPropagationLossModel &)=delete
double GetLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
Models the propagation loss through a transmission medium.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Definition type-id.h:48
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.