Package jadex.bdiv3.features
Interface IBDIAgentFeature
- 
- All Superinterfaces:
- IExternalBDIAgentFeature,- IExternalComponentFeature
 - All Known Subinterfaces:
- IBDIAgent
 - All Known Implementing Classes:
- ComponentPlanBDI,- HelloWorldBDI,- HelloWorldPlan2,- IndexChangeBDI,- InterfaceInjectionBDI,- PlanMethodInjectionBDI,- PlanReasonInjectionBDI,- SayHelloBDI
 
 public interface IBDIAgentFeature extends IExternalBDIAgentFeature Public methods for working with BDI agents.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBeliefListener(java.lang.String name, IBeliefListener<?> listener)Add a belief listener.voiddropGoal(java.lang.Object goal)Drop a pojo goal.IGoalgetGoal(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.voidremoveBeliefListener(java.lang.String name, IBeliefListener<?> listener)Remove a belief listener.- 
Methods inherited from interface jadex.bdiv3.features.IExternalBDIAgentFeatureadoptPlan, adoptPlan, dispatchTopLevelGoal
 
- 
 
- 
- 
- 
Method Detail- 
getGoals<T> java.util.Collection<T> getGoals(java.lang.Class<T> clazz) Get the goals of a given type as pojos.- Parameters:
- clazz- The pojo goal class.
- Returns:
- The currently instantiated goals of that type.
 
 - 
getGoalsjava.util.Collection<IGoal> getGoals() Get the current goals as api representation.- Returns:
- All currently instantiated goals.
 
 - 
getGoalIGoal getGoal(java.lang.Object goal) Get the goal api representation for a pojo goal.- Parameters:
- goal- The pojo goal.
- Returns:
- The api goal.
 
 - 
dropGoalvoid dropGoal(java.lang.Object goal) Drop a pojo goal.- Parameters:
- goal- The pojo goal.
 
 - 
addBeliefListenervoid addBeliefListener(java.lang.String name, IBeliefListener<?> listener)Add a belief listener.- Parameters:
- name- The belief name.
- listener- The belief listener.
 
 - 
removeBeliefListenervoid removeBeliefListener(java.lang.String name, IBeliefListener<?> listener)Remove a belief listener.- Parameters:
- name- The belief name.
- listener- The belief listener.
 
 
- 
 
-