|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lri.swingstates.debug.Watcher
public class Watcher
A 'watcher' to track a state machine. It registers listeners for StateMachineEvents, i.e.
when the state machine:
| Constructor Summary | |
|---|---|
Watcher(StateMachine stateMachine)
Builds a 'watcher' for a state machine. |
|
| Method Summary | |
|---|---|
void |
addSMEventListener(StateMachineEventListener l)
Registers a listener for StateMachineEvents. |
void |
fireSMInited()
Fires a StateMachineEvent to all registered listeners notifying them the state machine has just been inited. |
void |
fireSmReset(State previousState)
Fires a StateMachineEvent to all registered listeners notifying them the state machine has been restarted. |
void |
fireSmResumed()
Fires a StateMachineEvent to all registered listeners notifying them the state machine has been resumed. |
void |
fireSmSuspended()
Fires a StateMachineEvent to all registered listeners notifying them the state machine has been suspended. |
void |
fireStateChanged(Transition t,
State previousState,
State currentState)
Fires a StateMachineEvent to all registered listeners notifying them the state machine has passed in another state. |
void |
fireStateLooped(Transition t,
State state)
Fires a StateMachineEvent to all registered listeners notifying them the state machine has passed a transition but looped in its current state. |
void |
removeSMEventListener(StateMachineEventListener l)
Removes a listener for SMEvents. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Watcher(StateMachine stateMachine)
stateMachine - The state machine to watch.| Method Detail |
|---|
public void addSMEventListener(StateMachineEventListener l)
l - The listener to register.public void removeSMEventListener(StateMachineEventListener l)
l - The listener to remove.public void fireSmSuspended()
public void fireSmResumed()
public void fireSmReset(State previousState)
previousState - The active state before this machine being reset
public void fireStateChanged(Transition t,
State previousState,
State currentState)
t - The transition that has just been fired.previousState - The state before the transition.currentState - The current state (after the transition).
public void fireStateLooped(Transition t,
State state)
t - The transition that has just been fired.state - The current state.public void fireSMInited()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||