public class MooreBuilderImpl<S,I,T,O,A extends MutableMooreMachine<S,? super I,T,? super O>> extends Object
Modifier and Type | Field and Description |
---|---|
protected A |
automaton |
protected List<I> |
currentInputs |
protected List<S> |
currentStates |
protected TP |
currentTransProp |
Modifier and Type | Method and Description |
---|---|
A |
create() |
void |
from(Object stateId) |
void |
from(Object firstStateId,
Object... otherStateIds) |
protected S |
getState(Object stateId) |
protected List<S> |
getStates(Object firstStateId,
Object... otherStateIds) |
void |
loop() |
void |
on(I input) |
void |
on(I firstInput,
I... otherInputs) |
void |
to(Object stateId) |
void |
withInitial(Object stateId) |
void |
withInitial(Object stateId,
O output) |
void |
withOutput(Object stateId,
O output) |
void |
withProperty(TP transProp) |
void |
withStateProperty(SP stateProperty,
Object stateId) |
protected final A extends MutableAutomaton<S,? super I,T,? super SP,? super TP> automaton
protected List<S> currentStates
protected List<I> currentInputs
protected TP currentTransProp
public void withInitial(Object stateId)
public void from(Object stateId)
protected S getState(Object stateId)
public void on(I input)
@SafeVarargs public final void on(I firstInput, I... otherInputs)
public void withProperty(TP transProp)
public void to(Object stateId)
public void loop()
public A create()
public void withStateProperty(SP stateProperty, Object stateId)
Copyright © 2019. All rights reserved.