org.jboss.util.state
Interface StateMachine.Acceptable

All Known Implementing Classes:
AcceptableState, StateAdapter
Enclosing interface:
StateMachine

public static interface StateMachine.Acceptable

Provides the interface for dynmaic state acceptability.

State instances which implement this interface will be asked if a state is acceptable before looking at the current states acceptable state list.


Method Summary
 boolean isAcceptable(State state)
          Check if the given state is an acceptable transition from this state.
 

Method Detail

isAcceptable

public boolean isAcceptable(State state)
Check if the given state is an acceptable transition from this state.

Parameters:
state - The state to determine acceptability; must not be null.
Returns:
True if the state is acceptable, else false.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.