Mobility::RectangularAlignedWaypointRange Class Reference
[pydtn.mobility]

A random waypoint topology defining a rectangular area (or volume) where the edges are aligned with the cardinal axes. More...

#include <mobility/RectangularAlignedWaypointRange.h>

Inheritance diagram for Mobility::RectangularAlignedWaypointRange:

Inheritance graph
[legend]
Collaboration diagram for Mobility::RectangularAlignedWaypointRange:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RectangularAlignedWaypointRange (const Position &ll, const Position &ur)
 Constructor.
virtual ~RectangularAlignedWaypointRange ()
 Virtual destructor.
Position next (const Position &p)
 Obtain the next waypoint.


Detailed Description

A random waypoint topology defining a rectangular area (or volume) where the edges are aligned with the cardinal axes.

Definition at line 45 of file RectangularAlignedWaypointRange.h.


Constructor & Destructor Documentation

RectangularAlignedWaypointRange::RectangularAlignedWaypointRange ( const Position ll,
const Position ur 
)

Constructor.

Parameters:
ll The lower-left corner of the area
ur The upper-right corner of the area

Definition at line 37 of file RectangularAlignedWaypointRange.cc.


Member Function Documentation

Position RectangularAlignedWaypointRange::next ( const Position p  )  [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

Implements Mobility::WaypointRange.

Definition at line 50 of file RectangularAlignedWaypointRange.cc.

References prng(), Mobility::Position::x(), Mobility::Position::y(), and Mobility::Position::z().


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