public class VertexPathfinder<T extends Vertex<T>> extends java.lang.Object implements Pathfinder<T>
| Constructor and Description |
|---|
VertexPathfinder(Function1<GraphDataProvider<T>,Pathfinder<T>> generator) |
| Modifier and Type | Method and Description |
|---|---|
PathfindingResult<T> |
execute(T from,
T to) |
long |
getTimeout()
gets the currently set timeout value or
0 if timeouts are
disabled. |
void |
setTimeout(long timeout)
set a timeout for the pathfinding.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindPathpublic VertexPathfinder(Function1<GraphDataProvider<T>,Pathfinder<T>> generator)
public PathfindingResult<T> execute(T from, T to)
execute in interface Pathfinder<T extends Vertex<T>>public void setTimeout(long timeout)
Pathfindernull.
By default timeouts are not supported and an
UnsupportedOperationException is thrown.setTimeout in interface Pathfinder<T extends Vertex<T>>timeout - the timeout in milliseconds. A value of 0 or less
disables timeout.public long getTimeout()
Pathfinder0 if timeouts are
disabled.
By default timeouts are not supported and an
UnsupportedOperationException is thrown.getTimeout in interface Pathfinder<T extends Vertex<T>>Copyright © 2018. All Rights Reserved.