io.sarl.api.core
Event AgentSpawned
All Superinterfaces:
java.io.Serializable
final event AgentSpawned
extends Event
Informs the creation of a new agent in a spawning context. The event is fired within the default space of the spawning context, i.e. the context in which the agent was created. The spawned agent does not receive this event. The source of the event is the spawning 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.util.UUID agentID
Identifier of the spawned agent.
val java.lang.String agentType
Fully qualifiedname of the type of the agent.
Constructor Summary
Constructor and description
new(Address,UUID,String)
Constuct the event.
Action Summary
Field Details
agentID
val agentID : java.util.UUID
Identifier of the spawned agent.
agentType
val agentType : java.lang.String
Fully qualifiedname of the type of the agent.
Constructor Details
new(Address,UUID,String)
new(Address,UUID,String)
Constuct the event.
Parameters:
source - the address of the emitter.
agentID - : the identifier of the spawned agent.
agentType - fully qualified name of the type of the agent.