- java.lang.Object
-
- org.logicng.io.graphical.generators.BddMapper
-
- org.logicng.io.graphical.generators.BddEdgeStyleMapper
-
- All Implemented Interfaces:
EdgeStyleMapper<Integer>
public abstract class BddEdgeStyleMapper extends BddMapper implements EdgeStyleMapper<Integer>
An abstract super class for an edge 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 BddEdgeStyleMapper(BDDKernel kernel)Constructs a new BDD edge mapper for a given BDD kernel.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract GraphicalEdgeStylecomputeStyle(Integer source, Integer destination)Computes a style for the given edge between two node contents.
-
-
-
Constructor Detail
-
BddEdgeStyleMapper
public BddEdgeStyleMapper(BDDKernel kernel)
Constructs a new BDD edge mapper for a given BDD kernel. The BDDs must be constructed with this kernel.- Parameters:
kernel- a BDD kernel
-
-
Method Detail
-
computeStyle
public abstract GraphicalEdgeStyle computeStyle(Integer source, Integer destination)
Description copied from interface:EdgeStyleMapperComputes a style for the given edge between two node contents.- Specified by:
computeStylein interfaceEdgeStyleMapper<Integer>- Parameters:
source- the content of the source nodedestination- the content of the destination node- Returns:
- the style for the node with this content
-
-