A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
itu-r-1238-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 ITU_R_1238_PROPAGATION_LOSS_MODEL_H
12#define ITU_R_1238_PROPAGATION_LOSS_MODEL_H
13
14#include <ns3/propagation-environment.h>
15#include <ns3/propagation-loss-model.h>
16
17namespace ns3
18{
19
20/**
21 * \ingroup buildings
22 * \ingroup propagation
23 *
24 * This class implements the ITU-R 1238 propagation loss model.
25 *
26 */
28{
29 public:
30 /**
31 * \brief Get the type ID.
32 * \return The object TypeId.
33 */
34 static TypeId GetTypeId();
35
36 /**
37 *
38 *
39 * \param a the first mobility model
40 * \param b the second mobility model
41 *
42 * \return the loss in dBm for the propagation between
43 * the two given mobility models
44 */
46
47 private:
48 // inherited from PropagationLossModel
49 double DoCalcRxPower(double txPowerDbm,
51 Ptr<MobilityModel> b) const override;
52 int64_t DoAssignStreams(int64_t stream) override;
53
54 double m_frequency; ///< frequency in MHz
55};
56
57} // namespace ns3
58
59#endif // ITU_R_1238_PROPAGATION_LOSS_MODEL_H
This class implements the ITU-R 1238 propagation loss model.
double GetLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b) const
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
double DoCalcRxPower(double txPowerDbm, Ptr< MobilityModel > a, Ptr< MobilityModel > b) const override
PropagationLossModel.
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
Every class exported by the ns3 library is enclosed in the ns3 namespace.