Interface GoalExecutor<O extends Agent>
- Type Parameters:
O- The type of agent
-
Method Summary
Modifier and TypeMethodDescriptionAdds a newGoalto this goal.voidclear()Clears allGoals from this goal.owner()TheAgentthat owns this goal.removeGoal(Goal<? extends O> goal) Removes a specificGoalfrom this goal.removeGoals(GoalType type) tasks()Gets allGoals in this goal.tasksByType(GoalType type) type()The type of this goal.
-
Method Details
-
type
-
owner
-
addGoal
Adds a newGoalto this goal.- Parameters:
priority- The priority this task should run atgoal- The goal to run- Returns:
- This goal, for chaining
-
removeGoal
Removes a specificGoalfrom this goal.- Parameters:
goal- The goal to remove- Returns:
- This goal, for chaining
-
removeGoals
- Parameters:
type- The type to remove- Returns:
- The goal, for chaining
-
tasksByType
-
tasks
-
clear
void clear()Clears allGoals from this goal.
-