Interface IPlan

All Superinterfaces:
IElement, IFinishableElement<Object>, IParameterElement
All Known Implementing Classes:
RPlan

public interface IPlan extends IParameterElement, IFinishableElement<Object>
User interface for plans.
  • Method Details

    • getId

      String getId()
      Get the id.
      Specified by:
      getId in interface IElement
      Returns:
      The id.
    • abort

      jadex.future.IFuture<Void> abort()
      Abort the plan.
      Returns:
    • isPassed

      boolean isPassed()
      Test if plan is passed.
    • isAborted

      boolean isAborted()
      Test if plan is aborted.
    • getReason

      Object getReason()
      Get the reason.
      Returns:
      The reason.
    • getDispatchedElement

      Object getDispatchedElement()
      Get the dispatched element.
      Returns:
      The dispatched element.
    • waitFor

      jadex.future.IFuture<Void> waitFor(long delay)
      Wait for a delay.
    • dispatchSubgoal

      <T, E> jadex.future.IFuture<E> dispatchSubgoal(T goal)
      Dispatch a goal wait for its result.
    • dispatchSubgoal

      <T, E> jadex.future.IFuture<E> dispatchSubgoal(T goal, long timeout)
      Dispatch a goal wait for its result.
    • waitForFactChanged

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(String belname)
      Wait for a fact change of a belief.
    • waitForFactChanged

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactChanged(String belname, long timeout)
      Wait for a fact change of a belief.
    • waitForFactAdded

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(String belname)
      Wait for a fact being added to a belief.
    • waitForFactAdded

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAdded(String belname, long timeout)
      Wait for a fact being added to a belief.
    • waitForFactRemoved

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(String belname)
      Wait for a fact being removed from a belief.
    • waitForFactRemoved

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactRemoved(String belname, long timeout)
      Wait for a fact being removed from a belief.
    • waitForFactAddedOrRemoved

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(String belname)
      Wait for a fact being added or removed to a belief.
    • waitForFactAddedOrRemoved

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForFactAddedOrRemoved(String belname, long timeout)
      Wait for a fact being added or removed to a belief.
    • waitForCollectionChange

      <T> jadex.future.IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(String belname, long timeout, jadex.common.IFilter<jadex.rules.eca.ChangeInfo<T>> filter)
      Wait for a collection change.
    • waitForCollectionChange

      <T> jadex.future.IFuture<jadex.rules.eca.ChangeInfo<T>> waitForCollectionChange(String belname, long timeout, Object id)
      Wait for a collection change.
    • waitForBeliefChanged

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForBeliefChanged(String belname)
      Wait for change of a belief.
    • waitForBeliefChanged

      jadex.future.IFuture<jadex.rules.eca.ChangeInfo<?>> waitForBeliefChanged(String belname, long timeout)
      Wait for change of a belief.
    • waitForCondition

      jadex.future.IFuture<Void> waitForCondition(jadex.rules.eca.ICondition cond, String[] events)
      Wait for a condition.
    • waitForCondition

      jadex.future.IFuture<Void> waitForCondition(jadex.rules.eca.ICondition cond, String[] events, long timeout)
      Wait for a condition.