public interface IBDIAgentFeature
Modifier and Type | Method and Description |
---|---|
void |
addBeliefListener(java.lang.String name,
IBeliefListener<?> listener)
Add a belief listener.
|
<T,E> IFuture<E> |
adoptPlan(T plan)
Dispatch a pojo plan and wait for its result.
|
<T,E> IFuture<E> |
adoptPlan(T plan,
java.lang.Object... args)
Dispatch a goal wait for its result.
|
<T,E> IFuture<E> |
dispatchTopLevelGoal(T goal)
Dispatch a pojo goal wait for its result.
|
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.
|
<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.<T,E> IFuture<E> dispatchTopLevelGoal(T goal)
goal
- The pojo goal.void dropGoal(java.lang.Object goal)
goal
- The pojo goal.<T,E> IFuture<E> adoptPlan(T plan)
plan
- The pojo plan or plan name.<T,E> IFuture<E> adoptPlan(T plan, java.lang.Object... args)
plan
- The pojo plan or plan name.args
- The plan arguments.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.