A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AodvExample Class Reference

Test script. More...

Public Member Functions

bool Configure (int argc, char **argv)
 Configure script parameters,. More...
 
void Report (std::ostream &os)
 Report results.
 
void Run ()
 Run simulation.
 

Private Member Functions

void CreateDevices ()
 
void CreateNodes ()
 
void InstallApplications ()
 
void InstallInternetStack ()
 

Private Attributes

parameters
uint32_t size
 Number of nodes.
 
double step
 Distance between nodes, meters.
 
double totalTime
 Simulation time, seconds.
 
bool pcap
 Write per-device PCAP traces if true.
 
bool printRoutes
 Print routes if true.
 
network
NodeContainer nodes
 
NetDeviceContainer devices
 
Ipv4InterfaceContainer interfaces
 

Detailed Description

Test script.

This script creates 1-dimensional grid topology and then ping last node from the first one:

[10.0.0.1] <– step –> [10.0.0.2] <– step –> [10.0.0.3] <– step –> [10.0.0.4]

ping 10.0.0.4

Definition at line 45 of file aodv.cc.

Member Function Documentation

bool AodvExample::Configure ( int  argc,
char **  argv 
)

Configure script parameters,.

Returns
true on successful configuration

Definition at line 107 of file aodv.cc.

References ns3::CommandLine::AddValue(), ns3::CommandLine::Parse(), pcap, printRoutes, size, step, and totalTime.


The documentation for this class was generated from the following file: