Interface IPlan

    • Method Detail

      • getId

        java.lang.String getId()
        Get the id.
        Specified by:
        getId in interface IElement
        Returns:
        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.
      • waitForBeliefChanged

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

        IFuture<jadex.rules.eca.ChangeInfo<?>> waitForBeliefChanged​(java.lang.String belname,
                                                                    long timeout)
        Wait for change of a belief.
      • 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.