-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.NavigationStrategy
public class Exploring<T extends Object, L extends ConvexGeometricShape<Euclidean2DPosition, Euclidean2DTransformation>, R extends Object> implements NavigationStrategy<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>
A NavigationStrategy allowing to explore the environment. In order to choose which direction to take, a weighting system is used: every time the pedestrian enters a new room all the visible doors are weighted, the one with minimum weight is then crossed. The weighting system used here is derived from the one by Andresen et al., see weight.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classExploring.Companion
-
Field Summary
Fields Modifier and Type Field Description private final NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage>action
-
Constructor Summary
Constructors Constructor Description Exploring(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, Double knownImpasseWeight)
-
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
-
Exploring
Exploring(NavigationAction<T, Euclidean2DPosition, Euclidean2DTransformation, L, R, ConvexPolygon, Euclidean2DPassage> action, Double knownImpasseWeight)
-
-
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.
-
-
-
-