org.dishevelled.piccolo.identify
Class StateMachineSupport

java.lang.Object
  extended by org.dishevelled.piccolo.identify.StateMachineSupport

final class StateMachineSupport
extends Object

State machine support class, meant to be delegated to. Provided an instance of a state machine, this class manages a state machine executor, allows delegators to fire state machine events, and responds to transition entry events by invoking methods on the delegating class via reflection. Most methods on this class fail silently instead of throwing state machine- or reflection-specific exceptions.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Constructor Summary
StateMachineSupport(Object delegator, SCXML stateMachine)
          Create a new state machine support class to be delegated to by the specified delegator with the specified state machine.
 
Method Summary
(package private)  void fireStateMachineEvent(String eventName)
          Fire an event with the specified event name on the state machine for this state machine support class (fails silently).
(package private)  void resetStateMachine()
          Reset the state machine for this state machine support class to its "initial" configuration (fails silently).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMachineSupport

StateMachineSupport(Object delegator,
                    SCXML stateMachine)
Create a new state machine support class to be delegated to by the specified delegator with the specified state machine.

Parameters:
delegator - object delegating to this state machine support class, must not be null
stateMachine - state machine for this support class, must not be null
Method Detail

resetStateMachine

void resetStateMachine()
Reset the state machine for this state machine support class to its "initial" configuration (fails silently).


fireStateMachineEvent

void fireStateMachineEvent(String eventName)
Fire an event with the specified event name on the state machine for this state machine support class (fails silently).

Parameters:
eventName - event name, must not be null


Copyright (c) 2007-2011 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).