-
- All Implemented Interfaces:
public interface SteeringStrategy<T extends Object, P extends Position<P>>Strategy interface describing how the next points of the steering actions are combined to calculate the next position to move on.
-
-
Method Summary
Modifier and Type Method Description abstract PcomputeNextPosition(List<SteeringAction<T, P>> actions)Computes the next position starting from the steering actions the pedestrian obey to, in relative coordinates with respect to its current position. abstract PcomputeTarget(List<SteeringAction<T, P>> actions)Computes the target to reach starting from the steering actions the pedestrian obey to, in absolute coordinates. -
-
Method Detail
-
computeNextPosition
abstract P computeNextPosition(List<SteeringAction<T, P>> actions)
Computes the next position starting from the steering actions the pedestrian obey to, in relative coordinates with respect to its current position.
- Parameters:
actions-the list of actions to combine.
-
computeTarget
abstract P computeTarget(List<SteeringAction<T, P>> actions)
Computes the target to reach starting from the steering actions the pedestrian obey to, in absolute coordinates.
- Parameters:
actions-the list of actions to combine.
-
-
-
-