A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
constant-spectrum-propagation-loss.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Manuel Requena <manuel.requena@cttc.es>
7 */
8
9#ifndef CONSTANT_SPECTRUM_PROPAGATION_LOSS_H
10#define CONSTANT_SPECTRUM_PROPAGATION_LOSS_H
11
13
14namespace ns3
15{
16
17/**
18 * \ingroup spectrum
19 *
20 * A Constant (fixed) propagation loss. The loss is not dependent on the distance.
21 */
23{
24 public:
27
28 /**
29 * \brief Get the type ID.
30 * \return the object TypeId
31 */
32 static TypeId GetTypeId();
33
36 Ptr<const MobilityModel> b) const override;
37 /**
38 * Set the propagation loss
39 * \param lossDb the propagation loss [dB]
40 */
41 void SetLossDb(double lossDb);
42 /**
43 * Get the propagation loss
44 * \returns the propagation loss [dB]
45 */
46 double GetLossDb() const;
47
48 protected:
49 int64_t DoAssignStreams(int64_t stream) override;
50 double m_lossDb; //!< Propagation loss [dB]
51 double m_lossLinear; //!< Propagation loss (linear)
52
53 private:
54};
55
56} // namespace ns3
57
58#endif /* CONSTANT_SPECTRUM_PROPAGATION_LOSS_MODEL_H */
void SetLossDb(double lossDb)
Set the propagation loss.
Ptr< SpectrumValue > DoCalcRxPowerSpectralDensity(Ptr< const SpectrumSignalParameters > params, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
Smart pointer class similar to boost::intrusive_ptr.
spectrum-aware propagation loss model
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.