- java.lang.Object
-
- org.logicng.io.graphical.GraphicalDotWriter
-
- All Implemented Interfaces:
GraphicalRepresentationWriter
public class GraphicalDotWriter extends Object implements GraphicalRepresentationWriter
A writer which writes a graphical representation as a DOT file. This writer is thread-safe.The DOT file specification can be found here.
- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphicalDotWriterget()Returns the singleton instance of this writer.voidwrite(Writer writer, GraphicalRepresentation representation)Writes a given graphical representation with the given writer.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.logicng.io.graphical.GraphicalRepresentationWriter
stringValue, write, write
-
-
-
-
Method Detail
-
get
public static GraphicalDotWriter get()
Returns the singleton instance of this writer.- Returns:
- the singleton instance
-
write
public void write(Writer writer, GraphicalRepresentation representation) throws IOException
Description copied from interface:GraphicalRepresentationWriterWrites a given graphical representation with the given writer.- Specified by:
writein interfaceGraphicalRepresentationWriter- Parameters:
writer- the writerrepresentation- the representation to write- Throws:
IOException- if there is a problem during writing
-
-