Mobility::ParallelogramWaypointRange Class Reference
[pydtn.mobility]

A random waypoint topology defining an arbitrary parallelogram area (or volume). More...

#include <mobility/ParallelogramWaypointRange.h>

Inheritance diagram for Mobility::ParallelogramWaypointRange:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ParallelogramWaypointRange (const Position &a, const Position &b, const Position &c, const Position &d)
 Constructor.
virtual ~ParallelogramWaypointRange ()
 Virtual destructor.
Position next (const Position &p)
 Obtain the next waypoint.


Detailed Description

A random waypoint topology defining an arbitrary parallelogram area (or volume).

Definition at line 45 of file ParallelogramWaypointRange.h.


Constructor & Destructor Documentation

ParallelogramWaypointRange::ParallelogramWaypointRange ( const Position a,
const Position b,
const Position c,
const Position d 
)

Constructor.

Points a and b define one side, points a and c define a second side, and points a and d define a third side. The parallelogram is uniquely defined by these four (ordered) points.

Parameters:
a The common point of the three sides
b The end point of side one
c The end point of side two
d The end point of side three; for a two-dimensional region, this should be the same as a

Definition at line 37 of file ParallelogramWaypointRange.cc.


Member Function Documentation

Position ParallelogramWaypointRange::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 53 of file ParallelogramWaypointRange.cc.

References prng().


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