Interface IFinishableElement<E>

All Known Subinterfaces:
IGoal, IPlan
All Known Implementing Classes:
RFinishableElement, RGoal, RPlan

public interface IFinishableElement<E>
Interface for finishable elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addListener(jadex.future.IResultListener<E> listener)
    Add a new listener to get notified when the goal is finished.
    Get the exception.
    boolean
    Test if element is failed.
    boolean
    Test if goal is finished.
    boolean
    Test if element is succeeded.
    void
    removeListener(jadex.future.IResultListener<E> listener)
    Remove a listener.
  • Method Details

    • addListener

      void addListener(jadex.future.IResultListener<E> listener)
      Add a new listener to get notified when the goal is finished.
      Parameters:
      listener - The listener.
    • removeListener

      void removeListener(jadex.future.IResultListener<E> listener)
      Remove a listener.
      Parameters:
      listener - The listener.
    • getException

      Exception getException()
      Get the exception.
      Returns:
      The exception.
    • isSucceeded

      boolean isSucceeded()
      Test if element is succeeded.
      Returns:
      True, if is succeeded.
    • isFailed

      boolean isFailed()
      Test if element is failed.
      Returns:
      True, if is failed.
    • isFinished

      boolean isFinished()
      Test if goal is finished.
      Returns:
      True, if is finished.