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 |
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
| bool AodvExample::Configure | ( | int | argc, |
| char ** | argv | ||
| ) |
Configure script parameters,.
Definition at line 107 of file aodv.cc.
References ns3::CommandLine::AddValue(), ns3::CommandLine::Parse(), pcap, printRoutes, size, step, and totalTime.