|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenlr.map.utils.PathUtils
public final class PathUtils
The Class RouteUtils.
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Method Summary | |
|---|---|
static boolean |
checkPathConnection(List<Line> path)
Checks if the path is connected properly. |
static List<Line> |
constructPath(LineLinkedListElement dest)
Constructs a path from information in the LineLinkedListElement. |
static Line |
findCommonLineInPaths(List<? extends Line> location,
LineLinkedListElement el)
Compares the path of the location and the path indicated by the LineLinkedListElement el and returns the first line element which
is part of both paths, starting from the end of the linked list path. |
static LineLinkedListElement |
findElementInQueue(Queue<? extends LineLinkedListElement> pq,
Line line)
Returns the first LineLinkedListElement from the queue pq which
contains the line l. |
static int |
getLength(List<Line> path)
Gets the total length of the path [in meter, rounded]. |
static int |
getLength(List<Line> path,
Line start,
Line end)
Gets the length of the subpath of path between start and end. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getLength(List<Line> path,
Line start,
Line end)
path - the complete pathstart - start of the subpathend - end of the subpath
public static int getLength(List<Line> path)
path - the path
public static boolean checkPathConnection(List<Line> path)
path - the path to be checked
public static List<Line> constructPath(LineLinkedListElement dest)
dest - the end of the path
public static LineLinkedListElement findElementInQueue(Queue<? extends LineLinkedListElement> pq,
Line line)
LineLinkedListElement from the queue pq which
contains the line l.
pq - a queue containing LineLinkedListElementsline - the line
public static Line findCommonLineInPaths(List<? extends Line> location,
LineLinkedListElement el)
LineLinkedListElement el and returns the first line element which
is part of both paths, starting from the end of the linked list path. If
no such line exists the method returns null.
location - the location pathel - LineLinkedListElement defining a second path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||