Dynamic Pursuing
open class DynamicPursuing<T, L : Euclidean2DConvexShape, R>(action: NavigationAction2D<T, L, R, ConvexPolygon, Euclidean2DPassage>, destination: Euclidean2DPosition) : Pursuing<T, L, R>
Content copied to clipboard
Pursuing strategy allowing to dynamically change destination.
Parameters
T
the concentration type.
L
the type of landmarks of the pedestrian's cognitive map.
R
the type of edges of the pedestrian's cognitive map, representing the Relations between landmarks.
Constructors
Link copied to clipboard
fun DynamicPursuing(action: NavigationAction2D<T, L, R, ConvexPolygon, Euclidean2DPassage>, destination: Euclidean2DPosition)
Content copied to clipboard
Functions
Link copied to clipboard
This is called whenever the pedestrian enters a new room.
Link copied to clipboard
open fun inUnexpectedNewRoom(previousRoom: ConvexPolygon, expectedNewRoom: ConvexPolygon, actualNewRoom: ConvexPolygon)
Content copied to clipboard
This is called in place of inNewRoom when the pedestrian ends up in an unexpected room while moving. By default, unexpected rooms are treated just like expected ones.
Link copied to clipboard
fun setDestination(newDestination: Euclidean2DPosition, voidVolatileMemory: Boolean = false)
Content copied to clipboard
Changes the destination of the strategy. If voidVolatileMemory is true, the pedestrian's volatile memory is set to zero. This has two effects:
Properties
Link copied to clipboard
open override val action: NavigationAction2D<T, L, R, ConvexPolygon, Euclidean2DPassage>
Content copied to clipboard