CognitiveAgentReachDestination
A CognitiveAgentNavigationAction2D using ReachDestination navigation strategy. Accepts an array of coordinates representing the destinations and uses inferIsKnown to partition them into known and unknown ones.
Parameters
the environment hosting the node
the reaction executing this action
the owner pedestrian property
vararg coordinates representing destinations
Type Parameters
the concentration type
the type of landmarks of the node's cognitive map
the type of edges of the node's cognitive map, representing relations
Constructors
Properties
The room (= environment's area) the navigatingNode is into, this is cached and updated every time update is called so as to avoid potentially costly re-computations.
The position the node wants to reach.
the Euclidean environment with navigation graph
The owner of this action.
The navigatingNode's orienting property.
The position of the navigatingNode in the environment, this is cached and updated every time update is called so as to avoid potentially costly re-computations.
Functions
This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.
Moves the node across the provided door, which must be among the doors returned by doorsInSight.
Moves the node to the given final destination, which must be inside currentRoom.
Returns the target relative position the owner will move to when this action is executed. The position is relative to the owner's current position.