ns-3
|
Public Member Functions | |
virtual Ptr< SpectrumValue > | DoCalcRxPowerSpectralDensity (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 |
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
f | frequency in Hz |
d | distance in m |
References NS_ASSERT.
Referenced by DoCalcRxPowerSpectralDensity().
Ptr< SpectrumValue > ns3::FriisSpectrumPropagationLossModel::DoCalcRxPowerSpectralDensity | ( | Ptr< const SpectrumValue > | txPsd, |
Ptr< const MobilityModel > | a, | ||
Ptr< const MobilityModel > | b | ||
) | const [virtual] |
txPsd | set of values vs frequency representing the transmission power. See SpectrumChannel for details. |
a | sender mobility |
b | receiver mobility |
Implements ns3::SpectrumPropagationLossModel.
References CalculateLoss(), ns3::SpectrumValue::ConstBandsBegin(), ns3::SpectrumValue::ConstBandsEnd(), NS_ASSERT, ns3::SpectrumValue::ValuesBegin(), and ns3::SpectrumValue::ValuesEnd().
TypeId ns3::FriisSpectrumPropagationLossModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::FriisSpectrumPropagationLossModel.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::SpectrumPropagationLossModel.
References ns3::TypeId::SetParent().