-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.SteeringStrategy
public final class Nearest<T extends Object> extends Filtered<T, Euclidean2DPosition>
Filtered strategy considering only the group steering action and the non-group steering action whose targets are nearest to the pedestrian's position. The two actions are combined using DistanceWeighted strategy.
-
-
Constructor Summary
Constructors Constructor Description Nearest(Euclidean2DEnvironment<T> environment, Pedestrian2D<T> pedestrian)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.steeringstrategies.Nearest
computeNextPosition -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.steeringstrategies.Filtered
computeTarget -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Nearest
Nearest(Euclidean2DEnvironment<T> environment, Pedestrian2D<T> pedestrian)
- Parameters:
environment-the environment in which the pedestrian moves.pedestrian-the owner of the steering action this strategy belongs to.
-
-
-
-