shawn::NS2NodeMovementCreator Class Reference

This class provides an implementation of the NodeMovementCreator. More...

#include <ns2_node_movement_creator.h>

Inheritance diagram for shawn::NS2NodeMovementCreator:

Inheritance graph
[legend]
Collaboration diagram for shawn::NS2NodeMovementCreator:

Collaboration graph
[legend]

List of all members.

methods inherited from NodeMovementCreator

virtual MovementInfonext_movement ()
virtual void reset ()

Public Member Functions

construction / destruction
 NS2NodeMovementCreator (SimulationController &sc)
virtual ~NS2NodeMovementCreator ()


Detailed Description

This class provides an implementation of the NodeMovementCreator.

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)


Constructor & Destructor Documentation

shawn::NS2NodeMovementCreator::NS2NodeMovementCreator ( SimulationController sc  ) 

virtual shawn::NS2NodeMovementCreator::~NS2NodeMovementCreator (  )  [virtual]


Member Function Documentation

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.


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

Generated on Thu Sep 9 00:01:12 2010 for Shawn by  doxygen 1.5.6