23 #include "ns3/propagation-loss-model.h" 
   24 #include "ns3/propagation-delay-model.h" 
   25 #include "ns3/yans-wifi-phy.h" 
   26 #include "ns3/names.h" 
  108           channel->SetPropagationLossModel (cur);
 
  113   channel->SetPropagationDelayModel (delay);
 
  120   return c->AssignStreams (stream);
 
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())
 
Smart pointer class similar to boost::intrusive_ptr. 
 
void SetNext(Ptr< PropagationLossModel > next)
Enables a chain of loss models to act on the signal. 
 
Ptr< YansWifiChannel > Create(void) const 
 
Make it easy to create and manage PHY objects for the yans model. 
 
static YansWifiChannelHelper Default(void)
Create a channel helper in a default working state. 
 
void SetChannel(const Ptr< YansWifiChannel > channel)
Set the YansWifiChannel this YansWifiPhy is to be connected to. 
 
Hold a value for an Attribute. 
 
#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. 
 
static YansWifiPhyHelper Default(void)
Create a phy helper in a default working state. 
 
ObjectFactory m_errorRateModel
error rate model 
 
YansWifiChannelHelper()
Create a channel 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. 
 
void SetChannel(Ptr< YansWifiChannel > channel)
 
Ptr< Object > Create(void) const 
Create an Object instance of the configured TypeId. 
 
calculate a propagation delay. 
 
YansWifiPhyHelper()
Create a phy helper without any parameter set. 
 
void SetErrorRateModel(const Ptr< ErrorRateModel > rate)
Sets the error rate model. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
802.11 PHY layer modelThis PHY implements a model of 802.11a. 
 
Ptr< YansWifiChannel > m_channel
yans wifi channel 
 
void Set(std::string name, const AttributeValue &value)
Set an attribute to be set during construction. 
 
manage and create wifi channel objects for the yans model. 
 
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_propagationDelay
propagation delay model 
 
ObjectFactory m_phy
PHY object. 
 
Instantiate subclasses of ns3::Object. 
 
Models the propagation loss through a transmission medium. 
 
virtual Ptr< WifiPhy > Create(Ptr< Node > node, Ptr< NetDevice > device) const 
 
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())
 
std::vector< ObjectFactory > m_propagationLoss
vector of propagation loss models 
 
int64_t AssignStreams(Ptr< YansWifiChannel > c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by the channel.