io.sarl.sre.janus.services.lifecycle
Class AgentCreationProcess
All Superinterfaces:
java.lang.Runnable
Enclosing class:
AbstractLifecycleService
@org.eclipse.xtext.xbase.lib.XbaseGenerated
protected static class AgentCreationProcess
extends java.lang.Object
implements java.lang.Runnable
A class that is runnable into a thread and implements the creation of a single agent.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.12
Constructor Summary
Action Summary
Modifier and type Action and description
protected void createAgent
final void run
Constructor Details
new(AbstractLifecycleService,SpawnQueries,UUID,Context,Class<T>,Object,Function0<Result>,Function1<Param,Result>,SkillUninstaller,Logger,Provider<T>,Provider<T>)
new(AbstractLifecycleService,SpawnQueries,UUID,Context,Class<T>,Object,Function0<Result>,Function1<Param,Result>,SkillUninstaller,Logger,Provider<T>,Provider<T>)
Constructor.
Parameters:
service - is the reference to the spawning service.
spawnQueries - the object ot track the spawn queries.
spawningAgent - is the identifier of the agent that has invoked the spawn function, if null, the root agent (Janus kernel) is assumed.
parentContext - is the context in which the agent is created.
agentType - is the type of the created agents.
initializationParameters - is the list of parameters to pass to the agent for its initialization.
agentIds - is the lambda that must be used to compute the UUID of an agent. This lambda should be thread-safe.
agentInstanceCreator - is a lambda that enables to create an instance of agent. This lambda is thread-safe.
skillUninstaller - is the reference to the skill uninstaller.
logger - is the service logger.
factories - the provider of factories tool.
Action Details
createAgent
protected def createAgent
run
def run