Mobility::WaypointRange Class Reference
[pydtn.mobility]

Abstract base class for random waypoint topologies. More...

#include <mobility/WaypointRange.h>

Inheritance diagram for Mobility::WaypointRange:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WaypointRange ()
 Default constructor.
virtual ~WaypointRange ()
 Virtual destructor.
virtual Position next (const Position &p)=0
 Obtain the next waypoint.


Detailed Description

Abstract base class for random waypoint topologies.

Definition at line 44 of file WaypointRange.h.


Member Function Documentation

virtual Position Mobility::WaypointRange::next ( const Position p  )  [pure virtual]

Obtain the next waypoint.

For many derived classes, this will be independent of the current position. Some might have a requirement that, in a complex domain, the new waypoint is reachable from the previous one by a straight-line path.

Parameters:
p The previous waypoint
Returns:
a new waypoint

Implemented in Mobility::ParallelogramWaypointRange, and Mobility::RectangularAlignedWaypointRange.

Referenced by Mobility::RandomWaypointNode::setWaypoint().


The documentation for this class was generated from the following file:
Generated on Mon Mar 24 11:15:49 2008 for Pydtn Simulator by  doxygen 1.5.4