Interface RoutingStrategy
-
- All Implemented Interfaces:
-
java.io.Serializable
@FunctionalInterface() public interface RoutingStrategy<T, P extends Position<P>> implements Serializable
Strategy interface describing how the routing between two points happens.
-
-
Method Summary
Modifier and Type Method Description abstract Route<P>
computeRoute(P currentPos, P finalPos)
Computes a route between two positions. RoutingStrategy<T, P>
cloneIfNeeded(Node<T> destination, Reaction<T> reaction)
-
-
Method Detail
-
computeRoute
abstract Route<P> computeRoute(P currentPos, P finalPos)
Computes a route between two positions.
-
cloneIfNeeded
RoutingStrategy<T, P> cloneIfNeeded(Node<T> destination, Reaction<T> reaction)
-
-
-
-