Interface IPlan

    • 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<ChangeInfo<?>> waitForFactChanged​(java.lang.String belname)
        Wait for a fact change of a belief.
      • waitForFactChanged

        IFuture<ChangeInfo<?>> waitForFactChanged​(java.lang.String belname,
                                                  long timeout)
        Wait for a fact change of a belief.
      • waitForFactAdded

        IFuture<ChangeInfo<?>> waitForFactAdded​(java.lang.String belname)
        Wait for a fact being added to a belief.
      • waitForFactAdded

        IFuture<ChangeInfo<?>> waitForFactAdded​(java.lang.String belname,
                                                long timeout)
        Wait for a fact being added to a belief.
      • waitForFactRemoved

        IFuture<ChangeInfo<?>> waitForFactRemoved​(java.lang.String belname)
        Wait for a fact being removed from a belief.
      • waitForFactRemoved

        IFuture<ChangeInfo<?>> waitForFactRemoved​(java.lang.String belname,
                                                  long timeout)
        Wait for a fact being removed from a belief.
      • waitForFactAddedOrRemoved

        IFuture<ChangeInfo<?>> waitForFactAddedOrRemoved​(java.lang.String belname)
        Wait for a fact being added or removed to a belief.
      • waitForFactAddedOrRemoved

        IFuture<ChangeInfo<?>> waitForFactAddedOrRemoved​(java.lang.String belname,
                                                         long timeout)
        Wait for a fact being added or removed to a belief.
      • waitForCollectionChange

        <T> IFuture<ChangeInfo<T>> waitForCollectionChange​(java.lang.String belname,
                                                           long timeout,
                                                           IFilter<ChangeInfo<T>> filter)
        Wait for a collection change.
      • waitForCollectionChange

        <T> IFuture<ChangeInfo<T>> waitForCollectionChange​(java.lang.String belname,
                                                           long timeout,
                                                           java.lang.Object id)
        Wait for a collection change.
      • waitForCondition

        IFuture<java.lang.Void> waitForCondition​(ICondition cond,
                                                 java.lang.String[] events)
        Wait for a condition.
      • waitForCondition

        IFuture<java.lang.Void> waitForCondition​(ICondition cond,
                                                 java.lang.String[] events,
                                                 long timeout)
        Wait for a condition.