io.sarl.api.core
Event Destroy
All Superinterfaces:
java.io.Serializable
final event Destroy
extends Event
Notifies the destruction of an element. The source of this event is the agent itself. This event is marked as an early exit event. It means that any action that is firing this event is supposed to never return, e.g. the killMe action.

For an Agent

This event is received by the agent's native behavior when the agent is destroyed, usually after a call to killMe. All the agent behaviors of the agent are unregistered prior to the firing of this events. All the agent tasks are canceled prior to the firing of this events. Agent skills are uninstalled after the Destroy event handler is ran.

For a Behavior

Each Behavior instance within the agent receives this event when it is unregistered for the last time.

For a Skill

No skill receives this event, except if you have registered the skill as an event listener on the agent internal event bus. In the last case, the skill will receive the Destroy event because is will be uninstalled after its firing.

For Agent Members

The member agents do not receive this event from the parent agent because the parent agent cannot be destroyed if it has agent members.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.core
Property Summary
Inherited: source
Action Summary