Font size

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 continuous, discrete, and GIS space movement functions for the information when this action code can be useful.

To define the reaction on reaching the destination

  1. Open the Agent actions section of the agent type's properties.
  2. Type Java code defining the action in the On arrival to target location field.

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.

How can we improve this article?