com.bbn.openmap.tools.roads
Class Route
java.lang.Object
com.bbn.openmap.tools.roads.Route
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Route
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Route(java.lang.String name,
Road[] roads,
boolean startWithFirstIntersection)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Route
public Route(java.lang.String name,
Road[] roads,
boolean startWithFirstIntersection)
getBestRoute
public static Route getBestRoute(Intersection from,
Intersection to,
double bestConvoySpeed,
double worstConvoySpeed)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
getName
public java.lang.String getName()
setName
public void setName(java.lang.String newName)
getRoads
public Road[] getRoads()
getBlockedRoadCount
public int getBlockedRoadCount()
unblockBlockedRoads
public void unblockBlockedRoads()
getOriginIntersection
public Intersection getOriginIntersection()
getDestinationIntersection
public Intersection getDestinationIntersection()
getTravelTime
public long getTravelTime()
location
public LatLonPoint location(long time)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details