org.progeeks.fsm
Interface StateHandler

All Known Implementing Classes:
FiniteStateMachine, ForwardingTransitionHandler, TransitionHandler

public interface StateHandler

Handles a message type for a given state. These are the pluggable entities within a FiniteStateMachine that handle the actual message processing.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Method Summary
 int handleMessage(int state, int message, java.lang.Object stateInfo)
          Handles the specified message.
 

Method Detail

handleMessage

int handleMessage(int state,
                  int message,
                  java.lang.Object stateInfo)
Handles the specified message.

Parameters:
state - The current state the called this handler.
message - The numeric message to be handled.
stateInfo - The application specific data on which the handler can operate if necessary.


Copyright © 2002-2003 Paul Speed. All Rights Reserved.