public abstract class MealyFilter extends Object
Modifier and Type | Method and Description |
---|---|
static <I,O> CompactMealy<I,O> |
filterByOutput(MealyMachine<?,I,?,O> in,
Alphabet<I> inputs,
Predicate<? super O> outputPred) |
static <S1,T1,S2,I,O> |
filterByOutput(MealyMachine<S1,I,T1,O> in,
Collection<? extends I> inputs,
MutableMealyMachine<S2,I,?,O> out,
Predicate<? super O> outputPred) |
static <I,O> CompactMealy<I,O> |
pruneTransitionsWithOutput(MealyMachine<?,I,?,O> in,
Alphabet<I> inputs,
Collection<? super O> outputs)
Returns a Mealy machine with all transitions removed that have one of the specified output values.
|
static <I,O> CompactMealy<I,O> |
pruneTransitionsWithOutput(MealyMachine<?,I,?,O> in,
Alphabet<I> inputs,
O... outputs)
Returns a Mealy machine with all transitions removed that have one of the specified output values.
|
static <I,O> CompactMealy<I,O> |
retainTransitionsWithOutput(MealyMachine<?,I,?,O> in,
Alphabet<I> inputs,
Collection<? super O> outputs)
Returns a Mealy machine with all transitions removed that have an output not among the specified values.
|
static <I,O> CompactMealy<I,O> |
retainTransitionsWithOutput(MealyMachine<?,I,?,O> in,
Alphabet<I> inputs,
O... outputs)
Returns a Mealy machine with all transitions removed that have an output not among the specified values.
|
@SafeVarargs public static <I,O> CompactMealy<I,O> pruneTransitionsWithOutput(MealyMachine<?,I,?,O> in, Alphabet<I> inputs, O... outputs)
This is a convenience varargs overload of pruneTransitionsWithOutput(MealyMachine, Alphabet, Collection)
.
in
- the input Mealy machineinputs
- the input alphabetoutputs
- the outputs to removepublic static <I,O> CompactMealy<I,O> pruneTransitionsWithOutput(MealyMachine<?,I,?,O> in, Alphabet<I> inputs, Collection<? super O> outputs)
in
- the input Mealy machineinputs
- the input alphabetoutputs
- the outputs to remove@SafeVarargs public static <I,O> CompactMealy<I,O> retainTransitionsWithOutput(MealyMachine<?,I,?,O> in, Alphabet<I> inputs, O... outputs)
This is a convenience varargs overload of retainTransitionsWithOutput(MealyMachine, Alphabet, Collection)
.
in
- the input Mealy machineinputs
- the input alphabetoutputs
- the outputs to retainpublic static <I,O> CompactMealy<I,O> retainTransitionsWithOutput(MealyMachine<?,I,?,O> in, Alphabet<I> inputs, Collection<? super O> outputs)
in
- the input Mealy machineinputs
- the input alphabetoutputs
- the outputs to retainpublic static <I,O> CompactMealy<I,O> filterByOutput(MealyMachine<?,I,?,O> in, Alphabet<I> inputs, Predicate<? super O> outputPred)
public static <S1,T1,S2,I,O> Mapping<S1,S2> filterByOutput(MealyMachine<S1,I,T1,O> in, Collection<? extends I> inputs, MutableMealyMachine<S2,I,?,O> out, Predicate<? super O> outputPred)
Copyright © 2015. All rights reserved.