io.sarl.api.core
Event AgentKilled
All Superinterfaces:
java.io.Serializable
final event AgentKilled
extends Event
Informs an agent has been killed. The event is fires within all the external contexts (including the default context) of the killed agent. The killed agent does not receive this event. The source of the event is the killed agent. The context id can be retrieved via ev.source.spaceID.contextID.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.core
Property Summary
Inherited: source
Field Summary
Modifier and type Field and description
val java.lang.String agentType
The fully qualified name of the type of the killed agent.
val java.lang.Object terminationCause
The object that is the cause of the killing of the agent or explains the cause of the "abnormal" killing.
Constructor Summary
Constructor and description
new(Address,String,Object)
Construct the event.
Action Summary
Field Details
agentType
val agentType : java.lang.String
The fully qualified name of the type of the killed agent.
terminationCause
val terminationCause : java.lang.Object
The object that is the cause of the killing of the agent or explains the cause of the "abnormal" killing. If it is null, the agent has committed a suicide in "normal" situation.
Since:
0.12
Constructor Details
new(Address,String,Object)
new(Address,String,Object)
Construct the event.
Parameters:
source - the address of the emitter.
agentType - fully qualified name of the type of the agent.
terminationCause - cause of the termination of the agent, or null if there is no specific termination cause.