- java.lang.Object
-
- io.github.interacto.fsm.FSM<E>
-
- io.github.interacto.fsm.ConcurrentFSM<E,F>
-
-
Field Summary
-
Fields inherited from class io.github.interacto.fsm.FSM
currentState, currentStatePublisher, currentSubFSM, currentTimeout, eventsToProcess, handlers, initState, inner, logger, started, startingState, states
-
-
Constructor Summary
Constructors Constructor Description ConcurrentFSM(Set<F> fsms)Creates the FSM
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<F>getConccurFSMs()booleanisStarted()voidlog(boolean log)Logs (or not) information about the execution of the FSM.booleanprocess(E event)Processes the provided event to run the FSM.voiduninstall()Uninstall the FSM.-
Methods inherited from class io.github.interacto.fsm.FSM
addHandler, addRemaningEventsToProcess, addState, checkTimeoutTransition, currentState, enterStdState, fullReinit, getCurrentState, getStates, isInner, notifyHandlerOnCancel, notifyHandlerOnStart, notifyHandlerOnStop, notifyHandlerOnUpdate, onCancelling, onStarting, onTerminating, onTimeout, onUpdating, processRemainingEvents, reinit, removeHandler, setCurrentState, setInner, stopCurrentTimeout
-
-
-
-
Constructor Detail
-
ConcurrentFSM
public ConcurrentFSM(Set<F> fsms)
Creates the FSM- Parameters:
fsms- The concurrent FSMs.- Throws:
IllegalArgumentException- If the number of FSMs is lower than 2.
-
-