Module logicng

Interface GraphicalRepresentationWriter

  • All Known Implementing Classes:
    GraphicalDotWriter, GraphicalMermaidWriter

    public interface GraphicalRepresentationWriter
    An interface for writers of graphical representations of formulas, BDDs, and graphs.
    Since:
    2.4.0
    Version:
    2.4.0
    • Method Detail

      • write

        void write​(Writer writer,
                   GraphicalRepresentation representation)
            throws IOException
        Writes a given graphical representation with the given writer.
        Parameters:
        writer - the writer
        representation - the representation to write
        Throws:
        IOException - if there is a problem during writing
      • write

        default void write​(String fileName,
                           GraphicalRepresentation representation)
                    throws IOException
        Writes a given graphical representation to a file with the given file name.
        Parameters:
        fileName - the file name for the output file
        representation - the representation to write
        Throws:
        IOException - if there is a problem during writing the file
      • write

        default void write​(File file,
                           GraphicalRepresentation representation)
                    throws IOException
        Writes a given graphical representation to a given file.
        Parameters:
        file - the file for the output
        representation - the representation to write
        Throws:
        IOException - if there is a problem during writing the file
      • stringValue

        default String stringValue​(GraphicalRepresentation representation)
        Returns the string value of this writer's graphical representation.
        Parameters:
        representation - the representation
        Returns:
        the string value of the representation