A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
12
#include "
spectrum-propagation-loss-model.h
"
13
14
namespace
ns3
15
{
16
17
/**
18
* \ingroup spectrum
19
*
20
* A Constant (fixed) propagation loss. The loss is not dependent on the distance.
21
*/
22
class
ConstantSpectrumPropagationLossModel
:
public
SpectrumPropagationLossModel
23
{
24
public
:
25
ConstantSpectrumPropagationLossModel
();
26
~ConstantSpectrumPropagationLossModel
()
override
;
27
28
/**
29
* \brief Get the type ID.
30
* \return the object TypeId
31
*/
32
static
TypeId
GetTypeId
();
33
34
Ptr<SpectrumValue>
DoCalcRxPowerSpectralDensity
(
Ptr<const SpectrumSignalParameters>
params,
35
Ptr<const MobilityModel>
a,
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 */
ns3::ConstantSpectrumPropagationLossModel
A Constant (fixed) propagation loss.
Definition
constant-spectrum-propagation-loss.h:23
ns3::ConstantSpectrumPropagationLossModel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
constant-spectrum-propagation-loss.cc:36
ns3::ConstantSpectrumPropagationLossModel::SetLossDb
void SetLossDb(double lossDb)
Set the propagation loss.
Definition
constant-spectrum-propagation-loss.cc:53
ns3::ConstantSpectrumPropagationLossModel::GetLossDb
double GetLossDb() const
Get the propagation loss.
Definition
constant-spectrum-propagation-loss.cc:61
ns3::ConstantSpectrumPropagationLossModel::~ConstantSpectrumPropagationLossModel
~ConstantSpectrumPropagationLossModel() override
Definition
constant-spectrum-propagation-loss.cc:30
ns3::ConstantSpectrumPropagationLossModel::m_lossDb
double m_lossDb
Propagation loss [dB].
Definition
constant-spectrum-propagation-loss.h:50
ns3::ConstantSpectrumPropagationLossModel::DoCalcRxPowerSpectralDensity
Ptr< SpectrumValue > DoCalcRxPowerSpectralDensity(Ptr< const SpectrumSignalParameters > params, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const override
Definition
constant-spectrum-propagation-loss.cc:68
ns3::ConstantSpectrumPropagationLossModel::DoAssignStreams
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
Definition
constant-spectrum-propagation-loss.cc:92
ns3::ConstantSpectrumPropagationLossModel::ConstantSpectrumPropagationLossModel
ConstantSpectrumPropagationLossModel()
Definition
constant-spectrum-propagation-loss.cc:25
ns3::ConstantSpectrumPropagationLossModel::m_lossLinear
double m_lossLinear
Propagation loss (linear)
Definition
constant-spectrum-propagation-loss.h:51
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SpectrumPropagationLossModel
spectrum-aware propagation loss model
Definition
spectrum-propagation-loss-model.h:33
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
spectrum-propagation-loss-model.h
src
spectrum
model
constant-spectrum-propagation-loss.h
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0