Class TAFParsers
- java.lang.Object
-
- net.automatalib.serialization.taf.parser.TAFParsers
-
public final class TAFParsers extends Object
Facade for TAF (textual automaton format) parsing. This class provides several static methods to accessInputModelDeserializers for TAF descriptions ofDFAs andMealyMachines.
-
-
Method Summary
-
-
-
Method Detail
-
dfa
public static InputModelDeserializer<String,CompactDFA<String>> dfa()
Constructs anInputModelDeserializerthat reads aDFAdescription and writes it into aCompactDFA. Convenience method fordfa(AutomatonCreator).- Returns:
- an
InputModelDeserializerthat reads aDFAdescription - See Also:
dfa(AutomatonCreator)
-
dfa
public static <S,A extends MutableDFA<S,String>> InputModelDeserializer<String,A> dfa(AutomatonCreator<A,String> creator)
Constructs anInputModelDeserializerthat reads aDFAdescription and writes it into a providedMutableDFA.- Type Parameters:
S- state typeA- (concrete) automaton type- Parameters:
creator- the creator to construct the concrete automaton instance- Returns:
- an
InputModelDeserializerthat reads aDFAdescription
-
mealy
public static InputModelDeserializer<String,CompactMealy<String,String>> mealy()
Constructs anInputModelDeserializerthat reads aMealyMachinedescription and writes it into aCompactMealy. Convenience method formealy(AutomatonCreator).- Returns:
- an
InputModelDeserializerthat reads aMealyMachinedescription - See Also:
mealy(AutomatonCreator)
-
mealy
public static <S,T,A extends MutableMealyMachine<S,String,T,String>> InputModelDeserializer<String,A> mealy(AutomatonCreator<A,String> creator)
Constructs anInputModelDeserializerthat reads aMealyMachinedescription and writes it into a providedMutableMealyMachine.- Type Parameters:
S- state typeT- transition typeA- (concrete) automaton type- Parameters:
creator- the creator to construct the concrete automaton instance- Returns:
- an
InputModelDeserializerthat reads aMealyMachinedescription
-
any
public static InputModelDeserializer<String,FiniteAlphabetAutomaton<?,String,?>> any()
Constructs anInputModelDeserializerthat reads either aDFAor aMealyMachinedescription and writes it into aFiniteAlphabetAutomaton.- Returns:
- an
InputModelDeserializerthat reads either aDFAor aMealyMachinedescription - See Also:
dfa(),mealy()
-
-