-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.NavigationStrategy
public class KnownDestinationReaching<T extends Object, L extends ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> extends RouteFollowing<T, L, R>
A NavigationStrategy allowing to reach a known (static) destination (see Pursuing). The client can specify a list of known destinations, the pedestrian will try to reach the closest one for which a valid path leading there is known. The difference between this behavior and Pursuing is that the latter assumes no route leading to the destination is known, whereas this behavior tries to exploit the pedestrian's cognitive map to obtain a route to follow.
-
-
Field Summary
Fields Modifier and Type Field Description private Euclidean2DPositiondestinationprivate final NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>action
-
Constructor Summary
Constructors Constructor Description KnownDestinationReaching(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> destinations)
-
Method Summary
Modifier and Type Method Description Euclidean2DPositiongetDestination()The destination to pursue. UnitsetDestination(Euclidean2DPosition destination)The destination to pursue. NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>getAction()The NavigationAction used to navigate the environment. -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.navigationstrategies.KnownDestinationReaching
inNewRoom, inUnexpectedNewRoom -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.navigationstrategies.RouteFollowing
setDestination -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KnownDestinationReaching
KnownDestinationReaching(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> destinations)
-
-
Method Detail
-
getDestination
Euclidean2DPosition getDestination()
The destination to pursue.
-
setDestination
Unit setDestination(Euclidean2DPosition destination)
The destination to pursue.
-
getAction
NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> getAction()
The NavigationAction used to navigate the environment.
-
-
-
-