42 #include "ns3/core-module.h" 
   43 #include "ns3/internet-module.h" 
   44 #include "ns3/network-module.h" 
   45 #include "ns3/applications-module.h" 
   46 #include "ns3/wifi-module.h" 
   47 #include "ns3/mobility-module.h" 
   53 int main (
int argc, 
char const* argv[])
 
   70   Ssid ssid (
"My-network");
 
  111   address.
SetBase (
"192.168.1.0", 
"255.255.255.0");
 
  114   staIf = address.
Assign (staDevice);
 
  115   apIf = address.
Assign (apDevice);
 
  124   onOff.SetAttribute (
"OnTime", 
StringValue (
"ns3::ConstantRandomVariable[Constant=0.01]"));
 
  125   onOff.SetAttribute (
"OffTime", 
StringValue (
"ns3::ConstantRandomVariable[Constant=8]"));
 
  130   staApps.
Start (Seconds (1.0));
 
  131   staApps.
Stop (Seconds (10.0));
 
  137   phy.
EnablePcap (
"test-blockack-2", ap->GetId (), 0);
 
holds a vector of ns3::Application pointers. 
 
holds a vector of std::pair of Ptr<Ipv4> and interface index. 
 
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())
 
static void PopulateRoutingTables(void)
Build a routing database and initialize the routing tables of the nodes in the simulation. Makes all nodes in the simulation into routers. 
 
hold variables of type string 
 
Make it easy to create and manage PHY objects for the yans model. 
 
static YansWifiChannelHelper Default(void)
 
void SetType(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())
 
aggregate IP/TCP/UDP functionality to existing Nodes. 
 
static YansWifiPhyHelper Default(void)
 
helps to create WifiNetDevice objects 
 
A helper to make it easier to instantiate an ns3::OnOffApplication on a set of nodes. 
 
NetDeviceContainer Install(const WifiPhyHelper &phy, const WifiMacHelper &mac, NodeContainer c) const 
 
a polymophic address class 
 
hold objects of type ns3::Rectangle 
 
Class for representing data rates. 
 
void SetChannel(Ptr< YansWifiChannel > channel)
 
void Install(Ptr< Node > node) const 
"Layout" a single node according to the current position allocator type. 
 
void SetBlockAckThresholdForAc(enum AcIndex ac, uint8_t threshold)
 
Hold an unsigned integer type. 
 
holds a vector of ns3::NetDevice pointers 
 
static QosWifiMacHelper Default(void)
 
void Start(Time start)
Arrange for all of the Applications in this container to Start() at the Time given as a parameter...
 
static void Destroy(void)
 
create QoS-enabled MAC layers for a ns3::WifiNetDevice. 
 
void SetMobilityModel(std::string type, 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::string n8="", const AttributeValue &v8=EmptyAttributeValue(), std::string n9="", const AttributeValue &v9=EmptyAttributeValue())
 
void Install(std::string nodeName) const 
 
manage and create wifi channel objects for the yans model. 
 
Helper class used to assign positions and mobility models to nodes. 
 
void Stop(Time stop)
Arrange for all of the Applications in this container to Stop() at the Time given as a parameter...
 
Ipv4InterfaceContainer Assign(const NetDeviceContainer &c)
Assign IP addresses to the net devices specified in the container based on the current network prefix...
 
NS_LOG_COMPONENT_DEFINE("PacketLossCounter")
 
int main(int argc, char *argv[])
 
hold objects of type ns3::DataRate 
 
hold objects of type ns3::Ssid 
 
A helper class to make life easier while doing simple IPv4 address assignment in scripts. 
 
void EnablePcap(std::string prefix, Ptr< NetDevice > nd, bool promiscuous=false, bool explicitFilename=false)
Enable pcap output the indicated net device. 
 
void SetPositionAllocator(Ptr< PositionAllocator > allocator)
 
Hold an floating point type. 
 
void SetAttribute(std::string name, const AttributeValue &value)
 
void SetBase(Ipv4Address network, Ipv4Mask mask, Ipv4Address base="0.0.0.1")
Set the base network number, network mask and base address. 
 
void LogComponentEnable(char const *name, enum LogLevel level)
 
Ipv4Address GetAddress(uint32_t i, uint32_t j=0) const 
 
static WifiHelper Default(void)