|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.routing.WayPoint
public final class WayPoint
A waypoint used for routing.
Constructor Summary | |
---|---|
WayPoint(int x,
int y,
int waitTime)
Instantiates a new waypoint. |
Method Summary | |
---|---|
double |
getPositionOnStreet()
Gets the position on the street. |
Street |
getStreet()
Gets the street on which this waypoint is located. |
int |
getWaittime()
Gets the time to wait BEFORE movement to the next waypoint begins. |
int |
getX()
Gets the x coordinate. |
int |
getY()
Gets the y coordinate. |
void |
setWaittime(int waitTime)
Sets the wait time |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WayPoint(int x, int y, int waitTime) throws java.text.ParseException
x
- the x coordinatey
- the y coordinatewaitTime
- the time to wait BEFORE movement to the next waypoint starts.
java.text.ParseException
- if the coordinates supplied couldn't be matched to a street within 100m distance.Method Detail |
---|
public double getPositionOnStreet()
public Street getStreet()
public int getWaittime()
public int getX()
public int getY()
public void setWaittime(int waitTime)
waitTime
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |