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
- Public Member Functions inherited from ns3::SpectrumPropagationLossModel
void SetNext (Ptr< SpectrumPropagationLossModel > next)
Ptr< SpectrumValueCalcRxPowerSpectralDensity (Ptr< const SpectrumValue > txPsd, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const
- Public Member Functions inherited from ns3::Object
virtual TypeId GetInstanceTypeId (void) const
template<typename T >
Ptr< T > GetObject (void) const
template<typename T >
Ptr< T > GetObject (TypeId tid) const
void Dispose (void)
void AggregateObject (Ptr< Object > other)
AggregateIterator GetAggregateIterator (void) const
void Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount (const SimpleRefCount &o)
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const
- Public Member Functions inherited from ns3::ObjectBase
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)

Static Public Member Functions

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

Protected Attributes

double m_propagationSpeed

Additional Inherited Members

- Protected Member Functions inherited from ns3::SpectrumPropagationLossModel
virtual void DoDispose ()
- Protected Member Functions inherited from ns3::Object
virtual void NotifyNewAggregate (void)
virtual void DoStart (void)
 Object (const Object &o)

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().

Ptr< SpectrumValue > ns3::FriisSpectrumPropagationLossModel::DoCalcRxPowerSpectralDensity ( Ptr< const SpectrumValue txPsd,
Ptr< const MobilityModel a,
Ptr< const MobilityModel b 
) const
virtual
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(), ns3::MobilityModel::GetDistanceFrom(), NS_ASSERT, ns3::SpectrumValue::ValuesBegin(), and ns3::SpectrumValue::ValuesEnd().

TypeId ns3::FriisSpectrumPropagationLossModel::GetTypeId ( void  )
static

This method returns the TypeId associated to 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: