io.sarl.api.core
Event Initialize
All Superinterfaces:
java.io.Serializable
final event Initialize
extends Event
Initialization event. The source of this event is the agent itself.

For an Agent

This event is received by the agent's native behavior when the agent is spawned.

For a Behavior

Each Behavior instance within the agent receives this event when it is registered for the first time.

For a Skill

No skill receives this event.

For Agent Members

The member agents do not receive this event from the parent agent because they are not yet created when the agent is spawned.
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.Object parameters
The initialization parameters.
val java.util.UUID spawner
Identifier of the agent, which has spawned the under-initialization agent.
Constructor Summary
Constructor and description
new(UUID,Object*)
Constructor.
new(Address,UUID,Object*)
Constructor.
Action Summary
Field Details
parameters
val parameters : java.lang.Object
The initialization parameters. Usually, they are the arguments passed to the agent spawning function.
spawner
val spawner : java.util.UUID
Identifier of the agent, which has spawned the under-initialization agent. If the under-initialization agent was spawned by the SARL run-time environment (and not by another agent), the identifier is null.
Since:
0.5
Constructor Details
new(UUID,Object*)
new(UUID,Object*)
Constructor.
Parameters:
spawner - the identifier of the spawner of the under-initialization agent.
params - the initialization parameters to give to the under-initialization agent.
Since:
0.5
new(Address,UUID,Object*)
new(Address,UUID,Object*)
Constructor.
Parameters:
source - address of the agent that is emitting this event.
spawner - the identifier of the spawner of the under-initialization agent.
params - the initialization parameters to give to the under-initialization agent.
Since:
0.5