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