Class DFA2ETFWriter<I>

    • Constructor Detail

      • DFA2ETFWriter

        public DFA2ETFWriter()
    • Method Detail

      • writeEdge

        protected void writeEdge​(PrintWriter pw)
        Writes the type of the edge. A DFA edge contains one label, named 'letter', of type 'letter'.
        Specified by:
        writeEdge in class AbstractETFWriter<I,​DFA<?,​I>>
        Parameters:
        pw - the Writer.
      • writeETF

        protected void writeETF​(PrintWriter pw,
                                DFA<?,​I> dfa,
                                Alphabet<I> inputs)
        Write DFA specific parts in the ETF.

        - initial state, - the valuations for the state 'id', - the letters in the alphabet, - the transitions, - the state labels (rejecting/accepting), - the mapping from states to state labels.

        Specified by:
        writeETF in class AbstractETFWriter<I,​DFA<?,​I>>
        Parameters:
        pw - the Writer.
        dfa - the DFA to write.
        inputs - the alphabet.
      • writeModel

        public void writeModel​(OutputStream os,
                               DFA<?,​I> model,
                               Alphabet<I> alphabet)
        Description copied from interface: InputModelSerializer
        Writes the model to the given output stream.

        Note: the output stream will not be closed.

        Parameters:
        os - the output stream to write to
        model - the model to write
        alphabet - the inputs of the model to which serialization should be limited
      • getInstance

        public static <I> DFA2ETFWriter<I> getInstance()