Agent Action on Arrival
You can add some action for the agent to perform when it reaches the destination. Note, that this action is not executed for every type of movement. Check the
space movement functions for the information when this action code can be useful.
To define the reaction on reaching the destination
- Open the
section of the agent type's properties.
- Type Java code defining the action in the
On arrival to target location
Using statechart transition
You can define an agent's action that should happen on its arrival with the help of a transition.
There is a specific type of transition triggered by
Agent arrival. It has a special icon in the statechart:
Check out the use of such transitions in
Wind Turbine Maintenance Tutorial. Phase 6
Agent type and its properties