org.apache.commons.scxml
Interface SCXMLListener

All Known Implementing Classes:
AbstractStateMachine.EntryListener, SimpleSCXMLListener, Tracer

public interface SCXMLListener

Listener interface for observable entities in the SCXML model. Observable entities include SCXML instances (subscribe to all entry, exit and transition notifications), State instances (subscribe to particular entry and exit notifications) and Transition instances (subscribe to particular transitions).


Method Summary
 void onEntry(TransitionTarget state)
          Handle the entry into a TransitionTarget.
 void onExit(TransitionTarget state)
          Handle the exit out of a TransitionTarget.
 void onTransition(TransitionTarget from, TransitionTarget to, Transition transition)
          Handle the transition.
 

Method Detail

onEntry

public void onEntry(TransitionTarget state)
Handle the entry into a TransitionTarget.

Parameters:
state - The TransitionTarget entered

onExit

public void onExit(TransitionTarget state)
Handle the exit out of a TransitionTarget.

Parameters:
state - The TransitionTarget exited

onTransition

public void onTransition(TransitionTarget from,
                         TransitionTarget to,
                         Transition transition)
Handle the transition.

Parameters:
from - The source TransitionTarget
to - The destination TransitionTarget
transition - The Transition taken


Copyright © 2005-2006 The Apache Software Foundation. All Rights Reserved.