io.sarl.sre.janus.services.lifecycle
Class AgentTraitLife
All Known Subclasses:
BehaviorLife
abstract class AgentTraitLife
extends java.lang.Object
Describes any information that is required by SRE for supporting the agent trait's life.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.6.0
Constructor Summary
Constructor and description
new(AgentTrait,Provider<T>)
Constructor.
Action Summary
Modifier and type Action and description
boolean addTaskReference(AgentTask)
Add a reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
java.util.Set<E> removeAllTaskReferences
Remove all the references to the tasks associated to this behavior.
void removeTaskReference(AgentTask)
Remove the reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
Constructor Details
new(AgentTrait,Provider<T>)
new(AgentTrait,Provider<T>)
Constructor.
Parameters:
associatedContainer - the associated container of this living object.
factories - the provider of factories tool.
Action Details
addTaskReference(AgentTask)
def addTaskReference(AgentTask) : boolean
Add a reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
Parameters:
task - the task to save.
removeAllTaskReferences
def removeAllTaskReferences : java.util.Set<E>
Remove all the references to the tasks associated to this behavior.
Returns:
the removed tasks.
removeTaskReference(AgentTask)
def removeTaskReference(AgentTask)
Remove the reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
Parameters:
task - the task to remove.