-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.NavigationStrategy
public class DestinationReaching<T extends Object, L extends ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> extends GoalOrientedExploring<T, L, R>
A NavigationStrategy allowing to reach a (static) destination. The client can specify a list of knownDestinations (see Pursuing) and unknownDestinations (see GoalOrientedExploring). The pedestrian will try to reach the closest known destination for which a valid path leading there is known, but in case another destination is found along the way (either known or unknown), the latter will be approached instead of the chosen known destination. To put it in another way, this behavior mixes KnownDestinationReaching and GoalOrientedExploring.
-
-
Field Summary
Fields Modifier and Type Field Description private final NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>action
-
Constructor Summary
Constructors Constructor Description DestinationReaching(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> knownDestinations, List<Euclidean2DPosition> unknownDestinations)
-
Method Summary
Modifier and Type Method Description NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>getAction()The NavigationAction used to navigate the environment. UnitinNewRoom(ConvexPolygon newRoom)This is called whenever the pedestrian enters a new room. -
-
Constructor Detail
-
DestinationReaching
DestinationReaching(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> knownDestinations, List<Euclidean2DPosition> unknownDestinations)
-
-
Method Detail
-
getAction
NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> getAction()
The NavigationAction used to navigate the environment.
-
inNewRoom
Unit inNewRoom(ConvexPolygon newRoom)
This is called whenever the pedestrian enters a new room.
-
-
-
-