53 #include "ns3/core-module.h" 
   54 #include "ns3/network-module.h" 
   55 #include "ns3/applications-module.h" 
   56 #include "ns3/mobility-module.h" 
   57 #include "ns3/config-store-module.h" 
   58 #include "ns3/wimax-module.h" 
   59 #include "ns3/internet-module.h" 
   60 #include "ns3/global-route-manager.h" 
   67 int main (
int argc, 
char *argv[])
 
   70   int nbSS = 4, duration = 7, schedType = 0;
 
   78   cmd.
AddValue (
"nbSS", 
"number of subscriber station to create", nbSS);
 
   79   cmd.
AddValue (
"scheduler", 
"type of scheduler to use with the network devices", schedType);
 
   80   cmd.
AddValue (
"duration", 
"duration of the simulation in seconds", duration);
 
   81   cmd.
AddValue (
"verbose", 
"turn on all WimaxNetDevice log components", verbose);
 
   82   cmd.
Parse (argc, argv);
 
  109   ssDevs = wimax.
Install (ssNodes,
 
  117   for (
int i = 0; i < nbSS; i++)
 
  128   mobility.Install (ssNodes);
 
  135   address.
SetBase (
"10.1.1.0", 
"255.255.255.0");
 
  149   for (
int i = 0; i < nbSS / 2; i++)
 
  153       serverApps[i] = udpServer[i].
Install (ssNodes.
Get (i));
 
  154       serverApps[i].
Start (Seconds (6));
 
  155       serverApps[i].
Stop (Seconds (duration));
 
  162       clientApps[i] = udpClient[i].
Install (ssNodes.
Get (i + (nbSS / 2)));
 
  163       clientApps[i].
Start (Seconds (6));
 
  164       clientApps[i].
Stop (Seconds (duration));
 
  171   for (
int i = 0; i < nbSS / 2; i++)
 
  200       ss[i + (nbSS / 2)]->AddServiceFlow (ulServiceFlowBe);
 
  211   for (
int i = 0; i < nbSS; i++)
 
holds a vector of ns3::Application pointers. 
 
smart pointer class similar to boost::intrusive_ptr 
 
holds a vector of std::pair of Ptr<Ipv4> and interface index. 
 
Ptr< NetDevice > Get(uint32_t i) const 
Get the Ptr<NetDevice> stored in this container at a given index. 
 
a class to represent an Ipv4 address mask 
 
void SetModulationType(WimaxPhy::ModulationType modulationType)
Set the most efficient modulation and coding scheme (MCS) supported by the device. 
 
#define NS_LOG_COMPONENT_DEFINE(name)
 
aggregate IP/TCP/UDP functionality to existing Nodes. 
 
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
 
ApplicationContainer Install(NodeContainer c)
 
void Install(Ptr< Node > node) const 
"Layout" a single node according to the current position allocator type. 
 
Create a client application which sends udp packets carrying a 32bit sequence number and a 64 bit tim...
 
hold objects of type ns3::Time 
 
Hold an unsigned integer type. 
 
holds a vector of ns3::NetDevice pointers 
 
Create a server application which waits for input udp packets and uses the information carried into t...
 
void Start(Time start)
Arrange for all of the Applications in this container to Start() at the Time given as a parameter...
 
Parse command-line arguments. 
 
static void Destroy(void)
 
void SetAttribute(std::string name, const AttributeValue &value)
 
keep track of a set of node pointers. 
 
void Install(std::string nodeName) const 
 
Helper class used to assign positions and mobility models to nodes. 
 
Ipv4 addresses are stored in host order in this class. 
 
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...
 
int main(int argc, char *argv[])
 
ApplicationContainer Install(NodeContainer c)
 
void AddValue(const std::string &name, const std::string &help, T &value)
 
Ptr< Node > Get(uint32_t i) const 
Get the Ptr<Node> stored in this container at a given index. 
 
ServiceFlow CreateServiceFlow(ServiceFlow::Direction direction, ServiceFlow::SchedulingType schedulinType, IpcsClassifierRecord classifier)
Creates a transport service flow. 
 
helps to manage and create WimaxNetDevice objects 
 
void Parse(int argc, char *argv[])
 
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. 
 
static void EnableLogComponents(void)
 
void AddServiceFlow(ServiceFlow *sf)
adds a new service flow 
 
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