Module logicng

Class FormulaDotFileWriter


  • @Deprecated
    public final class FormulaDotFileWriter
    extends Object
    Deprecated.
    This legacy writer will be removed in LogicNG 3.0.0. For a more configurable and flexible to use graph writer use FormulaDagGraphicalGenerator or FormulaAstGraphicalGenerator within the new graphical writer framework.
    A dot file writer for a formula. Writes the internal data structure of the formula to a dot file.
    Since:
    1.0
    Version:
    2.4.0
    • Method Detail

      • write

        public static void write​(String fileName,
                                 Formula formula,
                                 boolean alignLiterals)
                          throws IOException
        Deprecated.
        Writes a given formula's internal data structure as a dot file with the default style configuration.
        Parameters:
        fileName - the file name of the dot file to write, will be extended by suffix .dot if not already present
        formula - the formula
        alignLiterals - indicates whether all literals should be aligned at the same vertical level
        Throws:
        IOException - if there was a problem writing the file
      • write

        public static void write​(File file,
                                 Formula formula,
                                 boolean alignLiterals)
                          throws IOException
        Deprecated.
        Writes a given formula's internal data structure as a dot file with the default style configuration.
        Parameters:
        file - the file of the dot file to write
        formula - the formula
        alignLiterals - indicates whether all literals should be aligned at the same vertical level
        Throws:
        IOException - if there was a problem writing the file