public abstract class AgentTraitLife extends Object
Constructor and Description |
---|
AgentTraitLife(associatedContainer : AgentTrait,
factories : javax.inject.Provider<Factories>)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addTaskReference(task : AgentTask)
Add a reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
|
Set<WeakReference<AgentTask>> |
removeAllTaskReferences()
Remove all the references to the tasks associated to this behavior.
|
void |
removeTaskReference(task : AgentTask)
Remove the reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
|
public new
(associatedContainer : AgentTrait,
factories : javax.inject.Provider<Factories>)
associatedContainer
- the associated container of this living object.factories
- the provider of factories tool.injector
- the injector to be used for treating @Injectable
annotations.public def
addTaskReference(task : AgentTask) : boolean
AgentTraitLife
task
- the task to save.public def
removeTaskReference(task : AgentTask) : void
AgentTraitLife
task
- the task to remove.public def
removeAllTaskReferences() : Set<WeakReference<AgentTask>>
AgentTraitLife
Copyright © 2021 the original authors or authors.