Package jadex.bdiv3.runtime
Interface IPlan
- 
- All Superinterfaces:
- IElement,- IFinishableElement<java.lang.Object>,- IParameterElement
 
 public interface IPlan extends IParameterElement, IFinishableElement<java.lang.Object> User interface for plans.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>abort()Abort the plan.<T,E>
 IFuture<E>dispatchSubgoal(T goal)Dispatch a goal wait for its result.<T,E>
 IFuture<E>dispatchSubgoal(T goal, long timeout)Dispatch a goal wait for its result.java.lang.ObjectgetDispatchedElement()Get the dispatched element.java.lang.StringgetId()Get the id.java.lang.ObjectgetReason()Get the reason.booleanisAborted()Test if plan is aborted.booleanisPassed()Test if plan is passed.IFuture<java.lang.Void>waitFor(long delay)Wait for a delay.<T> IFuture<ChangeInfo<T>>waitForCollectionChange(java.lang.String belname, long timeout, IFilter<ChangeInfo<T>> filter)Wait for a collection change.<T> IFuture<ChangeInfo<T>>waitForCollectionChange(java.lang.String belname, long timeout, java.lang.Object id)Wait for a collection change.IFuture<java.lang.Void>waitForCondition(ICondition cond, java.lang.String[] events)Wait for a condition.IFuture<java.lang.Void>waitForCondition(ICondition cond, java.lang.String[] events, long timeout)Wait for a condition.IFuture<ChangeInfo<?>>waitForFactAdded(java.lang.String belname)Wait for a fact being added to a belief.IFuture<ChangeInfo<?>>waitForFactAdded(java.lang.String belname, long timeout)Wait for a fact being added to a belief.IFuture<ChangeInfo<?>>waitForFactAddedOrRemoved(java.lang.String belname)Wait for a fact being added or removed to a belief.IFuture<ChangeInfo<?>>waitForFactAddedOrRemoved(java.lang.String belname, long timeout)Wait for a fact being added or removed to a belief.IFuture<ChangeInfo<?>>waitForFactChanged(java.lang.String belname)Wait for a fact change of a belief.IFuture<ChangeInfo<?>>waitForFactChanged(java.lang.String belname, long timeout)Wait for a fact change of a belief.IFuture<ChangeInfo<?>>waitForFactRemoved(java.lang.String belname)Wait for a fact being removed from a belief.IFuture<ChangeInfo<?>>waitForFactRemoved(java.lang.String belname, long timeout)Wait for a fact being removed from a belief.- 
Methods inherited from interface jadex.bdiv3x.runtime.IElementgetModelElement
 - 
Methods inherited from interface jadex.bdiv3x.runtime.IFinishableElementaddListener, getException, isFailed, isFinished, isSucceeded, removeListener
 - 
Methods inherited from interface jadex.bdiv3x.runtime.IParameterElementgetParameter, getParameters, getParameterSet, getParameterSets, getType, hasParameter, hasParameterSet
 
- 
 
- 
- 
- 
Method Detail- 
getIdjava.lang.String getId() Get the id.
 - 
abortIFuture<java.lang.Void> abort() Abort the plan.
 - 
isPassedboolean isPassed() Test if plan is passed.
 - 
isAbortedboolean isAborted() Test if plan is aborted.
 - 
getReasonjava.lang.Object getReason() Get the reason.- Returns:
- The reason.
 
 - 
getDispatchedElementjava.lang.Object getDispatchedElement() Get the dispatched element.- Returns:
- The dispatched element.
 
 - 
waitForIFuture<java.lang.Void> waitFor(long delay) Wait for a delay.
 - 
dispatchSubgoal<T,E> IFuture<E> dispatchSubgoal(T goal) Dispatch a goal wait for its result.
 - 
dispatchSubgoal<T,E> IFuture<E> dispatchSubgoal(T goal, long timeout) Dispatch a goal wait for its result.
 - 
waitForFactChangedIFuture<ChangeInfo<?>> waitForFactChanged(java.lang.String belname) Wait for a fact change of a belief.
 - 
waitForFactChangedIFuture<ChangeInfo<?>> waitForFactChanged(java.lang.String belname, long timeout) Wait for a fact change of a belief.
 - 
waitForFactAddedIFuture<ChangeInfo<?>> waitForFactAdded(java.lang.String belname) Wait for a fact being added to a belief.
 - 
waitForFactAddedIFuture<ChangeInfo<?>> waitForFactAdded(java.lang.String belname, long timeout) Wait for a fact being added to a belief.
 - 
waitForFactRemovedIFuture<ChangeInfo<?>> waitForFactRemoved(java.lang.String belname) Wait for a fact being removed from a belief.
 - 
waitForFactRemovedIFuture<ChangeInfo<?>> waitForFactRemoved(java.lang.String belname, long timeout) Wait for a fact being removed from a belief.
 - 
waitForFactAddedOrRemovedIFuture<ChangeInfo<?>> waitForFactAddedOrRemoved(java.lang.String belname) Wait for a fact being added or removed to a belief.
 - 
waitForFactAddedOrRemovedIFuture<ChangeInfo<?>> waitForFactAddedOrRemoved(java.lang.String belname, long timeout) Wait for a fact being added or removed to a belief.
 - 
waitForCollectionChange<T> IFuture<ChangeInfo<T>> waitForCollectionChange(java.lang.String belname, long timeout, IFilter<ChangeInfo<T>> filter) Wait for a collection change.
 - 
waitForCollectionChange<T> IFuture<ChangeInfo<T>> waitForCollectionChange(java.lang.String belname, long timeout, java.lang.Object id) Wait for a collection change.
 - 
waitForConditionIFuture<java.lang.Void> waitForCondition(ICondition cond, java.lang.String[] events) Wait for a condition.
 - 
waitForConditionIFuture<java.lang.Void> waitForCondition(ICondition cond, java.lang.String[] events, long timeout) Wait for a condition.
 
- 
 
-