public class StandardLifecycleService extends AbstractLifecycleService
AbstractLifecycleService.AgentCreationProcess, AbstractLifecycleService.AgentIdProvider, AbstractLifecycleService.ShutdownLookUp, AbstractLifecycleService.SpawnQueries
Constructor and Description |
---|
StandardLifecycleService(injector : com.google.inject.Injector,
sarlSpecificationChecker : SarlSpecificationChecker,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
factories : javax.inject.Provider<Factories>,
agentLevelInjector : javax.inject.Provider<ConfigurableAgentInjector>,
skillProvider : DynamicSkillProvider,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
sreConfig : SreConfig)
Constructs the service.
|
StandardLifecycleService(sarlSpecificationChecker : SarlSpecificationChecker,
creator : AgentCreatorProvider,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
factories : javax.inject.Provider<Factories>,
agentLevelInjector : javax.inject.Provider<ConfigurableAgentInjector>,
skillProvider : DynamicSkillProvider,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
lifecycleConfig : LifecycleConfig)
Constructs the service.
|
addDynamicSkillProvider, addKernelAgentLifecycleListener, addLifecycleServiceListener, canSpawnAgent, fireAgentDestroy, fireAgentDestructionEvents, fireAgentKillFailureEvent, fireAgentSpawned, fireAgentSpawnFailureEvent, fireAgentSpawningEvents, fireKernelAgentDestroy, getExecutor, getLogger, getSpawnEnable, isAlive, isEmptyRootContext, isKillableAgent, killAgent, newAgentCreatorProcess, onAgentCreated, onAgentFrameworkStop, onAgentKilled, onStart, onStop, removeDynamicSkillProvider, removeKernelAgentLifecycleListener, removeLifecycleServiceListener, setSpawnEnable, spawnAgent, spawnAgent
doStart, doStop
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
@Inject
public new
(injector : com.google.inject.Injector,
sarlSpecificationChecker : SarlSpecificationChecker,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
factories : javax.inject.Provider<Factories>,
agentLevelInjector : javax.inject.Provider<ConfigurableAgentInjector>,
skillProvider : DynamicSkillProvider,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
sreConfig : SreConfig)
injector
- the injector to be used.sarlSpecificationChecker
- the tool for checking the validity of the SARL specification supported by
the agents to launch.skillProvider
- the provider of skills that should be used to init the agents.lifecycleListener
- the listener at the platform scale on life cycle events.externalContextListener
- the listener at the platform scale on context membership events.factories
- the provider of factories tool.agentLevelInjector
- the dynamic injector for the agent level.skillUninstaller
- the object this is able to uninstall the skills.executor
- the executor service.logger
- the logging service.sreConfig
- the configuration of the SRE.public new
(sarlSpecificationChecker : SarlSpecificationChecker,
creator : AgentCreatorProvider,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
factories : javax.inject.Provider<Factories>,
agentLevelInjector : javax.inject.Provider<ConfigurableAgentInjector>,
skillProvider : DynamicSkillProvider,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
lifecycleConfig : LifecycleConfig)
sarlSpecificationChecker
- the tool for checking the validity of the SARL specification supported by
the agents to launch.creator
- the provider of agent creators that is used when spawning agents.lifecycleListener
- the listener at the platform scale on life cycle events.externalContextListener
- the listener at the platform scale on context membership events.factories
- the provider of factories tool.agentLevelInjector
- the dynamic injector for the agent level.skillProvider
- the system-wide provider of agent skills.skillUninstaller
- the object this is able to uninstall the skills.executor
- the executor service.logger
- the logging service.lifecycleConfig
- the configuration of the lifecycle service.Copyright © 2021 the original authors or authors.