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 accessInputModelSerializers for TAF descriptions ofDFAs andMealyMachines.
-
-
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 anInputModelSerializerfor writing genericFiniteAlphabetAutomatons.static <S,I,A extends DFA<S,I>>
InputModelSerializer<I,A>dfa()Returns anInputModelSerializerfor writingDFAs.static <S,I,T,O,A extends MealyMachine<S,I,T,O>>
InputModelSerializer<I,A>mealy()Returns anInputModelSerializerfor writingMealyMachines.
-
-
-
Method Detail
-
dfa
public static <S,I,A extends DFA<S,I>> InputModelSerializer<I,A> dfa()
Returns anInputModelSerializerfor writingDFAs.- Type Parameters:
S- state typeI- input symbol typeA- (concrete) automaton type- Returns:
- an
InputModelSerializerfor writingDFAs
-
mealy
public static <S,I,T,O,A extends MealyMachine<S,I,T,O>> InputModelSerializer<I,A> mealy()
Returns anInputModelSerializerfor writingMealyMachines.- Type Parameters:
S- state typeI- input symbol typeT- transition typeO- output symbol typeA- (concrete) automaton type- Returns:
- an
InputModelSerializerfor writingMealyMachines
-
any
public static <S,I,T,A extends FiniteAlphabetAutomaton<S,I,T>> InputModelSerializer<I,A> any()
Returns anInputModelSerializerfor writing genericFiniteAlphabetAutomatons. During serialization, the writer checks whether the given automaton is either aDFAor aMealyMachineand delegates to the respective serializers.- Type Parameters:
S- state typeI- input symbol typeT- transition typeA- (concrete) automaton type- Returns:
- an
InputModelSerializerfor writingFiniteAlphabetAutomatons - See Also:
dfa(),mealy()
-
-