#include <ns2_node_movement_creator.h>


methods inherited from NodeMovementCreator | |
| virtual MovementInfo * | next_movement () |
| virtual void | reset () |
Public Member Functions | |
construction / destruction | |
| NS2NodeMovementCreator (SimulationController &sc) | |
| virtual | ~NS2NodeMovementCreator () |
This NodeMovementCreator reads input from a file containing movement orders adhering to the NS2 standard. The following syntax can be parsed: [$ns_ at var_time] ($node_(var_nodeid)|var_nodelabel) (set (X_|Y_|Z_) var_position|setdest var_x var_y var_z)
| shawn::NS2NodeMovementCreator::NS2NodeMovementCreator | ( | SimulationController & | sc | ) |
| virtual shawn::NS2NodeMovementCreator::~NS2NodeMovementCreator | ( | ) | [virtual] |
| virtual MovementInfo* shawn::NS2NodeMovementCreator::next_movement | ( | ) | [virtual] |
This method reads a line from a file designated in shawnconf.h. The movement order from that line is returned as a MovementInfo object.
Implements shawn::NodeMovementCreator.
| virtual void shawn::NS2NodeMovementCreator::reset | ( | ) | [virtual] |
This method causes the NodeMovementCreator to start parsing from the beginning of the inputfile.
Implements shawn::NodeMovementCreator.
1.5.6