Class ReachDestination
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.cognitive.NavigationStrategy
public class ReachDestination<T extends Object, L extends ConvexShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> extends GoalOrientedExploration<T, L, R>
A NavigationStrategy allowing to reach a (static) destination. The client can specify a list of knownDestinations (see Pursue) and unknownDestinations (see GoalOrientedExploration). 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 ReachKnownDestination and GoalOrientedExploration.
-
-
Field Summary
Fields Modifier and Type Field Description private final NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>
action
private final OrientingProperty<T, Euclidean2DPosition, Euclidean2DTransformation, L, ConvexPolygon, Euclidean2DPassage>
orientingCapability
-
Constructor Summary
Constructors Constructor Description ReachDestination(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> knownDestinations, List<Euclidean2DPosition> unknownDestinations)
-
Method Summary
Modifier and Type Method Description Unit
inNewRoom(ConvexPolygon newRoom)
This is called whenever the node enters a new room. -
Methods inherited from class it.unibo.alchemist.model.cognitive.navigation.Explore
getAction
-
Methods inherited from class it.unibo.alchemist.model.cognitive.NavigationStrategy
getOrientingCapability, inUnexpectedNewRoom
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ReachDestination
ReachDestination(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> knownDestinations, List<Euclidean2DPosition> unknownDestinations)
-
-
Method Detail
-
inNewRoom
Unit inNewRoom(ConvexPolygon newRoom)
This is called whenever the node enters a new room.
-
-
-
-