public interface IBDIAgentFeature extends IExternalBDIAgentFeature
Modifier and Type | Method and Description |
---|---|
void |
addBeliefListener(java.lang.String name,
IBeliefListener<?> listener)
Add a belief listener.
|
void |
dropGoal(java.lang.Object goal)
Drop a pojo goal.
|
IGoal |
getGoal(java.lang.Object goal)
Get the goal api representation for a pojo goal.
|
java.util.Collection<IGoal> |
getGoals()
Get the current goals as api representation.
|
<T> java.util.Collection<T> |
getGoals(java.lang.Class<T> clazz)
Get the goals of a given type as pojos.
|
void |
removeBeliefListener(java.lang.String name,
IBeliefListener<?> listener)
Remove a belief listener.
|
adoptPlan, adoptPlan, dispatchTopLevelGoal
<T> java.util.Collection<T> getGoals(java.lang.Class<T> clazz)
clazz
- The pojo goal class.java.util.Collection<IGoal> getGoals()
IGoal getGoal(java.lang.Object goal)
goal
- The pojo goal.void dropGoal(java.lang.Object goal)
goal
- The pojo goal.void addBeliefListener(java.lang.String name, IBeliefListener<?> listener)
name
- The belief name.listener
- The belief listener.void removeBeliefListener(java.lang.String name, IBeliefListener<?> listener)
name
- The belief name.listener
- The belief listener.