23 #include "ns3/spectrum-wifi-phy.h"
24 #include "ns3/names.h"
Smart pointer class similar to boost::intrusive_ptr.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
void SetMobility(const Ptr< MobilityModel > mobility)
assign a mobility model to this device
ObjectFactory m_errorRateModel
error rate model
SpectrumWifiPhyHelper()
Create a phy helper without any parameter set.
the interface for Wifi's error models
void SetDevice(const Ptr< NetDevice > device)
Sets the device this PHY is associated with.
Keep track of the current position and velocity of an object.
static SpectrumWifiPhyHelper Default(void)
Create a phy helper in a default working state.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
void SetChannel(Ptr< SpectrumChannel > channel)
802.11 PHY layer modelThis PHY implements a spectrum-aware enhancement of the 802.11 SpectrumWifiPhy model.
void SetErrorRateModel(const Ptr< ErrorRateModel > rate)
Sets the error rate model.
Ptr< SpectrumChannel > m_channel
the channel
virtual Ptr< WifiPhy > Create(Ptr< Node > node, Ptr< NetDevice > device) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetErrorRateModel(std::string name, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue())
ObjectFactory m_phy
PHY object.
void SetChannel(const Ptr< SpectrumChannel > channel)
Set the SpectrumChannel this SpectrumWifiPhy is to be connected to.
void CreateWifiSpectrumPhyInterface(Ptr< NetDevice > device)
Method to encapsulate the creation of the WifiSpectrumPhyInterface object (used to bind the WifiSpect...
Make it easy to create and manage PHY objects for the spectrum model.