22 * This example demonstrates the use of Ns2MobilityHelper class to work with mobility.
23 *
24 * Detailed example description.
25 *
26 * - intended usage: this should be used in order to load ns2 movement trace files into ns3.
27 * - behavior:
28 * - Ns2MobilityHelper object is created, associated to the specified trace file.
29 * - A log file is created, using the log file name argument.
30 * - A node container is created with the number of nodes specified in the command line. For the default ns-2 trace, specify the value 2 for this argument.
31 * - the program calls the Install() method of Ns2MobilityHelper to set mobility to nodes. At this moment, the file is read line by line, and the movement is scheduled in the simulator.
32 * - A callback is configured, so each time a node changes its course a log message is printed.
33 * - expected output: example prints out messages generated by each read line from the ns2 movement trace file.
34 * For each line, it shows if the line is correct, or of it has errors and in this case it will