|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
26 #include "ns3/mesh-stack-installer.h"
27 #include "ns3/wifi-standards.h"
28 #include "ns3/qos-utils.h"
29 #include "ns3/object-factory.h"
33 class NetDeviceContainer;
holds a vector of ns3::NetDevice pointers
void SetMacType(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())
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ObjectFactory m_stationManager
the station manager
enum WifiStandard m_standard
standard
Hold a value for an Attribute.
ObjectFactory m_mac
the MAC
ChannelPolicy
Spread/not spread frequency channels of MP interfaces.
void SetStandard(enum WifiStandard standard)
Set standard.
Helper to create IEEE 802.11s mesh networks.
void SetSpreadInterfaceChannels(ChannelPolicy policy)
set the channel policy
void ResetStats(const ns3::Ptr< ns3::NetDevice > &device)
Reset statistics.
uint32_t m_nInterfaces
number of interfaces
int64_t AssignStreams(NetDeviceContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
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())
Instantiate subclasses of ns3::Object.
Ptr< MeshStack > m_stack
stack
void SetNumberOfInterfaces(uint32_t nInterfaces)
Set a number of interfaces in a mesh network.
MeshHelper()
Construct a MeshHelper used to make life easier when creating 802.11s networks.
~MeshHelper()
Destroy a MeshHelper.
NetDeviceContainer Install(const WifiPhyHelper &phyHelper, NodeContainer c) const
Install 802.11s mesh device & protocols on given node list.
ObjectFactory m_ackPolicySelector[4]
ack policy selector for all ACs
void SetStackInstaller(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())
A class for an empty attribute value.
ObjectFactory m_stackFactory
stack factory
Ptr< WifiNetDevice > CreateInterface(const WifiPhyHelper &phyHelper, Ptr< Node > node, uint16_t channelId) const
ChannelPolicy m_spreadChannelPolicy
spread channel policy
keep track of a set of node pointers.
static MeshHelper Default()
Set the helper to the default values for the MAC type, remote station manager and channel policy.
void Report(const ns3::Ptr< ns3::NetDevice > &device, std::ostream &os)
Print statistics.
WifiStandard
Identifies the allowed configurations that a Wifi device is configured to use.