public interface IPlan
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort the plan.
|
void |
addPlanListener(IPlanListener<?> listener) |
<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.
|
Object |
getDispatchedElement()
Get the dispatched element.
|
Exception |
getException()
Get the exception.
|
String |
getId()
Get the id.
|
Object |
getReason()
Get the reason.
|
List<Object> |
getWaitqueue()
Get the waitqueue.
|
<T> IFuture<T> |
invokeInterruptable(IResultCommand<IFuture<T>,Void> command) |
boolean |
isAborted()
Test if plan is aborted.
|
boolean |
isFailed()
Test if plan is failed.
|
boolean |
isFinished()
Test if plan is finished.
|
boolean |
isPassed()
Test if plan is passed.
|
IFuture<Void> |
waitFor(long delay)
Wait for a delay.
|
<T> IFuture<jadex.rules.eca.ChangeInfo<T>> |
waitForCollectionChange(String belname,
long timeout,
IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
Wait for a collection change.
|
<T> IFuture<jadex.rules.eca.ChangeInfo<T>> |
waitForCollectionChange(String belname,
long timeout,
Object id)
Wait for a collection change.
|
IFuture<Void> |
waitForCondition(jadex.rules.eca.ICondition cond,
String[] events)
Wait for a condition.
|
IFuture<Void> |
waitForCondition(jadex.rules.eca.ICondition cond,
String[] events,
long timeout)
Wait for a condition.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAdded(String belname)
Wait for a fact being added to a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAdded(String belname,
long timeout)
Wait for a fact being added to a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAddedOrRemoved(String belname)
Wait for a fact being added or removed to a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactAddedOrRemoved(String belname,
long timeout)
Wait for a fact being added or removed to a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactChanged(String belname)
Wait for a fact change of a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactChanged(String belname,
long timeout)
Wait for a fact change of a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactRemoved(String belname)
Wait for a fact being removed from a belief.
|
IFuture<jadex.rules.eca.ChangeInfo<?>> |
waitForFactRemoved(String belname,
long timeout)
Wait for a fact being removed from a belief.
|
String getId()
void abort()
Exception getException()
boolean isPassed()
boolean isFailed()
boolean isAborted()
boolean isFinished()
Object getReason()
Object getDispatchedElement()
<T,E> IFuture<E> dispatchSubgoal(T goal)
<T,E> IFuture<E> dispatchSubgoal(T goal, long timeout)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(String belname)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(String belname, long timeout)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(String belname)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(String belname, long timeout)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(String belname)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(String belname, long timeout)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(String belname)
IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(String belname, long timeout)
<T> IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(String belname, long timeout, IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
<T> IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(String belname, long timeout, Object id)
IFuture<Void> waitForCondition(jadex.rules.eca.ICondition cond, String[] events)
IFuture<Void> waitForCondition(jadex.rules.eca.ICondition cond, String[] events, long timeout)
<T> IFuture<T> invokeInterruptable(IResultCommand<IFuture<T>,Void> command)
void addPlanListener(IPlanListener<?> listener)
Copyright © 2015. All Rights Reserved.