Class TAFWriters
- java.lang.Object
-
- net.automatalib.serialization.taf.writer.TAFWriters
-
public final class TAFWriters extends Object
Facade for TAF (textual automaton format) writing. This class provides several static methods to accessInputModelSerializer
s for TAF descriptions ofDFA
s andMealyMachine
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <S,I,T,A extends FiniteAlphabetAutomaton<S,I,T>>
InputModelSerializer<I,A>any()
Returns anInputModelSerializer
for writing genericFiniteAlphabetAutomaton
s.static <S,I,A extends DFA<S,I>>
InputModelSerializer<I,A>dfa()
Returns anInputModelSerializer
for writingDFA
s.static <S,I,T,O,A extends MealyMachine<S,I,T,O>>
InputModelSerializer<I,A>mealy()
Returns anInputModelSerializer
for writingMealyMachine
s.
-
-
-
Method Detail
-
dfa
public static <S,I,A extends DFA<S,I>> InputModelSerializer<I,A> dfa()
Returns anInputModelSerializer
for writingDFA
s.- Type Parameters:
S
- state typeI
- input symbol typeA
- (concrete) automaton type- Returns:
- an
InputModelSerializer
for writingDFA
s
-
mealy
public static <S,I,T,O,A extends MealyMachine<S,I,T,O>> InputModelSerializer<I,A> mealy()
Returns anInputModelSerializer
for writingMealyMachine
s.- Type Parameters:
S
- state typeI
- input symbol typeT
- transition typeO
- output symbol typeA
- (concrete) automaton type- Returns:
- an
InputModelSerializer
for writingMealyMachine
s
-
any
public static <S,I,T,A extends FiniteAlphabetAutomaton<S,I,T>> InputModelSerializer<I,A> any()
Returns anInputModelSerializer
for writing genericFiniteAlphabetAutomaton
s. During serialization, the writer checks whether the given automaton is either aDFA
or aMealyMachine
and delegates to the respective serializers.- Type Parameters:
S
- state typeI
- input symbol typeT
- transition typeA
- (concrete) automaton type- Returns:
- an
InputModelSerializer
for writingFiniteAlphabetAutomaton
s - See Also:
dfa()
,mealy()
-
-