Package jason.asSemantics
Interface GoalListener
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
GoalListenerForMetaEvents
public interface GoalListener
extends java.io.Serializable
call-back interface to be notified about events on goals
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GoalListener.GoalStates
-
Method Summary
Modifier and Type Method Description default void
goalExecuting(Trigger goal, Term reason)
called when a suspended goal is executingdefault void
goalFailed(Trigger goal, Term reason)
method called when a goal is faileddefault void
goalFinished(Trigger goal, GoalListener.GoalStates result)
method called when a goal is (un)successfully finisheddefault void
goalResumed(Trigger goal, Term reason)
called when a suspended goal is resumeddefault void
goalStarted(Event goal)
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
method called when a new goal is produced by operator ! -
goalFinished
method called when a goal is (un)successfully finished -
goalFailed
method called when a goal is failed -
goalSuspended
method called when a goal is suspended (by internal action .suspend, for instance) -
goalWaiting
method called when a goal is waiting something (waiting action on the environment or due to internal actions like .waitd) -
goalResumed
called when a suspended goal is resumed -
goalExecuting
called when a suspended goal is executing
-