public abstract class AgentTraitLife extends Object
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 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 © 2020 the original authors or authors.