22 #include "ns3/spectrum-value.h"
23 #include "ns3/mobility-model.h"
24 #include "ns3/net-device.h"
37 static TypeId tid =
TypeId (
"ns3::WifiSpectrumPhyInterface")
39 .SetGroupName (
"Wifi");
Abstract base class for Spectrum-aware PHY layers.
Ptr< Object > GetAntenna(void) const
Get the antenna model used for reception.
Ptr< const SpectrumModel > GetRxSpectrumModel()
void StartRx(Ptr< SpectrumSignalParameters > rxParams)
Input method for delivering a signal from the spectrum channel and low-level PHY interface to this Sp...
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< MobilityModel > GetMobility(void) const
Return the mobility model this PHY is associated with.
void SetMobility(const Ptr< MobilityModel > mobility)
assign a mobility model to this device
void SetDevice(const Ptr< NetDevice > d) override
Set the associated NetDevice instance.
Ptr< Object > GetAntenna() const override
Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
WifiSpectrumPhyInterface()
void SetSpectrumWifiPhy(const Ptr< SpectrumWifiPhy > phy)
Connect SpectrumWifiPhy object.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< NetDevice > m_netDevice
the device
void SetChannel(const Ptr< SpectrumChannel > c) override
Set the channel attached to this device.
void DoDispose(void) override
Destructor implementation.
void StartRx(Ptr< SpectrumSignalParameters > params) override
Notify the SpectrumPhy instance of an incoming signal.
Ptr< const SpectrumModel > GetRxSpectrumModel() const override
void SetMobility(const Ptr< MobilityModel > m) override
Set the mobility model associated with this device.
Ptr< NetDevice > GetDevice() const override
Get the associated NetDevice instance.
Ptr< MobilityModel > GetMobility() const override
Get the associated MobilityModel instance.
Ptr< SpectrumChannel > m_channel
spectrum channel
Ptr< SpectrumWifiPhy > m_spectrumWifiPhy
spectrum PHY
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.