Module logicng
Class BddGraphicalGenerator.BddGraphicalGeneratorBuilder
- java.lang.Object
-
- org.logicng.io.graphical.generators.GraphicalGeneratorBuilder<BddGraphicalGenerator,Integer>
-
- org.logicng.io.graphical.generators.BddGraphicalGenerator.BddGraphicalGeneratorBuilder
-
- Enclosing class:
- BddGraphicalGenerator
public static class BddGraphicalGenerator.BddGraphicalGeneratorBuilder extends GraphicalGeneratorBuilder<BddGraphicalGenerator,Integer>
An extension of the builder for graphical generators to include BDD specific values.Since only the additional methods of this builder can return an object of the type
BddGraphicalGenerator.BddGraphicalGeneratorBuilder, you have to configure all BDD-specific values of this builder _before_ you configure the values of the super builderGraphicalGeneratorBuilder.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Field Summary
-
Fields inherited from class org.logicng.io.graphical.generators.GraphicalGeneratorBuilder
alignTerminals, backgroundColor, constructor, defaultEdgeStyle, defaultNodeStyle, edgeMapper, labelMapper, nodeStyleMapper
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BddGraphicalGenerator.BddGraphicalGeneratorBuilderfalseNodeStyle(GraphicalNodeStyle falseNodeStyle)Sets the default style for the FALSE terminal node of the BDD.BddGraphicalGenerator.BddGraphicalGeneratorBuildernegativeEdgeMapper(EdgeStyleMapper<Integer> negativeEdgeMapper)Sets the negative edge mapper for dynamically computing edge styles for negative edges in the BDD.BddGraphicalGenerator.BddGraphicalGeneratorBuildernegativeEdgeStyle(GraphicalEdgeStyle negativeEdgeStyle)Sets the default edge style for negative (low) edges in the BDD.BddGraphicalGenerator.BddGraphicalGeneratorBuildertrueNodeStyle(GraphicalNodeStyle trueNodeStyle)Sets the default style for the TRUE terminal node of the BDD.-
Methods inherited from class org.logicng.io.graphical.generators.GraphicalGeneratorBuilder
alignTerminals, backgroundColor, backgroundColor, backgroundColor, build, defaultEdgeStyle, defaultNodeStyle, edgeMapper, labelMapper, nodeStyleMapper
-
-
-
-
Method Detail
-
trueNodeStyle
public BddGraphicalGenerator.BddGraphicalGeneratorBuilder trueNodeStyle(GraphicalNodeStyle trueNodeStyle)
Sets the default style for the TRUE terminal node of the BDD. This style will be ignored when a dynamic node style mapper is configured.- Parameters:
trueNodeStyle- the node style- Returns:
- the current builder
-
falseNodeStyle
public BddGraphicalGenerator.BddGraphicalGeneratorBuilder falseNodeStyle(GraphicalNodeStyle falseNodeStyle)
Sets the default style for the FALSE terminal node of the BDD. This style will be ignored when a dynamic node style mapper is configured.- Parameters:
falseNodeStyle- the node style- Returns:
- the current builder
-
negativeEdgeStyle
public BddGraphicalGenerator.BddGraphicalGeneratorBuilder negativeEdgeStyle(GraphicalEdgeStyle negativeEdgeStyle)
Sets the default edge style for negative (low) edges in the BDD.- Parameters:
negativeEdgeStyle- the edge style- Returns:
- the current builder
-
negativeEdgeMapper
public BddGraphicalGenerator.BddGraphicalGeneratorBuilder negativeEdgeMapper(EdgeStyleMapper<Integer> negativeEdgeMapper)
Sets the negative edge mapper for dynamically computing edge styles for negative edges in the BDD. If this mapper is configured, the default edge style for negative edges is ignored and each edge is styled by the computed style ofEdgeStyleMapper.computeStyle(Object, Object).- Parameters:
negativeEdgeMapper- the edge mapper- Returns:
- the current builder
-
-