public class BitVectorVariable extends AbstractVariable<BitVectorVariable>
Constructor and Description |
---|
BitVectorVariable() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(BitVector B)
Add all the bits in B to this bit vector
|
void |
addAll(BitVectorVariable other)
Add all the bits from other to this bit vector
|
void |
clear(int i) |
void |
copyState(BitVectorVariable other)
Set this variable to have the same state as another one
|
boolean |
equals(Object obj) |
boolean |
get(int b)
Is a particular bit set?
|
IntSet |
getValue() |
int |
populationCount() |
boolean |
sameValue(BitVectorVariable other)
Does this variable have the same value as another?
|
void |
set(int b)
Set a particular bit
|
String |
toString() |
getOrderNumber, hashCode, nextHash, setOrderNumber
getGraphNodeId, setGraphNodeId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGraphNodeId, setGraphNodeId
public void copyState(BitVectorVariable other)
IVariable
public void addAll(BitVector B)
public void addAll(BitVectorVariable other)
public boolean sameValue(BitVectorVariable other)
public void set(int b)
b
- the bit to setpublic boolean get(int b)
b
- the bit to checkpublic IntSet getValue()
public void clear(int i)
public boolean equals(Object obj)
equals
in class AbstractVariable<BitVectorVariable>
public int populationCount()