23 #include "ns3/names.h"
24 #include "ns3/propagation-loss-model.h"
25 #include "ns3/propagation-delay-model.h"
26 #include "ns3/interference-helper.h"
27 #include "ns3/error-rate-model.h"
28 #include "ns3/frame-capture-model.h"
29 #include "ns3/preamble-detection-model.h"
30 #include "ns3/yans-wifi-phy.h"
31 #include "ns3/wifi-net-device.h"
113 channel->SetPropagationLossModel (cur);
118 channel->SetPropagationDelayModel (delay);
125 return c->AssignStreams (stream);
154 phy->SetInterferenceHelper (interference);
156 phy->SetErrorRateModel (error);
160 phy->SetFrameCaptureModel (frameCapture);
165 phy->SetPreambleDetectionModel (preambleDetection);
168 phy->SetDevice (device);
Hold a value for an Attribute.
the interface for Wifi's error models
the interface for Wifi's frame capture models
handles interference calculations
Instantiate subclasses of ns3::Object.
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
bool IsTypeIdSet(void) const
Check if the ObjectFactory has been configured with a TypeId.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
the interface for Wifi's preamble detection models
calculate a propagation delay.
Models the propagation loss through a transmission medium.
void SetNext(Ptr< PropagationLossModel > next)
Enables a chain of loss models to act on the signal.
Smart pointer class similar to boost::intrusive_ptr.
void SetErrorRateModel(std::string type, Args &&... args)
Helper function used to set the error rate model.
void SetInterferenceHelper(std::string type, Args &&... args)
Helper function used to set the interference helper.
ObjectFactory m_frameCaptureModel
frame capture model
ObjectFactory m_preambleDetectionModel
preamble detection model
ObjectFactory m_errorRateModel
error rate model
ObjectFactory m_interferenceHelper
interference helper
ObjectFactory m_phy
PHY object.
manage and create wifi channel objects for the YANS model.
ObjectFactory m_propagationDelay
propagation delay model
void SetPropagationDelay(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())
Ptr< YansWifiChannel > Create(void) const
void AddPropagationLoss(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())
static YansWifiChannelHelper Default(void)
Create a channel helper in a default working state.
int64_t AssignStreams(Ptr< YansWifiChannel > c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by the channel.
YansWifiChannelHelper()
Create a channel helper without any parameter set.
std::vector< ObjectFactory > m_propagationLoss
vector of propagation loss models
Ptr< YansWifiChannel > m_channel
YANS wifi channel.
YansWifiPhyHelper()
Create a PHY helper.
Ptr< WifiPhy > Create(Ptr< Node > node, Ptr< WifiNetDevice > device) const override
void SetChannel(Ptr< YansWifiChannel > channel)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Every class exported by the ns3 library is enclosed in the ns3 namespace.