A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
spectrum
model
constant-spectrum-propagation-loss.h
Go to the documentation of this file.
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: Manuel Requena <manuel.requena@cttc.es>
19
*/
20
21
#ifndef CONSTANT_SPECTRUM_PROPAGATION_LOSS_H
22
#define CONSTANT_SPECTRUM_PROPAGATION_LOSS_H
23
24
#include "ns3/spectrum-propagation-loss-model.h"
25
26
namespace
ns3
{
27
33
class
ConstantSpectrumPropagationLossModel
:
public
SpectrumPropagationLossModel
34
{
35
public
:
36
ConstantSpectrumPropagationLossModel
();
37
~ConstantSpectrumPropagationLossModel
();
38
43
static
TypeId
GetTypeId
();
44
45
virtual
Ptr<SpectrumValue>
DoCalcRxPowerSpectralDensity
(
Ptr<const SpectrumValue>
txPsd,
46
Ptr<const MobilityModel>
a,
47
Ptr<const MobilityModel>
b)
const
;
52
void
SetLossDb
(
double
lossDb);
57
double
GetLossDb
()
const
;
58
59
protected
:
60
double
m_lossDb
;
61
double
m_lossLinear
;
62
private
:
63
};
64
65
66
}
// namespace ns3
67
68
#endif
/* CONSTANT_SPECTRUM_PROPAGATION_LOSS_MODEL_H */
ns3::ConstantSpectrumPropagationLossModel::ConstantSpectrumPropagationLossModel
ConstantSpectrumPropagationLossModel()
Definition:
constant-spectrum-propagation-loss.cc:35
ns3::Ptr< SpectrumValue >
ns3::ConstantSpectrumPropagationLossModel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
constant-spectrum-propagation-loss.cc:46
ns3::ConstantSpectrumPropagationLossModel::m_lossDb
double m_lossDb
Propagation loss [dB].
Definition:
constant-spectrum-propagation-loss.h:60
ns3::ConstantSpectrumPropagationLossModel::DoCalcRxPowerSpectralDensity
virtual Ptr< SpectrumValue > DoCalcRxPowerSpectralDensity(Ptr< const SpectrumValue > txPsd, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const
Definition:
constant-spectrum-propagation-loss.cc:81
ns3::ConstantSpectrumPropagationLossModel::m_lossLinear
double m_lossLinear
Propagation loss (linear)
Definition:
constant-spectrum-propagation-loss.h:61
ns3::ConstantSpectrumPropagationLossModel::GetLossDb
double GetLossDb() const
Get the propagation loss.
Definition:
constant-spectrum-propagation-loss.cc:73
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ConstantSpectrumPropagationLossModel::SetLossDb
void SetLossDb(double lossDb)
Set the propagation loss.
Definition:
constant-spectrum-propagation-loss.cc:64
ns3::ConstantSpectrumPropagationLossModel
A Constant (fixed) propagation loss.
Definition:
constant-spectrum-propagation-loss.h:33
ns3::SpectrumPropagationLossModel
spectrum-aware propagation loss model
Definition:
spectrum-propagation-loss-model.h:44
ns3::ConstantSpectrumPropagationLossModel::~ConstantSpectrumPropagationLossModel
~ConstantSpectrumPropagationLossModel()
Definition:
constant-spectrum-propagation-loss.cc:40
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
Generated on Wed Nov 7 2018 10:02:09 for ns-3 by
1.8.14