Package jason.asSemantics
Class GoalListenerForMetaEvents
java.lang.Object
jason.asSemantics.GoalListenerForMetaEvents
- All Implemented Interfaces:
GoalListener
,java.io.Serializable
public class GoalListenerForMetaEvents extends java.lang.Object implements GoalListener
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface jason.asSemantics.GoalListener
GoalListener.GoalStates
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private TransitionSystem
ts
-
Constructor Summary
Constructors Constructor Description GoalListenerForMetaEvents(TransitionSystem ts)
-
Method Summary
Modifier and Type Method Description private void
generateGoalStateEvent(Literal goal, Trigger.TEType type, GoalListener.GoalStates state, Term reason)
void
goalExecuting(Trigger goal, Term reason)
called when a suspended goal is executingvoid
goalFailed(Trigger goal, Term reason)
method called when a goal is failedvoid
goalFinished(Trigger goal, GoalListener.GoalStates result)
method called when a goal is (un)successfully finishedvoid
goalResumed(Trigger goal, Term reason)
called when a suspended goal is resumedvoid
goalStarted(Event goal)
method called when a new goal is produced by operator !void
goalSuspended(Trigger goal, Term reason)
method called when a goal is suspended (by internal action .suspend, for instance)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)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
ts
-
-
Constructor Details
-
GoalListenerForMetaEvents
-
-
Method Details
-
goalStarted
Description copied from interface:GoalListener
method called when a new goal is produced by operator !- Specified by:
goalStarted
in interfaceGoalListener
-
goalFailed
Description copied from interface:GoalListener
method called when a goal is failed- Specified by:
goalFailed
in interfaceGoalListener
-
goalFinished
Description copied from interface:GoalListener
method called when a goal is (un)successfully finished- Specified by:
goalFinished
in interfaceGoalListener
-
goalExecuting
Description copied from interface:GoalListener
called when a suspended goal is executing- Specified by:
goalExecuting
in interfaceGoalListener
-
goalResumed
Description copied from interface:GoalListener
called when a suspended goal is resumed- Specified by:
goalResumed
in interfaceGoalListener
-
goalSuspended
Description copied from interface:GoalListener
method called when a goal is suspended (by internal action .suspend, for instance)- Specified by:
goalSuspended
in interfaceGoalListener
-
goalWaiting
Description copied from interface:GoalListener
method called when a goal is waiting something (waiting action on the environment or due to internal actions like .waitd)- Specified by:
goalWaiting
in interfaceGoalListener
-
generateGoalStateEvent
private void generateGoalStateEvent(Literal goal, Trigger.TEType type, GoalListener.GoalStates state, Term reason)
-