- java.lang.Object
-
- io.github.interacto.fsm.OutputStateImpl<E>
-
- io.github.interacto.fsm.StdState<E>
-
- Type Parameters:
E- The type of events the FSM processes.
- All Implemented Interfaces:
InputState<E>,OutputState<E>,State<E>
public class StdState<E> extends OutputStateImpl<E> implements InputState<E>
An FSM state. A standard state can compose an FSM. They do not start, stop, cancel an FSM. They accept input and ouptut events.
-
-
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 voidenter()Actions done while entering this state.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, 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.
-
exit
public void exit()
Description copied from interface:OutputStateActions done when a transition of the state is executed so that this state is left.- Specified by:
exitin interfaceOutputState<E>
-
getName
public String getName()
-
getFSM
public FSM<E> getFSM()
-
-