- java.lang.Object
-
- org.logicng.io.graphical.generators.BddMapper
-
- Direct Known Subclasses:
BddEdgeStyleMapper,BddLabelMapper,BddNodeStyleMapper
public class BddMapper extends Object
An abstract super class for mappers for a graphical representation of a BDD.Since the
BddGraphicalGeneratoruses only the indices of BDD nodes, this class provides some helper methods which simplify accessing the BDD by extracting the content of the BDD nodes as constants and variables.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected BDDConstructionbddConstructionprotected BDDKernelkernel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisFalse(int index)Returns true if the index is the terminal node for FALSE.protected booleanisTrue(int index)Returns true if the index is the terminal node for TRUE.protected Variablevariable(int index)Returns the variable for the node with the given index
-
-
-
Field Detail
-
kernel
protected final BDDKernel kernel
-
bddConstruction
protected final BDDConstruction bddConstruction
-
-
Constructor Detail
-
BddMapper
protected BddMapper(BDDKernel kernel)
-
-
Method Detail
-
variable
protected Variable variable(int index)
Returns the variable for the node with the given index- Parameters:
index- the index- Returns:
- the variable
-
isFalse
protected boolean isFalse(int index)
Returns true if the index is the terminal node for FALSE.- Parameters:
index- the index- Returns:
- whether the index is the terminal FALSE node
-
isTrue
protected boolean isTrue(int index)
Returns true if the index is the terminal node for TRUE.- Parameters:
index- the index- Returns:
- whether the index is the terminal TRUE node
-
-