public class GoalListenerForMetaEvents extends java.lang.Object implements GoalListener
GoalListener.FinishStates, GoalListener.GoalStates
Modifier and Type | Field and Description |
---|---|
private TransitionSystem |
ts |
Constructor and Description |
---|
GoalListenerForMetaEvents(TransitionSystem ts) |
Modifier and Type | Method and Description |
---|---|
private void |
generateGoalStateEvent(Literal goal,
Trigger.TEType type,
GoalListener.GoalStates state,
java.lang.String reason) |
void |
goalFailed(Trigger goal)
method called when a goal is failed
|
void |
goalFinished(Trigger goal,
GoalListener.FinishStates result)
method called when a goal is (un)successfully finished
|
void |
goalResumed(Trigger goal)
called when a suspended goal is resumed
|
void |
goalStarted(Event goal)
method called when a new goal is produced by operator !
|
void |
goalSuspended(Trigger goal,
java.lang.String reason)
method called when a goal is suspended (waiting action on the environment or due to internal actions like .wait and .suspend)
|
private TransitionSystem ts
public GoalListenerForMetaEvents(TransitionSystem ts)
public void goalStarted(Event goal)
GoalListener
goalStarted
in interface GoalListener
public void goalFailed(Trigger goal)
GoalListener
goalFailed
in interface GoalListener
public void goalFinished(Trigger goal, GoalListener.FinishStates result)
GoalListener
goalFinished
in interface GoalListener
public void goalResumed(Trigger goal)
GoalListener
goalResumed
in interface GoalListener
public void goalSuspended(Trigger goal, java.lang.String reason)
GoalListener
goalSuspended
in interface GoalListener
private void generateGoalStateEvent(Literal goal, Trigger.TEType type, GoalListener.GoalStates state, java.lang.String reason)