- java.lang.Object
-
- io.github.interacto.fsm.OutputStateImpl<E>
-
- io.github.interacto.fsm.InitState<E>
-
- Type Parameters:
E- The type of events the FSM processes.
- All Implemented Interfaces:
OutputState<E>,State<E>
public class InitState<E> extends OutputStateImpl<E>
An FSM state. An initial state is the unique state that can start an FSM.
-
-
Field Summary
Fields Modifier and Type Field Description protected FSM<E>fsmprotected Stringname-
Fields inherited from class io.github.interacto.fsm.OutputStateImpl
transitions
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexit()Actions done when a transition of the state is executed so that this state is left.FSM<E>getFSM()StringgetName()StringtoString()-
Methods inherited from class io.github.interacto.fsm.OutputStateImpl
addTransition, getTransitions, uninstall
-
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.OutputState
process
-
Methods inherited from interface io.github.interacto.fsm.State
checkStartingState, getFSM, getName
-
-
-
-
Method Detail
-
exit
public void exit() throws CancelFSMExceptionDescription copied from interface:OutputStateActions done when a transition of the state is executed so that this state is left.- Throws:
CancelFSMException- If leaving the state leads to a cancelling of the FSM execution.
-
getName
public String getName()
-
getFSM
public FSM<E> getFSM()
-
-