public interface IPlan extends IParameterElement, IFinishableElement<java.lang.Object>
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
abort()
Abort the plan.
|
<T,E> jadex.commons.future.IFuture<E> |
dispatchSubgoal(T goal)
Dispatch a goal wait for its result.
|
<T,E> jadex.commons.future.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.
|
jadex.commons.future.IFuture<java.lang.Void> |
waitFor(long delay)
Wait for a delay.
|
<T> jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<T>> |
waitForCollectionChange(java.lang.String belname,
long timeout,
jadex.commons.IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
Wait for a collection change.
|
<T> jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<T>> |
waitForCollectionChange(java.lang.String belname,
long timeout,
java.lang.Object id)
Wait for a collection change.
|
jadex.commons.future.IFuture<java.lang.Void> |
waitForCondition(jadex.rules.eca.ICondition cond,
java.lang.String[] events)
Wait for a condition.
|
jadex.commons.future.IFuture<java.lang.Void> |
waitForCondition(jadex.rules.eca.ICondition cond,
java.lang.String[] events,
long timeout)
Wait for a condition.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAdded(java.lang.String belname)
Wait for a fact being added to a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAdded(java.lang.String belname,
long timeout)
Wait for a fact being added to a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAddedOrRemoved(java.lang.String belname)
Wait for a fact being added or removed to a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAddedOrRemoved(java.lang.String belname,
long timeout)
Wait for a fact being added or removed to a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactChanged(java.lang.String belname)
Wait for a fact change of a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactChanged(java.lang.String belname,
long timeout)
Wait for a fact change of a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactRemoved(java.lang.String belname)
Wait for a fact being removed from a belief.
|
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> |
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()
jadex.commons.future.IFuture<java.lang.Void> abort()
boolean isPassed()
boolean isAborted()
java.lang.Object getReason()
java.lang.Object getDispatchedElement()
jadex.commons.future.IFuture<java.lang.Void> waitFor(long delay)
<T,E> jadex.commons.future.IFuture<E> dispatchSubgoal(T goal)
<T,E> jadex.commons.future.IFuture<E> dispatchSubgoal(T goal, long timeout)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(java.lang.String belname)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(java.lang.String belname, long timeout)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(java.lang.String belname)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(java.lang.String belname, long timeout)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(java.lang.String belname)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(java.lang.String belname, long timeout)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(java.lang.String belname)
jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(java.lang.String belname, long timeout)
<T> jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(java.lang.String belname, long timeout, jadex.commons.IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
<T> jadex.commons.future.IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(java.lang.String belname, long timeout, java.lang.Object id)
jadex.commons.future.IFuture<java.lang.Void> waitForCondition(jadex.rules.eca.ICondition cond, java.lang.String[] events)
jadex.commons.future.IFuture<java.lang.Void> waitForCondition(jadex.rules.eca.ICondition cond, java.lang.String[] events, long timeout)