Class GoalOrientedExploration
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.cognitive.NavigationStrategy
public class GoalOrientedExploration<T extends Object, L extends ConvexShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> extends Explore<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 node 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 node is into. Once a destination is detected, the node will reach it and stop.
-
-
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 GoalOrientedExploration(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, 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
-
GoalOrientedExploration
GoalOrientedExploration(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, List<Euclidean2DPosition> unknownDestinations)
-
-
Method Detail
-
inNewRoom
Unit inNewRoom(ConvexPolygon newRoom)
This is called whenever the node enters a new room.
-
-
-
-