VANET Simulator
 All Classes Functions Variables
Public Member Functions | List of all members
vanetsim.routing.WayPoint Class Reference

Public Member Functions

 WayPoint (int x, int y, int waitTime) throws ParseException
 
double getPositionOnStreet ()
 
Street getStreet ()
 
int getWaittime ()
 
int getX ()
 
int getY ()
 
void setWaittime (int waitTime)
 

Detailed Description

A waypoint used for routing.

Constructor & Destructor Documentation

vanetsim.routing.WayPoint.WayPoint ( int  x,
int  y,
int  waitTime 
) throws ParseException
inline

Instantiates a new waypoint.

Parameters
xthe x coordinate
ythe y coordinate
waitTimethe time to wait BEFORE movement to the next waypoint starts.
Exceptions
ParseExceptionif the coordinates supplied couldn't be matched to a street within 100m distance.

Member Function Documentation

double vanetsim.routing.WayPoint.getPositionOnStreet ( )
inline

Gets the position on the street.

Returns
the position in cm measured from the startNode
Street vanetsim.routing.WayPoint.getStreet ( )
inline

Gets the street on which this waypoint is located.

Returns
the street
int vanetsim.routing.WayPoint.getWaittime ( )
inline

Gets the time to wait BEFORE movement to the next waypoint begins.

Returns
the time to wait BEFORE movement to the next waypoint starts
int vanetsim.routing.WayPoint.getX ( )
inline

Gets the x coordinate.

Returns
the x coordinate
int vanetsim.routing.WayPoint.getY ( )
inline

Gets the y coordinate.

Returns
the y coordinate
void vanetsim.routing.WayPoint.setWaittime ( int  waitTime)
inline

Sets the wait time

Parameters
waitTime

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