-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.movestrategies.SpeedSelectionStrategy,java.io.Serializable
public final class GloballyConstantSpeed<T extends Object, P extends Position<P>> implements SpeedSelectionStrategy<T, P>
Similar to ConstantSpeed but takes in consideration the time distribution's rate instead of the reaction's rate.
-
-
Constructor Summary
Constructors Constructor Description GloballyConstantSpeed(Reaction<?> reaction, Double maxSpeed)
-
Method Summary
Modifier and Type Method Description DoublegetNodeMovementLength(P target)GloballyConstantSpeed<T, P>cloneIfNeeded(Node<T> destination, Reaction<T> reaction)-
-
Method Detail
-
getNodeMovementLength
Double getNodeMovementLength(P target)
-
cloneIfNeeded
GloballyConstantSpeed<T, P> cloneIfNeeded(Node<T> destination, Reaction<T> reaction)
-
-
-
-