- java.lang.Object
-
- io.github.interacto.fsm.Transition<E>
-
- Direct Known Subclasses:
SubFSMTransition,TimeoutTransition,WidgetTransition
public abstract class Transition<E> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected OutputState<E>srcprotected InputState<E>tgt
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransition(OutputState<E> srcState, InputState<E> tgtState)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleanaccept(E event)protected voidaction(E event)Optional<InputState<E>>execute(E event)abstract Set<Object>getAcceptedEvents()protected abstract booleanisGuardOK(E event)voiduninstall()Clean the transition when not used anymore.
-
-
-
Field Detail
-
src
protected final OutputState<E> src
-
tgt
protected final InputState<E> tgt
-
-
Constructor Detail
-
Transition
protected Transition(OutputState<E> srcState, InputState<E> tgtState)
-
-
Method Detail
-
execute
public Optional<InputState<E>> execute(E event) throws CancelFSMException
- Throws:
CancelFSMException
-
action
protected void action(E event)
-
accept
protected abstract boolean accept(E event)
-
isGuardOK
protected abstract boolean isGuardOK(E event)
-
uninstall
public void uninstall()
Clean the transition when not used anymore.
-
-