ns-3
ns3::FriisSpectrumPropagationLossModel Class Reference
Inheritance diagram for ns3::FriisSpectrumPropagationLossModel:
Collaboration diagram for ns3::FriisSpectrumPropagationLossModel:

List of all members.

Public Member Functions

virtual Ptr< SpectrumValueDoCalcRxPowerSpectralDensity (Ptr< const SpectrumValue > txPsd, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const
double CalculateLoss (double f, double d) const

Static Public Member Functions

static TypeId GetTypeId ()
 This method returns the TypeId associated to ns3::FriisSpectrumPropagationLossModel.

Protected Attributes

double m_propagationSpeed

Member Function Documentation

double ns3::FriisSpectrumPropagationLossModel::CalculateLoss ( double  f,
double  d 
) const

Return the propagation loss L according to a simplified version of Friis' formula in which antenna gains are unitary:

(4 * pi * d * f) ^ 2 L = ---------------------- C^2

where C = 3e8 m/s is the light speed in the vacuum. The intended use is to calculate Prx = Ptx * G

Parameters:
ffrequency in Hz
ddistance in m
Returns:
if Prx < Ptx then return Prx; else return Ptx

References NS_ASSERT.

Referenced by DoCalcRxPowerSpectralDensity().

Parameters:
txPsdset of values vs frequency representing the transmission power. See SpectrumChannel for details.
asender mobility
breceiver mobility
Returns:
set of values vs frequency representing the received power in the same units used for the txPower parameter.

Implements ns3::SpectrumPropagationLossModel.

References CalculateLoss(), ns3::SpectrumValue::ConstBandsBegin(), ns3::SpectrumValue::ConstBandsEnd(), NS_ASSERT, ns3::SpectrumValue::ValuesBegin(), and ns3::SpectrumValue::ValuesEnd().

This method returns the TypeId associated to ns3::FriisSpectrumPropagationLossModel.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::FriisSpectrumPropagationLossModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::SpectrumPropagationLossModel/$ns3::FriisSpectrumPropagationLossModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::FriisSpectrumPropagationLossModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::SpectrumPropagationLossModel/$ns3::FriisSpectrumPropagationLossModel

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::SpectrumPropagationLossModel.

References ns3::TypeId::SetParent().


The documentation for this class was generated from the following files: