- java.lang.Object
-
- org.logicng.io.graphical.generators.GraphicalGenerator<Integer>
-
- org.logicng.io.graphical.generators.BddGraphicalGenerator
-
public class BddGraphicalGenerator extends GraphicalGenerator<Integer>
The graphical generator for representations of BDDsBDD.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBddGraphicalGenerator.BddGraphicalGeneratorBuilderAn extension of the builder for graphical generators to include BDD specific values.
-
Field Summary
Fields Modifier and Type Field Description static GraphicalEdgeStyleDEFAULT_FALSE_EDGE_STYLEstatic GraphicalNodeStyleDEFAULT_FALSE_NODE_STYLEstatic GraphicalEdgeStyleDEFAULT_TRUE_EDGE_STYLEstatic GraphicalNodeStyleDEFAULT_TRUE_NODE_STYLE-
Fields inherited from class org.logicng.io.graphical.generators.GraphicalGenerator
alignTerminals, backgroundColor, defaultEdgeStyle, defaultNodeStyle, ID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BddGraphicalGenerator.BddGraphicalGeneratorBuilderbuilder()Returns the builder for this generator.GraphicalRepresentationtranslate(BDD bdd)Translates a given BDD into its graphical representation.-
Methods inherited from class org.logicng.io.graphical.generators.GraphicalGenerator
edgeStyle, labelOrDefault, nodeStyle
-
-
-
-
Field Detail
-
DEFAULT_TRUE_NODE_STYLE
public static final GraphicalNodeStyle DEFAULT_TRUE_NODE_STYLE
-
DEFAULT_FALSE_NODE_STYLE
public static final GraphicalNodeStyle DEFAULT_FALSE_NODE_STYLE
-
DEFAULT_TRUE_EDGE_STYLE
public static final GraphicalEdgeStyle DEFAULT_TRUE_EDGE_STYLE
-
DEFAULT_FALSE_EDGE_STYLE
public static final GraphicalEdgeStyle DEFAULT_FALSE_EDGE_STYLE
-
-
Method Detail
-
builder
public static BddGraphicalGenerator.BddGraphicalGeneratorBuilder builder()
Returns the builder for this generator.- Returns:
- the builder
-
translate
public GraphicalRepresentation translate(BDD bdd)
Translates a given BDD into its graphical representation.- Parameters:
bdd- the BDD- Returns:
- the graphical representation
-
-