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 Summary
All 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.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<jadex.rules.eca.ChangeInfo<T>>
waitForCollectionChange(java.lang.String belname, long timeout, IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
Wait for a collection change.<T> IFuture<jadex.rules.eca.ChangeInfo<T>>
waitForCollectionChange(java.lang.String belname, long timeout, java.lang.Object id)
Wait for a collection change.IFuture<java.lang.Void>
waitForCondition(jadex.rules.eca.ICondition cond, java.lang.String[] events)
Wait for a condition.IFuture<java.lang.Void>
waitForCondition(jadex.rules.eca.ICondition cond, java.lang.String[] events, long timeout)
Wait for a condition.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactAdded(java.lang.String belname)
Wait for a fact being added to a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactAdded(java.lang.String belname, long timeout)
Wait for a fact being added to a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactAddedOrRemoved(java.lang.String belname)
Wait for a fact being added or removed to a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactAddedOrRemoved(java.lang.String belname, long timeout)
Wait for a fact being added or removed to a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactChanged(java.lang.String belname)
Wait for a fact change of a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactChanged(java.lang.String belname, long timeout)
Wait for a fact change of a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactRemoved(java.lang.String belname)
Wait for a fact being removed from a belief.IFuture<jadex.rules.eca.ChangeInfo<?>>
waitForFactRemoved(java.lang.String belname, long timeout)
Wait for a fact being removed from a belief.-
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getModelElement
-
Methods inherited from interface jadex.bdiv3x.runtime.IFinishableElement
addListener, getException, isFailed, isFinished, isSucceeded, removeListener
-
Methods inherited from interface jadex.bdiv3x.runtime.IParameterElement
getParameter, getParameters, getParameterSet, getParameterSets, getType, hasParameter, hasParameterSet
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
Get the id.
-
abort
IFuture<java.lang.Void> abort()
Abort the plan.
-
isPassed
boolean isPassed()
Test if plan is passed.
-
isAborted
boolean isAborted()
Test if plan is aborted.
-
getReason
java.lang.Object getReason()
Get the reason.- Returns:
- The reason.
-
getDispatchedElement
java.lang.Object getDispatchedElement()
Get the dispatched element.- Returns:
- The dispatched element.
-
waitFor
IFuture<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.
-
waitForFactChanged
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(java.lang.String belname)
Wait for a fact change of a belief.
-
waitForFactChanged
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(java.lang.String belname, long timeout)
Wait for a fact change of a belief.
-
waitForFactAdded
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(java.lang.String belname)
Wait for a fact being added to a belief.
-
waitForFactAdded
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(java.lang.String belname, long timeout)
Wait for a fact being added to a belief.
-
waitForFactRemoved
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(java.lang.String belname)
Wait for a fact being removed from a belief.
-
waitForFactRemoved
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(java.lang.String belname, long timeout)
Wait for a fact being removed from a belief.
-
waitForFactAddedOrRemoved
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(java.lang.String belname)
Wait for a fact being added or removed to a belief.
-
waitForFactAddedOrRemoved
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(java.lang.String belname, long timeout)
Wait for a fact being added or removed to a belief.
-
waitForCollectionChange
<T> IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(java.lang.String belname, long timeout, IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
Wait for a collection change.
-
waitForCollectionChange
<T> IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(java.lang.String belname, long timeout, java.lang.Object id)
Wait for a collection change.
-
waitForCondition
IFuture<java.lang.Void> waitForCondition(jadex.rules.eca.ICondition cond, java.lang.String[] events)
Wait for a condition.
-
waitForCondition
IFuture<java.lang.Void> waitForCondition(jadex.rules.eca.ICondition cond, java.lang.String[] events, long timeout)
Wait for a condition.
-
-