io.sarl.sre.janus.services.lifecycle
Interface AgentCreatorProvider
All Known Implementing Classes:
AbtractAgentCreatorProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
@java.lang.FunctionalInterface
interface AgentCreatorProvider
Provider of agent instance creator. The implementation of an AgentCreatorProvider must be thread safe, i.e. the call to the getAgentCreator function must not need to be synchronized.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Action Summary
Modifier and type Action and description
abstract org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> getAgentCreator(Class<T>,UUID,int,DynamicSkillProvider*)
Build an agent creator based on the given parameters.
Action Details
getAgentCreator(Class<T>,UUID,int,DynamicSkillProvider*)
def getAgentCreator(Class<T>,UUID,int,DynamicSkillProvider*) : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>
Build an agent creator based on the given parameters.
Parameters:
agentClazz - the type of agent to create.
parent - the identifier of the agents' parent.
nbAgents - the number of agents to create.
skillProviders - is a list of additional skill providers that should be considered by the created agent.
Returns:
the instance of the creator of agent instances.