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
uan-prop-model-thorp.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 University of Washington
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Leonard Tracy <lentracy@gmail.com>
7
*/
8
9
#ifndef UAN_PROP_MODEL_THORP_H
10
#define UAN_PROP_MODEL_THORP_H
11
12
#include "
uan-prop-model.h
"
13
14
namespace
ns3
15
{
16
17
class
UanTxMode;
18
19
/**
20
* \ingroup uan
21
*
22
* Uses Thorp's approximation to compute pathloss. Assumes implulse PDP.
23
*/
24
class
UanPropModelThorp
:
public
UanPropModel
25
{
26
public
:
27
/** Default constructor. */
28
UanPropModelThorp
();
29
/** Destructor */
30
~UanPropModelThorp
()
override
;
31
32
/**
33
* Register this type.
34
* \return The object TypeId.
35
*/
36
static
TypeId
GetTypeId
();
37
38
// Inherited methods
39
double
GetPathLossDb
(
Ptr<MobilityModel>
a,
Ptr<MobilityModel>
b,
UanTxMode
mode)
override
;
40
UanPdp
GetPdp
(
Ptr<MobilityModel>
a,
Ptr<MobilityModel>
b,
UanTxMode
mode)
override
;
41
Time
GetDelay
(
Ptr<MobilityModel>
a,
Ptr<MobilityModel>
b,
UanTxMode
mode)
override
;
42
43
private
:
44
/**
45
* Get the attenuation in dB / 1000 yards.
46
* \param freqKhz The channel center frequency, in kHz.
47
* \return The attenuation, in dB / 1000 yards.
48
*/
49
double
GetAttenDbKyd
(
double
freqKhz);
50
/**
51
* Get the attenuation in dB / km.
52
* \param freqKhz The channel center frequency, in kHz.
53
* \return The attenuation, in dB/km.
54
*/
55
double
GetAttenDbKm
(
double
freqKhz);
56
57
double
m_SpreadCoef
;
//!< Spreading coefficient used in calculation of Thorp's approximation.
58
59
};
// class UanPropModelThorp
60
61
}
// namespace ns3
62
63
#endif
/* UAN_PROP_MODEL_THORP_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::UanPdp
The power delay profile returned by propagation models.
Definition
uan-prop-model.h:79
ns3::UanPropModel
Base class for implemented underwater propagation models.
Definition
uan-prop-model.h:272
ns3::UanPropModelThorp
Uses Thorp's approximation to compute pathloss.
Definition
uan-prop-model-thorp.h:25
ns3::UanPropModelThorp::~UanPropModelThorp
~UanPropModelThorp() override
Destructor.
Definition
uan-prop-model-thorp.cc:26
ns3::UanPropModelThorp::UanPropModelThorp
UanPropModelThorp()
Default constructor.
Definition
uan-prop-model-thorp.cc:22
ns3::UanPropModelThorp::GetAttenDbKm
double GetAttenDbKm(double freqKhz)
Get the attenuation in dB / km.
Definition
uan-prop-model-thorp.cc:74
ns3::UanPropModelThorp::GetPdp
UanPdp GetPdp(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode) override
Get the PDP for the path between two nodes.
Definition
uan-prop-model-thorp.cc:56
ns3::UanPropModelThorp::GetPathLossDb
double GetPathLossDb(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode) override
Computes pathloss between nodes a and b.
Definition
uan-prop-model-thorp.cc:47
ns3::UanPropModelThorp::m_SpreadCoef
double m_SpreadCoef
Spreading coefficient used in calculation of Thorp's approximation.
Definition
uan-prop-model-thorp.h:57
ns3::UanPropModelThorp::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition
uan-prop-model-thorp.cc:31
ns3::UanPropModelThorp::GetAttenDbKyd
double GetAttenDbKyd(double freqKhz)
Get the attenuation in dB / 1000 yards.
Definition
uan-prop-model-thorp.cc:68
ns3::UanPropModelThorp::GetDelay
Time GetDelay(Ptr< MobilityModel > a, Ptr< MobilityModel > b, UanTxMode mode) override
Finds propagation delay between nodes a and b.
Definition
uan-prop-model-thorp.cc:62
ns3::UanTxMode
Abstraction of packet modulation information.
Definition
uan-tx-mode.h:32
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uan-prop-model.h
src
uan
model
uan-prop-model-thorp.h
Generated on Fri Nov 8 2024 13:59:07 for ns-3 by
1.11.0