-
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:
-
-
Maven Artifact Identifier:
-
-
Since:
-
Constructor Summary
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. |
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 -
factories -
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 -
-
removeAllTaskReferences
-
def removeAllTaskReferences : java.util.Set<E>
Remove all the references to the tasks associated to this behavior.
-
Returns:
-
-
removeTaskReference(AgentTask)
-
def removeTaskReference(AgentTask)
Remove the reference to a task that is assumed to be cancelled if the behavior becomes unregistered.
-
Parameters:
-
task -