| Constructor and Description |
|---|
FSMBuilder(S[] possibleStates) |
| Modifier and Type | Method and Description |
|---|---|
Definition<S,C,D> |
build()
Build the definition of the state machine and validate that all is well.
|
StateBuilderImpl<S,C,D> |
withFinalState(S state) |
StateBuilderImpl<S,C,D> |
withInitialState(S state) |
StateBuilderImpl<S,C,D> |
withState(S state) |
StateBuilder<S,C,D> |
withTransientState(S state) |
public FSMBuilder(S[] possibleStates)
public StateBuilderImpl<S,C,D> withInitialState(S state)
public StateBuilderImpl<S,C,D> withFinalState(S state)
public StateBuilderImpl<S,C,D> withState(S state) throws StateAlreadyDefinedException
StateAlreadyDefinedExceptionpublic StateBuilder<S,C,D> withTransientState(S state) throws StateAlreadyDefinedException
StateAlreadyDefinedExceptionpublic Definition<S,C,D> build() throws FSMBuilderException
FSMBuilderException - in case any issues with the FSM is detected.Copyright © 2019. All rights reserved.