public final class BooleanVariable extends BooleanFormula
op = Operator.VAR
no inputs && label in [1, ..., Integer.MAX_VALUE)
Modifier and Type | Method and Description |
---|---|
<T,A> T |
accept(BooleanVisitor<T,A> visitor,
A arg)
Passes this value and the given
argument value to the visitor, and returns the resulting value.
|
int |
hashCode()
Returns a hashcode for this variable.
|
BooleanFormula |
input(int i)
Throws an IndexOutOfBoundsException.
|
Iterator<BooleanFormula> |
iterator()
Returns an empty iterator.
|
int |
label()
Returns the label for this value.
|
Operator |
op()
Returns the VAR operator.
|
int |
size()
Returns 0.
|
String |
toString()
Returns a string representation of this variable.
|
compareTo
forEach, spliterator
public <T,A> T accept(BooleanVisitor<T,A> visitor, A arg)
accept
in class BooleanFormula
public int hashCode()
public BooleanFormula input(int i)
input
in class BooleanFormula
0 <= i < size
IndexOutOfBoundsException
public Iterator<BooleanFormula> iterator()
iterator
in interface Iterable<BooleanFormula>
iterator
in class BooleanFormula
public int label()
label
in class BooleanValue
public Operator op()
op
in class BooleanValue
public int size()
size
in class BooleanFormula
© Emina Torlak 2005-present