|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #include "ns3/names.h"
24 #include "ns3/propagation-loss-model.h"
25 #include "ns3/propagation-delay-model.h"
26 #include "ns3/error-rate-model.h"
27 #include "ns3/frame-capture-model.h"
28 #include "ns3/preamble-detection-model.h"
29 #include "ns3/yans-wifi-phy.h"
111 channel->SetPropagationLossModel (cur);
116 channel->SetPropagationDelayModel (delay);
123 return c->AssignStreams (stream);
151 phy->SetErrorRateModel (error);
155 phy->SetFrameCaptureModel (frameCapture);
160 phy->SetPreambleDetectionModel (preambleDetection);
163 phy->SetDevice (device);
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
static YansWifiChannelHelper Default(void)
Create a channel helper in a default working state.
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())
int64_t AssignStreams(Ptr< YansWifiChannel > c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by the channel.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
YansWifiPhyHelper()
Create a PHY helper.
calculate a propagation delay.
Hold a value for an Attribute.
ObjectFactory m_errorRateModel
error rate model
Models the propagation loss through a transmission medium.
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())
ObjectFactory m_preambleDetectionModel
preamble detection model
bool IsTypeIdSet(void) const
Check if the ObjectFactory has been configured with a TypeId.
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())
void SetChannel(Ptr< YansWifiChannel > channel)
the interface for Wifi's preamble detection models
Smart pointer class similar to boost::intrusive_ptr.
Ptr< YansWifiChannel > Create(void) const
the interface for Wifi's frame capture models
ObjectFactory m_frameCaptureModel
frame capture model
Ptr< YansWifiChannel > m_channel
YANS wifi channel.
Instantiate subclasses of ns3::Object.
the interface for Wifi's error models
ObjectFactory m_propagationDelay
propagation delay model
ObjectFactory m_phy
PHY object.
Ptr< WifiPhy > Create(Ptr< Node > node, Ptr< NetDevice > device) const override
std::vector< ObjectFactory > m_propagationLoss
vector of propagation loss models
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
manage and create wifi channel objects for the YANS model.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
YansWifiChannelHelper()
Create a channel helper without any parameter set.