Class Mealy2ETFWriterIO<I,​O>

    • Constructor Detail

      • Mealy2ETFWriterIO

        public Mealy2ETFWriterIO()
    • Method Detail

      • writeEdge

        protected void writeEdge​(PrintWriter pw)
        Write the edge type. An edge has two edge labels: input of type input, and output of type output.
        Specified by:
        writeEdge in class AbstractETFWriter<I,​MealyMachine<?,​I,​?,​O>>
        Parameters:
        pw - the Writer.
      • writeETF

        protected void writeETF​(PrintWriter pw,
                                MealyMachine<?,​I,​?,​O> mealy,
                                Alphabet<I> inputs)
        Write ETF parts specific for Mealy machines with IO semantics.

        Writes: - the initial state, - the valuations for the state ids, - the transitions, - the input alphabet (for the input labels on edges), - the output alphabet (for the output labels on edges).

        Specified by:
        writeETF in class AbstractETFWriter<I,​MealyMachine<?,​I,​?,​O>>
        Parameters:
        pw - the Writer.
        mealy - the Mealy machine to write.
        inputs - the alphabet.
      • writeModel

        public void writeModel​(OutputStream os,
                               MealyMachine<?,​I,​?,​O> 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