-
- All Implemented Interfaces:
-
java.io.Serializable
@FunctionalInterface() public interface SpeedSelectionStrategy<T, P extends Position<out P>> implements Serializable
Given the current target Position, this strategy interface computes the current it.unibo.alchemist.model.interfaces.Node's speed.
-
-
Method Summary
Modifier and Type Method Description abstract doublegetNodeMovementLength(P target)SpeedSelectionStrategy<T, P>cloneIfNeeded(Node<T> destination, Reaction<T> reaction)-
-
Method Detail
-
getNodeMovementLength
abstract double getNodeMovementLength(P target)
- Parameters:
target- the Position describing where the it.unibo.alchemist.model.interfaces.Node is directed
-
cloneIfNeeded
SpeedSelectionStrategy<T, P> cloneIfNeeded(Node<T> destination, Reaction<T> reaction)
-
-
-
-