public interface IPlan extends IParameterElement, IFinishableElement<java.lang.Object>
Modifier and Type | Method and 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.Object |
getDispatchedElement()
Get the dispatched element.
|
java.lang.String |
getId()
Get the id.
|
java.lang.Object |
getReason()
Get the reason.
|
boolean |
isAborted()
Test if plan is aborted.
|
boolean |
isPassed()
Test if plan is passed.
|
IFuture<java.lang.Void> |
waitFor(long delay)
Wait for a delay.
|
<T> IFuture<<any>> |
waitForCollectionChange(java.lang.String belname,
long timeout,
IFilter<<any>> filter)
Wait for a collection change.
|
<T> IFuture<<any>> |
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<<any>> |
waitForFactAdded(java.lang.String belname)
Wait for a fact being added to a belief.
|
IFuture<<any>> |
waitForFactAdded(java.lang.String belname,
long timeout)
Wait for a fact being added to a belief.
|
IFuture<<any>> |
waitForFactAddedOrRemoved(java.lang.String belname)
Wait for a fact being added or removed to a belief.
|
IFuture<<any>> |
waitForFactAddedOrRemoved(java.lang.String belname,
long timeout)
Wait for a fact being added or removed to a belief.
|
IFuture<<any>> |
waitForFactChanged(java.lang.String belname)
Wait for a fact change of a belief.
|
IFuture<<any>> |
waitForFactChanged(java.lang.String belname,
long timeout)
Wait for a fact change of a belief.
|
IFuture<<any>> |
waitForFactRemoved(java.lang.String belname)
Wait for a fact being removed from a belief.
|
IFuture<<any>> |
waitForFactRemoved(java.lang.String belname,
long timeout)
Wait for a fact being removed from a belief.
|
getParameter, getParameters, getParameterSet, getParameterSets, getType, hasParameter, hasParameterSet
getModelElement
addListener, getException, isFailed, isFinished, isSucceeded, removeListener
java.lang.String getId()
IFuture<java.lang.Void> abort()
boolean isPassed()
boolean isAborted()
java.lang.Object getReason()
java.lang.Object getDispatchedElement()
IFuture<java.lang.Void> waitFor(long delay)
<T,E> IFuture<E> dispatchSubgoal(T goal)
<T,E> IFuture<E> dispatchSubgoal(T goal, long timeout)
IFuture<<any>> waitForFactChanged(java.lang.String belname)
IFuture<<any>> waitForFactChanged(java.lang.String belname, long timeout)
IFuture<<any>> waitForFactAdded(java.lang.String belname)
IFuture<<any>> waitForFactAdded(java.lang.String belname, long timeout)
IFuture<<any>> waitForFactRemoved(java.lang.String belname)
IFuture<<any>> waitForFactRemoved(java.lang.String belname, long timeout)
IFuture<<any>> waitForFactAddedOrRemoved(java.lang.String belname)
IFuture<<any>> waitForFactAddedOrRemoved(java.lang.String belname, long timeout)
<T> IFuture<<any>> waitForCollectionChange(java.lang.String belname, long timeout, IFilter<<any>> filter)
<T> IFuture<<any>> waitForCollectionChange(java.lang.String belname, long timeout, java.lang.Object id)
IFuture<java.lang.Void> waitForCondition(ICondition cond, java.lang.String[] events)
IFuture<java.lang.Void> waitForCondition(ICondition cond, java.lang.String[] events, long timeout)