- java.lang.Object
-
- io.github.interacto.fsm.TerminalState<E>
-
- Type Parameters:
E- The type of events the FSM processes.
- All Implemented Interfaces:
InputState<E>,State<E>
public class TerminalState<E> extends Object implements InputState<E>
An FSM state. A terminal state ends normally an FSM.
-
-
Constructor Summary
Constructors Constructor Description TerminalState(FSM<E> stateMachine, String stateName)Creates the terminal state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter()Actions done while entering this state.FSM<E>getFSM()StringgetName()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.interacto.fsm.State
checkStartingState, getFSM, getName, uninstall
-
-
-
-
Method Detail
-
enter
public void enter() throws CancelFSMExceptionDescription copied from interface:InputStateActions done while entering this state.- Specified by:
enterin interfaceInputState<E>- Throws:
CancelFSMException- If entering the state leads to a cancelling of the FSM execution.
-
getName
public String getName()
-
getFSM
public FSM<E> getFSM()
-
-