- java.lang.Object
-
- org.logicng.io.writers.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 useFormulaDagGraphicalGeneratororFormulaAstGraphicalGeneratorwithin 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 Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidwrite(File file, Formula formula, boolean alignLiterals)Deprecated.Writes a given formula's internal data structure as a dot file with the default style configuration.static voidwrite(String fileName, Formula formula, boolean alignLiterals)Deprecated.Writes a given formula's internal data structure as a dot file with the default style configuration.
-
-
-
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.dotif not already presentformula- the formulaalignLiterals- 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 writeformula- the formulaalignLiterals- indicates whether all literals should be aligned at the same vertical level- Throws:
IOException- if there was a problem writing the file
-
-