io.sarl.api.core
Event AgentSpawnFailure
All Superinterfaces:
java.io.Serializable
event AgentSpawnFailure
extends Failure
Notifies an agent that a failure has occurred when it tried to spawn another agent. The event is fired within the default space of the context in which the spawn tentative was. Subclasses of this event could be defined in order to specify more in detail the failure. Only the spawning agent receives this event.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.core
Since:
0.12
Property Summary
Inherited: source
Field Summary
Modifier and type Field and description
val java.lang.Class<T> agentType
The type of agent for which the spawn has failed.
val java.util.UUID contextId
The identifier of the context in which the spawn has failed.
Inherited: cause
Constructor Summary
Constructor and description
new([Address],UUID,Class<T>,Object)
Construct the event.
Action Summary
Field Details
agentType
val agentType : java.lang.Class<T>
The type of agent for which the spawn has failed.
contextId
val contextId : java.util.UUID
The identifier of the context in which the spawn has failed.
Constructor Details
new([Address],UUID,Class<T>,Object)
new([Address],UUID,Class<T>,Object)
Construct the event.
Parameters:
source - the address of the emitter.
contextId - the identifier of the context in which the spawn has failed.
agentType - the type of the agent for which the spawn has failed.
cause - the cause of the failure.