- java.lang.Object
-
- org.logicng.knowledgecompilation.bdds.datastructures.BDDConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)static BDDConstantgetFalsumNode(FormulaFactory f)Returns the terminal 0 node.static BDDConstantgetVerumNode(FormulaFactory f)Returns the terminal 1 node.inthashCode()BDDNodehigh()Returns the node of the high edge ornullfor a terminal node.booleanisInnerNode()Returnstrueif this node is an inner node,falseif it is a terminal node.Formulalabel()Returns the label of the node.BDDNodelow()Returns the node of the low edge ornullfor a terminal node.Set<BDDNode>nodes()Returns all nodes of the sub-BDD starting at this node.StringtoString()
-
-
-
Method Detail
-
getFalsumNode
public static BDDConstant getFalsumNode(FormulaFactory f)
Returns the terminal 0 node.- Parameters:
f- the formula factory- Returns:
- the terminal 0 node
-
getVerumNode
public static BDDConstant getVerumNode(FormulaFactory f)
Returns the terminal 1 node.- Parameters:
f- the formula factory- Returns:
- the terminal 1 node
-
label
public Formula label()
Description copied from interface:BDDNodeReturns the label of the node. This can either be a variable or a constant.
-
isInnerNode
public boolean isInnerNode()
Description copied from interface:BDDNodeReturnstrueif this node is an inner node,falseif it is a terminal node.- Specified by:
isInnerNodein interfaceBDDNode- Returns:
trueif this node is an inner node,falseif it is a terminal node
-
low
public BDDNode low()
Description copied from interface:BDDNodeReturns the node of the low edge ornullfor a terminal node.
-
high
public BDDNode high()
Description copied from interface:BDDNodeReturns the node of the high edge ornullfor a terminal node.
-
nodes
public Set<BDDNode> nodes()
Description copied from interface:BDDNodeReturns all nodes of the sub-BDD starting at this node.
-
-