com.atomikos.finitestates
Interface StateMutable<Status>
- All Superinterfaces:
- Stateful<Status>
- All Known Subinterfaces:
- FSM<Status>
- All Known Implementing Classes:
- FSMImp
public interface StateMutable<Status>
- extends Stateful<Status>
Abstract representation of an object that has a state and this state
can be set.
A state can be anything.
setState
void setState(Status 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 © 2014. All Rights Reserved.