public abstract class BooleanValue extends Object implements Comparable<BooleanValue>
formula
or a constant
. Boolean formulas are produced by
circuit factories
. Each value is associated with
an integer label; the labels are unique within a given factory.
A boolean value with a negative label -|l| represents the negation of the value with the positive
label |l|. Non-constant values are not shared among factories.op: Operator
label: [-Integer.MAX_VALUE, Integer.MAX_VALUE]
no c: BooleanValue - this | some components.c & components.this && c.label = this.label
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BooleanValue other)
Boolean components are ordered according to their labels.
|
abstract int |
label()
Returns the label for this value.
|
abstract Operator |
op()
Returns the operator representing the function
computed by this gate.
|
public final int compareTo(BooleanValue other)
compareTo
in interface Comparable<BooleanValue>
public abstract int label()
public abstract Operator op()
© Emina Torlak 2005-present