#include <spectrum-phy.h>
Public Member Functions | |
virtual void | SetDevice (Ptr< Object > d)=0 |
virtual Ptr< Object > | GetDevice ()=0 |
virtual void | SetMobility (Ptr< Object > m)=0 |
virtual Ptr< Object > | GetMobility ()=0 |
virtual void | SetChannel (Ptr< SpectrumChannel > c)=0 |
virtual Ptr< const SpectrumModel > | GetRxSpectrumModel () const =0 |
virtual void | StartRx (Ptr< PacketBurst > p, Ptr< const SpectrumValue > rxPsd, SpectrumType st, Time duration)=0 |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::SpectrumPhy. |
Abstract base class for Spectrum-aware PHY layers
get the associated NetDevice instance
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
get the associated MobilityModel instance
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
virtual Ptr<const SpectrumModel> ns3::SpectrumPhy::GetRxSpectrumModel | ( | ) | const [pure virtual] |
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
static TypeId ns3::SpectrumPhy::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::SpectrumPhy.
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::Object.
Reimplemented in ns3::EnbLteSpectrumPhy, ns3::LteSpectrumPhy, ns3::UeLteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
virtual void ns3::SpectrumPhy::SetChannel | ( | Ptr< SpectrumChannel > | c | ) | [pure virtual] |
Set the channel attached to this device.
c | the channel |
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
set the associated NetDevice instance
d | the NetDevice instance |
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
Set the mobility model associated with this device.
m | the mobility model |
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.
virtual void ns3::SpectrumPhy::StartRx | ( | Ptr< PacketBurst > | p, | |
Ptr< const SpectrumValue > | rxPsd, | |||
SpectrumType | st, | |||
Time | duration | |||
) | [pure virtual] |
Notify the SpectrumPhy instance of an incoming waveform
p | the PacketBurst associated with the incoming waveform | |
rxPsd | the Power Spectral Density of the incoming waveform. The units of the PSD are the same specified for SpectrumChannel::StartTx(). | |
st | spectrum type | |
duration | the duration of the incoming waveform |
Implemented in ns3::LteSpectrumPhy, ns3::HalfDuplexIdealPhy, ns3::SpectrumAnalyzer, and ns3::WaveformGenerator.