- java.lang.Object
-
- org.logicng.io.graphical.generators.BddMapper
-
- org.logicng.io.graphical.generators.BddNodeStyleMapper
-
- All Implemented Interfaces:
NodeStyleMapper<Integer>
public abstract class BddNodeStyleMapper extends BddMapper implements NodeStyleMapper<Integer>
An abstract super class for a style mapper for a graphical representation of a BDD.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Field Summary
-
Fields inherited from class org.logicng.io.graphical.generators.BddMapper
bddConstruction, kernel
-
-
Constructor Summary
Constructors Constructor Description BddNodeStyleMapper(BDDKernel kernel)Constructs a new BDD style mapper for a given BDD kernel.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract GraphicalNodeStylecomputeStyle(Integer index)Computes a style for the given node content.
-
-
-
Constructor Detail
-
BddNodeStyleMapper
public BddNodeStyleMapper(BDDKernel kernel)
Constructs a new BDD style mapper for a given BDD kernel. The BDDs which are styled must be constructed with this kernel.- Parameters:
kernel- a BDD kernel
-
-
Method Detail
-
computeStyle
public abstract GraphicalNodeStyle computeStyle(Integer index)
Description copied from interface:NodeStyleMapperComputes a style for the given node content.- Specified by:
computeStylein interfaceNodeStyleMapper<Integer>- Parameters:
index- the content of the node- Returns:
- the style for the node with this content
-
-