public interface IBDIAgent extends IInternalAccess
Modifier and Type | Method and Description |
---|---|
void |
addBeliefListener(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,
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(Object goal)
Drop a pojo goal.
|
BDIAgent |
getAgent()
Get the bdi agent.
|
IGoal |
getGoal(Object goal)
Get the goal api representation for a pojo goal.
|
Collection<IGoal> |
getGoals()
Get the current goals as api representation.
|
<T> Collection<T> |
getGoals(Class<T> clazz)
Get the goals of a given type as pojos.
|
void |
removeBeliefListener(String name,
IBeliefListener listener)
Remove a belief listener.
|
createResultListener, createResultListener, getArguments, getClassLoader, getComponentDescription, getComponentIdentifier, getConfiguration, getExternalAccess, getFetcher, getLogger, getModel, getParentAccess, getResults, getServiceContainer, hasEventTargets, isComponentThread, killComponent, publishEvent, setResultValue, subscribeToEvents, waitForDelay, waitForDelay, waitForDelay, waitForDelay
BDIAgent getAgent()
<T> Collection<T> getGoals(Class<T> clazz)
clazz
- The pojo goal class.Collection<IGoal> getGoals()
IGoal getGoal(Object goal)
goal
- The pojo goal.<T,E> IFuture<E> dispatchTopLevelGoal(T goal)
goal
- The pojo goal.void dropGoal(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, Object[] args)
plan
- The pojo plan or plan name.args
- The plan arguments.void addBeliefListener(String name, IBeliefListener listener)
name
- The belief name.listener
- The belief listener.void removeBeliefListener(String name, IBeliefListener listener)
name
- The belief name.listener
- The belief listener.Copyright © 2015. All Rights Reserved.