public final class TaggingStateMachine<S,T> extends Object implements StateMachine<S,T,TaggedValue<S,T>>
| Modifier and Type | Method and Description |
|---|---|
Transition<S,TaggedValue<S,T>> |
apply(S state,
T input)
Apply the given input to the given state, returning a transition to a new state with 0 or more outputs.
|
S |
getInitialState() |
boolean |
isTerminal(S state)
Test whether a given state is terminal and stream traversal should stop.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, create, finish, runner, runnerWithpublic Transition<S,TaggedValue<S,T>> apply(S state, T input)
StateMachineapply in interface StateMachine<S,T,TaggedValue<S,T>>state - The state to transition from.input - The input to apply to the state.public boolean isTerminal(S state)
StateMachineisTerminal in interface StateMachine<S,T,TaggedValue<S,T>>state - The state to test.public S getInitialState()
getInitialState in interface StateMachine<S,T,TaggedValue<S,T>>Copyright © 2020. All rights reserved.