com.atomikos.finitestates
Interface StateMutable

All Superinterfaces:
Stateful
All Known Subinterfaces:
FSM
All Known Implementing Classes:
FSMImp

public interface StateMutable
extends Stateful

Abstract representation of an object that has a state and this state can be set. A state can be anything.


Method Summary
 void setState(Object s)
          To set a new state.
 
Methods inherited from interface com.atomikos.finitestates.Stateful
getState
 

Method Detail

setState

void setState(Object s)
              throws IllegalStateException
To set a new state.

Parameters:
s - The new state.
Throws:
IllegalStateException - if the new state transition to the new state is not allowed.


Copyright © 2011. All Rights Reserved.