Closed windmueller closed 10 years ago
It is possible to obtain a filtered version of a Mealy machine through methods provided by the MealyFilter
class (package net.automatalib.util.automata.transout
, artifact automata-util
). The usage is roughly as follows:
MealyMachine<?,I,?,O> originalMealy = ...;
Alphabet<I> inputAlphabet = ...;
MealyMachine<?,I,?,O> prunedMealy = MealyFilter.pruneTransitionsWithOutput(originalMealy, inputAlphabet, output1, output2, ...);
Please let me know if this fits your needs and works as expected.
Thank you, this works as expected.
It should be possible to hide certain transitions from a DOT file, e.g. error branches.