public class GoalUpdateSet
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
GoalUpdateSet.GoalDescription
This class is a data structure to describe a goal.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dropGoal(GoalUpdateSet.GoalDescription goal)
Indicates that a goal should be dropped.
|
void |
generateGoal(Goal goal)
Indicates that a goal should be added to the agent.
|
void |
generateGoal(Goal goal,
Capability dispatcher)
Indicates that a goal should be added to the agent, with the capability
that dispatched the goal.
|
void |
generateGoal(Goal goal,
Capability dispatcher,
GoalListener listener)
Indicates that a goal should be added to the agent, with the capability
that dispatched the goal and provided listener.
|
void |
generateGoal(Goal goal,
GoalListener listener)
Indicates that a goal should be added to the agent, with the provided
listener.
|
java.util.Set<GoalUpdateSet.GoalDescription> |
getCurrentGoals()
Returns the set of current agent goals.
|
java.util.Set<GoalUpdateSet.GoalDescription> |
getDroppedGoals()
Returns the set of dropped goals.
|
java.util.Set<GoalUpdateSet.GoalDescription> |
getGeneratedGoals()
Returns the set of generated goals.
|
public void dropGoal(GoalUpdateSet.GoalDescription goal)
goal - the goal to be dropped.public void generateGoal(Goal goal)
goal - the goal to be added.public void generateGoal(Goal goal, Capability dispatcher)
goal - the goal to be added.dispatcher - the capability that dispatched the goal.public void generateGoal(Goal goal, Capability dispatcher, GoalListener listener)
goal - the goal to be added.dispatcher - the capability that dispatched the goal.listener - a goal listener.public void generateGoal(Goal goal, GoalListener listener)
goal - the goal to be added.listener - a goal listener.public java.util.Set<GoalUpdateSet.GoalDescription> getCurrentGoals()
public java.util.Set<GoalUpdateSet.GoalDescription> getDroppedGoals()
public java.util.Set<GoalUpdateSet.GoalDescription> getGeneratedGoals()