Interface GoalListener

All Superinterfaces:
Serializable
All Known Implementing Classes:
GoalListenerForMetaEvents

public interface GoalListener extends Serializable
call-back interface to be notified about events on goals
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    goalExecuting(Trigger goal, Term reason)
    called when a suspended goal is executing
    default void
    goalFailed(Trigger goal, Term reason)
    method called when a goal is failed
    default void
    method called when a goal is (un)successfully finished
    default void
    goalResumed(Trigger goal, Term reason)
    called when a suspended goal is resumed
    default void
    method called when a new goal is produced by operator !
    default void
    goalSuspended(Trigger goal, Term reason)
    method called when a goal is suspended (by internal action .suspend, for instance)
    default void
    goalWaiting(Trigger goal, Term reason)
    method called when a goal is waiting something (waiting action on the environment or due to internal actions like .waitd)
  • Method Details

    • goalStarted

      default void goalStarted(Event goal)
      method called when a new goal is produced by operator !
    • goalFinished

      default void goalFinished(Trigger goal, GoalListener.GoalStates result)
      method called when a goal is (un)successfully finished
    • goalFailed

      default void goalFailed(Trigger goal, Term reason)
      method called when a goal is failed
    • goalSuspended

      default void goalSuspended(Trigger goal, Term reason)
      method called when a goal is suspended (by internal action .suspend, for instance)
    • goalWaiting

      default void goalWaiting(Trigger goal, Term reason)
      method called when a goal is waiting something (waiting action on the environment or due to internal actions like .waitd)
    • goalResumed

      default void goalResumed(Trigger goal, Term reason)
      called when a suspended goal is resumed
    • goalExecuting

      default void goalExecuting(Trigger goal, Term reason)
      called when a suspended goal is executing