Class ConstantSpace
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.movestrategies.SpeedSelectionStrategy
,java.io.Serializable
public final class ConstantSpace<T, P extends Position<P>> implements SpeedSelectionStrategy<T, P>
This strategy makes the node move every time of a fixed amount of space.
-
-
Constructor Summary
Constructors Constructor Description ConstantSpace(double step)
-
Method Summary
Modifier and Type Method Description double
getNodeMovementLength(P target)
-
-
Method Detail
-
getNodeMovementLength
double getNodeMovementLength(P target)
-
-
-
-