|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsm.SMWatcher
A 'watcher' to track a state machine. It registers listeners for SMEvents (when the state machine is attached to an interactive object, detached from an interactive object, is suspended, is resumed, is restarted, changes state or passes a transition looping in the current state).
Constructor Summary | |
SMWatcher(StateMachine stateMachine)
Builds a 'watcher' for a state machine. |
Method Summary | |
void |
addSMEventListener(SMStateMachineEventListener l)
Registers a listener for SMEvents. |
void |
removeSMEventListener(SMStateMachineEventListener 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 SMWatcher(StateMachine stateMachine)
stateMachine
- The state machine to watch.Method Detail |
public void addSMEventListener(SMStateMachineEventListener l)
l
- The listener to register.public void removeSMEventListener(SMStateMachineEventListener l)
l
- The listener to remove.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |