public final class StateLocalInputMealyUtil extends Object
StateLocalInputMealyMachine
s.Modifier and Type | Method and Description |
---|---|
static <I,O> StateLocalInputMealyMachine<Integer,I,?,OutputAndLocalInputs<I,O>> |
partialToObservableOutput(StateLocalInputMealyMachine<Integer,I,?,O> reference)
Convenience method for
partialToObservableOutput(StateLocalInputMealyMachine, Object) , where the size of
the given reference is used as the new sink state. |
static <S,I,T,O> StateLocalInputMealyMachine<S,I,?,OutputAndLocalInputs<I,O>> |
partialToObservableOutput(StateLocalInputMealyMachine<S,I,T,O> reference,
S sink)
Transforms a (potentially partial)
StateLocalInputMealyMachine to a complete StateLocalInputMealyMachine that explicitly outputs the available input symbols on the transition outputs. |
public static <I,O> StateLocalInputMealyMachine<Integer,I,?,OutputAndLocalInputs<I,O>> partialToObservableOutput(StateLocalInputMealyMachine<Integer,I,?,O> reference)
partialToObservableOutput(StateLocalInputMealyMachine, Object)
, where the size of
the given reference is used as the new sink state.I
- input symbol typeO
- output symbol typereference
- the (partial) mealy to transformpartialToObservableOutput(StateLocalInputMealyMachine, Object)
.public static <S,I,T,O> StateLocalInputMealyMachine<S,I,?,OutputAndLocalInputs<I,O>> partialToObservableOutput(StateLocalInputMealyMachine<S,I,T,O> reference, S sink)
StateLocalInputMealyMachine
to a complete StateLocalInputMealyMachine
that explicitly outputs the available input symbols on the transition outputs. This
this primarily useful if one can only use the MealyMachine
interpretation of the result.
The returned automaton is a wrapper of the original reference automaton. As such, changes to the reference will also be reflected in the returned automaton.
S
- state typeI
- input symbol typeT
- transition typeO
- output symbol type (of the reference)reference
- the (partial) mealy to transformsink
- the sink state that should be used to collect all undefined transitions of the reference automaton.null
) which
transforms the information of the available input symbols to transition outputs.Copyright © 2019. All rights reserved.