-
- All Implemented Interfaces:
public interface NavigationStrategy<T extends Object, P extends Position<P>, Vector<P>, A extends GeometricTransformation<P>, L extends ConvexGeometricShape<P, A>, R extends Object, N extends ConvexGeometricShape<P, A>, E extends Object>Defines what a pedestrian should do when in a new room (= environment's area), this is designed to be used jointly with a NavigationAction: the latter defines how to properly move the pedestrian, while delegating the decision on where to move it to a NavigationStrategy.
-
-
Method Summary
Modifier and Type Method Description abstract UnitinNewRoom(N newRoom)This is called whenever the pedestrian enters a new room. UnitinUnexpectedNewRoom(N previousRoom, N expectedNewRoom, N actualNewRoom)This is called in place of inNewRoom when the pedestrian ends up in an unexpected room while moving. abstract NavigationAction<T, P, A, L, R, N, E>getAction()The NavigationAction used to navigate the environment. -
-
Method Detail
-
inNewRoom
abstract Unit inNewRoom(N newRoom)
This is called whenever the pedestrian enters a new room.
-
inUnexpectedNewRoom
Unit inUnexpectedNewRoom(N previousRoom, N expectedNewRoom, N actualNewRoom)
This is called in place of inNewRoom when the pedestrian ends up in an unexpected room while moving. By default, unexpected rooms are treated just like expected ones.
-
getAction
abstract NavigationAction<T, P, A, L, R, N, E> getAction()
The NavigationAction used to navigate the environment.
-
-
-
-