22 #include "ns3/simulator.h"
23 #include "ns3/mobility-helper.h"
24 #include "ns3/double.h"
25 #include "ns3/uinteger.h"
26 #include "ns3/string.h"
27 #include "ns3/boolean.h"
28 #include "ns3/yans-wifi-helper.h"
29 #include "ns3/internet-stack-helper.h"
30 #include "ns3/ipv4-address-helper.h"
31 #include "ns3/abort.h"
32 #include "ns3/udp-echo-helper.h"
33 #include "ns3/mobility-model.h"
34 #include "ns3/pcap-file.h"
35 #include "ns3/aodv-helper.h"
36 #include "ns3/v4ping.h"
37 #include "ns3/nqos-wifi-mac-helper.h"
38 #include "ns3/config.h"
39 #include "ns3/constant-position-mobility-model.h"
40 #include "ns3/names.h"
66 wifiMac.
SetType (
"ns3::AdhocWifiMac");
80 address.
SetBase (
"10.1.1.0",
"255.255.255.0");
87 ping->SetStartTime (Seconds (0));
88 ping->SetStopTime (Seconds (4));
uint32_t AddApplication(Ptr< Application > application)
keep track of time values and allow control of global simulation resolution
holds a vector of std::pair of Ptr<Ipv4> and interface index.
Ptr< YansWifiChannel > Create(void) const
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())
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 void PingRtt(std::string context, Time rtt)
static YansWifiPhyHelper Default(void)
void Connect(std::string path, const CallbackBase &cb)
helps to create WifiNetDevice objects
NetDeviceContainer Install(const WifiPhyHelper &phy, const WifiMacHelper &mac, NodeContainer c) const
static void Add(std::string name, Ptr< Object > object)
Add the association between the string "name" and the Ptr<Object> obj.
void SetChannel(Ptr< YansWifiChannel > channel)
holds a vector of ns3::NetDevice pointers
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
static NqosWifiMacHelper Default(void)
void AggregateObject(Ptr< Object > other)
create non QoS-enabled MAC layers for a ns3::WifiNetDevice.
static void Destroy(void)
keep track of a set of node pointers.
void Install(std::string nodeName) const
manage and create wifi channel objects for the yans model.
hold objects of type ns3::Ipv4Address
static Ipv4Address GetLoopback(void)
void SetPosition(const Vector &position)
Ipv4InterfaceContainer Assign(const NetDeviceContainer &c)
Assign IP addresses to the net devices specified in the container based on the current network prefix...
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Helper class that adds AODV routing to nodes.
void SetRoutingHelper(const Ipv4RoutingHelper &routing)
void SetBase(Ipv4Address network, Ipv4Mask mask, Ipv4Address base="0.0.0.1")
Set the base network number, network mask and base address.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
static uint32_t g_count(0)
static WifiHelper Default(void)