-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.NavigationStrategy
public class GoalOrientedExploring<T extends Object, L extends ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> extends Exploring<T, L, R>
A NavigationStrategy allowing to explore the environment looking for something specific whose position is unknown. The client can specify a list of unknownDestinations: these can be recognized once they're in sight, but the pedestrian doesn't know their position until that moment (think e.g. of exits in an evacuation scenario). More specifically, unknown destinations can be detected if located in a room adjacent to the room the pedestrian is into. Once a destination is detected, the pedestrian will reach it and stop.
-
-
Field Summary
Fields Modifier and Type Field Description private final NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>action
-
Constructor Summary
Constructors Constructor Description GoalOrientedExploring(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, 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
-
GoalOrientedExploring
GoalOrientedExploring(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, 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.
-
-
-
-