V - the vertex type supported by the pathfinderpublic interface Pathfinder<V>
| Modifier and Type | Method and Description |
|---|---|
PathfindingResult<V> |
execute(V from,
V to) |
default java.util.List<V> |
findPath(V from,
V to)
Finds a path for the given starting point and the given destination
|
default long |
getTimeout()
gets the currently set timeout value or
0 if timeouts are
disabled. |
default void |
setTimeout(long timeout)
set a timeout for the pathfinding.
|
default java.util.List<V> findPath(V from, V to)
from - the starting vertexto - the destination vertexPathfindingResult<V> execute(V from, V to)
default void setTimeout(long timeout)
null.
By default timeouts are not supported and an
UnsupportedOperationException is thrown.timeout - the timeout in milliseconds. A value of 0 or less
disables timeout.default long getTimeout()
0 if timeouts are
disabled.
By default timeouts are not supported and an
UnsupportedOperationException is thrown.Copyright © 2018. All Rights Reserved.