helps to create WifiNetDevice objects More...
#include <wifi-helper.h>
Public Member Functions | |
WifiHelper () | |
void | SetRemoteStationManager (std::string type, 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 | SetMac (std::string type, 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()) |
NetDeviceContainer | Install (const WifiPhyHelper &phy, NodeContainer c) const |
NetDeviceContainer | Install (const WifiPhyHelper &phy, Ptr< Node > node) const |
Static Public Member Functions | |
static WifiHelper | Default (void) |
Private Attributes | |
ObjectFactory | m_stationManager |
ObjectFactory | m_mac |
helps to create WifiNetDevice objects
This class can help to create a large set of similar WifiNetDevice objects and to configure a large set of their attributes during creation.
Definition at line 63 of file wifi-helper.h.
ns3::WifiHelper::WifiHelper | ( | ) |
Create a Wifi helper in an empty state: all its parameters must be set before calling ns3::WifiHelper::Install
Definition at line 45 of file wifi-helper.cc.
WifiHelper ns3::WifiHelper::Default | ( | void | ) | [static] |
The default state is defined as being an Adhoc MAC layer with an ARF rate control algorithm and both objects using their default attribute values.
Definition at line 49 of file wifi-helper.cc.
References SetMac(), and SetRemoteStationManager().
NetDeviceContainer ns3::WifiHelper::Install | ( | const WifiPhyHelper & | phy, | |
Ptr< Node > | node | |||
) | const |
phy | the PHY helper to create PHY objects | |
node | the node on which a wifi device must be created |
Definition at line 125 of file wifi-helper.cc.
References Install().
NetDeviceContainer ns3::WifiHelper::Install | ( | const WifiPhyHelper & | phy, | |
NodeContainer | c | |||
) | const |
phy | the PHY helper to create PHY objects | |
c | the set of nodes on which a wifi device must be created |
Definition at line 104 of file wifi-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::Mac48Address::Allocate(), ns3::NodeContainer::Begin(), ns3::WifiPhyHelper::Create(), ns3::ObjectFactory::Create(), ns3::NodeContainer::End(), m_mac, m_stationManager, and NS_LOG_DEBUG.
Referenced by Install().
void ns3::WifiHelper::SetMac | ( | std::string | type, | |
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 () | |||
) |
type | the type of ns3::WifiMac to create. | |
n0 | the name of the attribute to set | |
v0 | the value of the attribute to set | |
n1 | the name of the attribute to set | |
v1 | the value of the attribute to set | |
n2 | the name of the attribute to set | |
v2 | the value of the attribute to set | |
n3 | the name of the attribute to set | |
v3 | the value of the attribute to set | |
n4 | the name of the attribute to set | |
v4 | the value of the attribute to set | |
n5 | the name of the attribute to set | |
v5 | the value of the attribute to set | |
n6 | the name of the attribute to set | |
v6 | the value of the attribute to set | |
n7 | the name of the attribute to set | |
v7 | the value of the attribute to set |
All the attributes specified in this method should exist in the requested mac.
Definition at line 81 of file wifi-helper.cc.
References m_mac, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Referenced by Default().
void ns3::WifiHelper::SetRemoteStationManager | ( | std::string | type, | |
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 () | |||
) |
type | the type of ns3::WifiRemoteStationManager to create. | |
n0 | the name of the attribute to set | |
v0 | the value of the attribute to set | |
n1 | the name of the attribute to set | |
v1 | the value of the attribute to set | |
n2 | the name of the attribute to set | |
v2 | the value of the attribute to set | |
n3 | the name of the attribute to set | |
v3 | the value of the attribute to set | |
n4 | the name of the attribute to set | |
v4 | the value of the attribute to set | |
n5 | the name of the attribute to set | |
v5 | the value of the attribute to set | |
n6 | the name of the attribute to set | |
v6 | the value of the attribute to set | |
n7 | the name of the attribute to set | |
v7 | the value of the attribute to set |
All the attributes specified in this method should exist in the requested station manager.
Definition at line 58 of file wifi-helper.cc.
References m_stationManager, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Referenced by Default().
ObjectFactory ns3::WifiHelper::m_mac [private] |
Definition at line 159 of file wifi-helper.h.
Definition at line 158 of file wifi-helper.h.
Referenced by Install(), and SetRemoteStationManager().