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 accessInputModelDeserializer
s for TAF descriptions ofDFA
s andMealyMachine
s.
-
-
Method Summary
-
-
-
Method Detail
-
dfa
public static InputModelDeserializer<String,CompactDFA<String>> dfa()
Constructs anInputModelDeserializer
that reads aDFA
description and writes it into aCompactDFA
. Convenience method fordfa(AutomatonCreator)
.- Returns:
- an
InputModelDeserializer
that reads aDFA
description - See Also:
dfa(AutomatonCreator)
-
dfa
public static <S,A extends MutableDFA<S,String>> InputModelDeserializer<String,A> dfa(AutomatonCreator<A,String> creator)
Constructs anInputModelDeserializer
that reads aDFA
description 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
InputModelDeserializer
that reads aDFA
description
-
mealy
public static InputModelDeserializer<String,CompactMealy<String,String>> mealy()
Constructs anInputModelDeserializer
that reads aMealyMachine
description and writes it into aCompactMealy
. Convenience method formealy(AutomatonCreator)
.- Returns:
- an
InputModelDeserializer
that reads aMealyMachine
description - 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 anInputModelDeserializer
that reads aMealyMachine
description 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
InputModelDeserializer
that reads aMealyMachine
description
-
any
public static InputModelDeserializer<String,FiniteAlphabetAutomaton<?,String,?>> any()
Constructs anInputModelDeserializer
that reads either aDFA
or aMealyMachine
description and writes it into aFiniteAlphabetAutomaton
.- Returns:
- an
InputModelDeserializer
that reads either aDFA
or aMealyMachine
description - See Also:
dfa()
,mealy()
-
-