Package jadex.bdi.runtime
Interface IBDIAgentFeature
- All Superinterfaces:
IExternalBDIAgentFeature
- All Known Subinterfaces:
IBDIAgent
,IInternalBDIAgentFeature
- All Known Implementing Classes:
BDIAgentFeature
Public methods for working with BDI agents.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBeliefListener
(String name, IBeliefListener<?> listener) Add a belief listener.void
Drop a pojo goal.getArgument
(String name) Get an argument if supplied at agent creation.Get the goal api representation for a pojo goal.getGoals()
Get the current goals as api representation.<T> Collection
<T> Get the goals of a given type as pojos.void
removeBeliefListener
(String name, IBeliefListener<?> listener) Remove a belief listener.Methods inherited from interface jadex.bdi.runtime.IExternalBDIAgentFeature
adoptPlan, adoptPlan, dispatchTopLevelGoal
-
Method Details
-
getGoals
Get the goals of a given type as pojos.- Parameters:
clazz
- The pojo goal class.- Returns:
- The currently instantiated goals of that type.
-
getGoals
Collection<IGoal> getGoals()Get the current goals as api representation.- Returns:
- All currently instantiated goals.
-
getGoal
Get the goal api representation for a pojo goal.- Parameters:
goal
- The pojo goal.- Returns:
- The api goal.
-
dropGoal
Drop a pojo goal.- Parameters:
goal
- The pojo goal.
-
addBeliefListener
Add a belief listener.- Parameters:
name
- The belief name.listener
- The belief listener.
-
removeBeliefListener
Remove a belief listener.- Parameters:
name
- The belief name.listener
- The belief listener.
-
getArgument
Get an argument if supplied at agent creation.
-