Class TAFParsers
java.lang.Object
net.automatalib.serialization.taf.parser.TAFParsers
Facade for TAF (textual automaton format) parsing. This class provides several static methods to access
InputModelDeserializers for TAF descriptions of DFAs and MealyMachines.-
Method Summary
Modifier and TypeMethodDescriptionstatic InputModelDeserializer<String,FiniteAlphabetAutomaton<?, String, ?>> any()Constructs anInputModelDeserializerthat reads either aDFAor aMealyMachinedescription and writes it into aFiniteAlphabetAutomaton.static InputModelDeserializer<String,CompactDFA<String>> dfa()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.static InputModelDeserializer<String,CompactMealy<String, String>> mealy()Constructs anInputModelDeserializerthat reads aMealyMachinedescription and writes it into aCompactMealy.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.
-
Method Details
-
dfa
Constructs anInputModelDeserializerthat reads aDFAdescription and writes it into aCompactDFA. Convenience method fordfa(AutomatonCreator).- Returns:
- an
InputModelDeserializerthat reads aDFAdescription - See Also:
-
dfa
public static <S,A extends MutableDFA<S, InputModelDeserializer<String,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
Constructs anInputModelDeserializerthat reads aMealyMachinedescription and writes it into aCompactMealy. Convenience method formealy(AutomatonCreator).- Returns:
- an
InputModelDeserializerthat reads aMealyMachinedescription - See Also:
-
mealy
public static <S,T, InputModelDeserializer<String,A extends MutableMealyMachine<S, String, T, 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
Constructs anInputModelDeserializerthat reads either aDFAor aMealyMachinedescription and writes it into aFiniteAlphabetAutomaton.- Returns:
- an
InputModelDeserializerthat reads either aDFAor aMealyMachinedescription - See Also:
-