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

List of all members.

Public Member Functions

virtual Ptr< SpectrumValueDoCalcRxPowerSpectralDensity (Ptr< const SpectrumValue > txPsd, Ptr< const MobilityModel > a, Ptr< const MobilityModel > b) const
void SetLossDb (double lossDb)
double GetLossDb () 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::ConstantSpectrumPropagationLossModel.

Protected Attributes

double m_lossDb
double m_lossLinear

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

Ptr< SpectrumValue > ns3::ConstantSpectrumPropagationLossModel::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 ns3::SpectrumValue::ConstBandsBegin(), ns3::SpectrumValue::ConstBandsEnd(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::SpectrumValue::ValuesBegin(), and ns3::SpectrumValue::ValuesEnd().

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

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

Attributes defined for this type:

  • Loss: Path loss (dB) between transmitter and receiver
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 1
    • Flags: construct write read

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: