23 #include "ns3/names.h" 24 #include "ns3/spectrum-wifi-phy.h" 25 #include "ns3/error-rate-model.h" 26 #include "ns3/frame-capture-model.h" 27 #include "ns3/preamble-detection-model.h" 28 #include "ns3/mobility-model.h" 59 phy->CreateWifiSpectrumPhyInterface (device);
61 phy->SetErrorRateModel (error);
65 phy->SetFrameCaptureModel (capture);
70 phy->SetPreambleDetectionModel (capture);
73 phy->SetDevice (device);
Smart pointer class similar to boost::intrusive_ptr.
#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.
ObjectFactory m_errorRateModel
error rate model
SpectrumWifiPhyHelper()
Create a PHY helper.
the interface for Wifi's frame capture models
the interface for Wifi's error models
ObjectFactory m_preambleDetectionModel
preamble detection model
Keep track of the current position and velocity of an object.
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.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Ptr< SpectrumChannel > m_channel
the channel
Every class exported by the ns3 library is enclosed in the ns3 namespace.
the interface for Wifi's preamble detection models
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())
bool IsTypeIdSet(void) const
Check if the ObjectFactory has been configured with a TypeId.
ObjectFactory m_phy
PHY object.
ObjectFactory m_frameCaptureModel
frame capture model
virtual Ptr< WifiPhy > Create(Ptr< Node > node, Ptr< NetDevice > device) const