public interface LifecycleServiceListener extends EventListener
Modifier and Type | Interface and Description |
---|---|
static class |
LifecycleServiceListener.LifecycleServiceAdapter
Event adapter on events related to the life-cycle of an agent.
|
Modifier and Type | Method and Description |
---|---|
void |
agentDestroyed(agent : Agent,
outerContexts : ConcurrentLinkedDeque<ContextReference>)
Invoked when the agent is destroyed.
|
void |
agentSpawned(spawningAgent : UUID,
parent : Context,
agentType : Class<? extends Agent>,
spawnedAgent : Agent,
initializationParameters : Object[])
Invoked when the agent is spawned.
|
void |
agentSpawnFailure(spawningAgent : UUID,
parent : Context,
agentType : Class<? extends Agent>)
Invoked when the agent spawning has failed.
|
def
agentSpawned(spawningAgent : UUID,
parent : Context,
agentType : Class<? extends Agent>,
spawnedAgent : Agent,
initializationParameters : Object[]) : void
LifecycleServiceListener
spawningAgent
- the identifier of the agent which spawns the given agent.parent
- the context in which the agent was created.agentType
- the type of the spawned agents.spawnedAgent
- the spawned agent.initializationParameters
- list of parameters that were passed to the agent.def
agentDestroyed(agent : Agent,
outerContexts : ConcurrentLinkedDeque<ContextReference>) : void
LifecycleServiceListener
agent
- the destroyed agent.outerContexts
- the contexts from which the given agent were removed after its destruction.def
agentSpawnFailure(spawningAgent : UUID,
parent : Context,
agentType : Class<? extends Agent>) : void
LifecycleServiceListener
spawningAgent
- the identifier of the agent which spawns the given agent.parent
- the context in which the agent was created.agentType
- the type of the spawned agents.spawnedAgent
- the spawned agent.initializationParameters
- list of parameters that were passed to the agent.Copyright © 2020 the original authors or authors.