public class AgentEventEmitter extends Object implements LifecycleServiceListener
LifecycleServiceListener.LifecycleServiceAdapter
Constructor and Description |
---|
AgentEventEmitter(logger : Logger) |
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.
|
public new
(logger : Logger)
public def
agentSpawned(spawningAgent : UUID,
parent : Context,
agentType : Class<? extends Agent>,
spawnedAgent : Agent,
initializationParameters : Object[]) : void
LifecycleServiceListener
agentSpawned
in interface 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.public def
agentDestroyed(agent : Agent,
outerContexts : ConcurrentLinkedDeque<ContextReference>) : void
LifecycleServiceListener
agentDestroyed
in interface LifecycleServiceListener
agent
- the destroyed agent.outerContexts
- the contexts from which the given agent were removed after its destruction.public def
agentSpawnFailure(spawningAgent : UUID,
parent : Context,
agentType : Class<? extends Agent>) : void
LifecycleServiceListener
agentSpawnFailure
in interface 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.Copyright © 2020 the original authors or authors.