Package jadex.bdi.runtime
Interface IPlan
- All Superinterfaces:
IElement
,IFinishableElement<Object>
,IParameterElement
- All Known Implementing Classes:
RPlan
User interface for plans.
-
Method Summary
Modifier and TypeMethodDescriptionjadex.future.IFuture
<Void> abort()
Abort the plan.<T,
E> jadex.future.IFuture <E> dispatchSubgoal
(T goal) Dispatch a goal wait for its result.<T,
E> jadex.future.IFuture <E> dispatchSubgoal
(T goal, long timeout) Dispatch a goal wait for its result.Get the dispatched element.getId()
Get the id.Get the reason.boolean
Test if plan is aborted.boolean
isPassed()
Test if plan is passed.jadex.future.IFuture
<Void> waitFor
(long delay) Wait for a delay.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForBeliefChanged
(String belname) Wait for change of a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForBeliefChanged
(String belname, long timeout) Wait for change of a belief.<T> jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange
(String belname, long timeout, jadex.common.IFilter<jadex.rules.eca.ChangeInfo<T>> filter) Wait for a collection change.<T> jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange
(String belname, long timeout, Object id) Wait for a collection change.jadex.future.IFuture
<Void> waitForCondition
(jadex.rules.eca.ICondition cond, String[] events) Wait for a condition.jadex.future.IFuture
<Void> waitForCondition
(jadex.rules.eca.ICondition cond, String[] events, long timeout) Wait for a condition.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded
(String belname) Wait for a fact being added to a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded
(String belname, long timeout) Wait for a fact being added to a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved
(String belname) Wait for a fact being added or removed to a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved
(String belname, long timeout) Wait for a fact being added or removed to a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged
(String belname) Wait for a fact change of a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged
(String belname, long timeout) Wait for a fact change of a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved
(String belname) Wait for a fact being removed from a belief.jadex.future.IFuture
<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved
(String belname, long timeout) Wait for a fact being removed from a belief.Methods inherited from interface jadex.bdi.runtime.IElement
getCount, getModelElement
Methods inherited from interface jadex.bdi.runtime.IFinishableElement
addListener, getException, isFailed, isFinished, isSucceeded, removeListener
Methods inherited from interface jadex.bdi.runtime.IParameterElement
getParameter, getParameters, getParameterSet, getParameterSets, getType, hasParameter, hasParameterSet
-
Method Details
-
getId
String getId()Get the id. -
abort
jadex.future.IFuture<Void> abort()Abort the plan.- Returns:
-
isPassed
boolean isPassed()Test if plan is passed. -
isAborted
boolean isAborted()Test if plan is aborted. -
getReason
Object getReason()Get the reason.- Returns:
- The reason.
-
getDispatchedElement
Object getDispatchedElement()Get the dispatched element.- Returns:
- The dispatched element.
-
waitFor
Wait for a delay. -
dispatchSubgoal
<T,E> jadex.future.IFuture<E> dispatchSubgoal(T goal) Dispatch a goal wait for its result. -
dispatchSubgoal
<T,E> jadex.future.IFuture<E> dispatchSubgoal(T goal, long timeout) Dispatch a goal wait for its result. -
waitForFactChanged
Wait for a fact change of a belief. -
waitForFactChanged
jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(String belname, long timeout) Wait for a fact change of a belief. -
waitForFactAdded
Wait for a fact being added to a belief. -
waitForFactAdded
Wait for a fact being added to a belief. -
waitForFactRemoved
Wait for a fact being removed from a belief. -
waitForFactRemoved
jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(String belname, long timeout) Wait for a fact being removed from a belief. -
waitForFactAddedOrRemoved
Wait for a fact being added or removed to a belief. -
waitForFactAddedOrRemoved
jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(String belname, long timeout) Wait for a fact being added or removed to a belief. -
waitForCollectionChange
<T> jadex.future.IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(String belname, long timeout, jadex.common.IFilter<jadex.rules.eca.ChangeInfo<T>> filter) Wait for a collection change. -
waitForCollectionChange
<T> jadex.future.IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(String belname, long timeout, Object id) Wait for a collection change. -
waitForBeliefChanged
Wait for change of a belief. -
waitForBeliefChanged
jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForBeliefChanged(String belname, long timeout) Wait for change of a belief. -
waitForCondition
Wait for a condition. -
waitForCondition
jadex.future.IFuture<Void> waitForCondition(jadex.rules.eca.ICondition cond, String[] events, long timeout) Wait for a condition.
-