-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.NavigationStrategy
public class Pursuing<T extends Object, L extends ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> extends Exploring<T, L, R>
A NavigationStrategy allowing to pursue a known (static) destination without knowing any path leading there, this is also known as path searching. In this context, knowing a destination means knowing its position, which, in turn, means knowing two things:
the direction that connects the destination and the current position as the crow flies,
an estimation of the distance between the destination and the current position. In order to reach the destination without a route to follow, the weighting system used in Exploring is extended so as to take into account the (estimated) suitability of each door to reach the provided destination, see suitabilityFactor.
-
-
Field Summary
Fields Modifier and Type Field Description private final NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>action
-
Constructor Summary
Constructors Constructor Description Pursuing(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, Euclidean2DPosition destination)
-
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
-
Pursuing
Pursuing(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, Euclidean2DPosition destination)
-
-
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.
-
-
-
-