ns-3
|
#include <spectrum-analyzer.h>
Public Member Functions | |
void | SetChannel (Ptr< SpectrumChannel > c) |
void | SetMobility (Ptr< MobilityModel > m) |
void | SetDevice (Ptr< NetDevice > d) |
Ptr< MobilityModel > | GetMobility () |
Ptr< NetDevice > | GetDevice () |
Ptr< const SpectrumModel > | GetRxSpectrumModel () const |
void | StartRx (Ptr< SpectrumSignalParameters > params) |
void | SetRxSpectrumModel (Ptr< SpectrumModel > m) |
virtual void | Start () |
virtual void | Stop () |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::SpectrumAnalyzer. | |
Protected Member Functions | |
void | DoDispose () |
Simple SpectrumPhy implemetation that averages the spectrum power density of incoming transmissions to produce a spectrogram.
void ns3::SpectrumAnalyzer::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::Object.
References NS_LOG_FUNCTION.
Ptr< NetDevice > ns3::SpectrumAnalyzer::GetDevice | ( | ) | [virtual] |
get the associated NetDevice instance
Implements ns3::SpectrumPhy.
Ptr< MobilityModel > ns3::SpectrumAnalyzer::GetMobility | ( | ) | [virtual] |
get the associated MobilityModel instance
Implements ns3::SpectrumPhy.
Ptr< const SpectrumModel > ns3::SpectrumAnalyzer::GetRxSpectrumModel | ( | ) | const [virtual] |
Implements ns3::SpectrumPhy.
TypeId ns3::SpectrumAnalyzer::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::SpectrumAnalyzer.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
TraceSources defined for this type:
Reimplemented from ns3::SpectrumPhy.
References ns3::MakeTraceSourceAccessor(), ns3::MilliSeconds(), and ns3::TypeId::SetParent().
void ns3::SpectrumAnalyzer::SetChannel | ( | Ptr< SpectrumChannel > | c | ) | [virtual] |
Set the channel attached to this device.
c | the channel |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
void ns3::SpectrumAnalyzer::SetDevice | ( | Ptr< NetDevice > | d | ) | [virtual] |
set the associated NetDevice instance
d | the NetDevice instance |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
void ns3::SpectrumAnalyzer::SetMobility | ( | Ptr< MobilityModel > | m | ) | [virtual] |
Set the mobility model associated with this device.
m | the mobility model |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
void ns3::SpectrumAnalyzer::SetRxSpectrumModel | ( | Ptr< SpectrumModel > | m | ) |
Set the spectrum model used by the SpectrumAnalyzer to represent incoming signals
m |
References NS_ASSERT, and NS_LOG_FUNCTION.
void ns3::SpectrumAnalyzer::Start | ( | void | ) | [virtual] |
Start the spectrum analyzer
Reimplemented from ns3::Object.
References NS_LOG_FUNCTION, NS_LOG_LOGIC, and ns3::Simulator::Schedule().
void ns3::SpectrumAnalyzer::StartRx | ( | Ptr< SpectrumSignalParameters > | params | ) | [virtual] |
Notify the SpectrumPhy instance of an incoming signal
params | the parameters of the signals being received |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION, and ns3::Simulator::Schedule().
void ns3::SpectrumAnalyzer::Stop | ( | void | ) | [virtual] |
Stop the spectrum analyzer