-
- Type Parameters:
E- The type of events the FSM processes.
- All Known Subinterfaces:
InputState<E>,OutputState<E>
- All Known Implementing Classes:
CancellingState,InitState,OutputStateImpl,StdState,TerminalState
public interface State<E>The base type of an FSM state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckStartingState()Checks whether the starting state of the fsm is this state.FSM<E>getFSM()StringgetName()default voiduninstall()Uninstall (ie flushes) the state.
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- The name of the state.
-
checkStartingState
default void checkStartingState() throws CancelFSMExceptionChecks whether the starting state of the fsm is this state. In this case, the fsm is notified about the starting of the FSM.- Throws:
CancelFSMException- @throws CancelFSMException If the interaction is cancelled by a handler during the starting step.
-
uninstall
default void uninstall()
Uninstall (ie flushes) the state. Useful to clear data. The state must not be used after that.
-
-