public static class BDD.BDDIterator extends Object implements Iterator
| Constructor and Description |
|---|
BDDIterator(BDD bdd,
BDDVarSet var)
Construct a new BDDIterator on the given BDD.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(int var)
Fast-forward the iteration such that the given variable number is true.
|
void |
fastForward(int[] vars)
Fast-forward the iteration such that the given set of variables are true.
|
protected void |
gotoNext() |
protected boolean |
gotoNextA() |
boolean |
hasNext() |
boolean |
isDontCare(BDDDomain d)
Returns true if the BDD variables in the given BDD domain are
all dont-care's.
|
boolean |
isDontCare(int var)
Returns true if the given BDD variable number is a dont-care.
|
Object |
next() |
BDD |
nextBDD()
Return the next BDD in the iteration.
|
boolean[] |
nextSat()
Return the next single satisfying assignment in the iteration.
|
BigInteger[] |
nextTuple()
Return the next tuple of domain values in the iteration.
|
BigInteger[] |
nextTuple2()
An alternate implementation of nextTuple().
|
BigInteger |
nextValue(BDDDomain dom) |
void |
remove() |
void |
skipDontCare(BDDDomain d)
Assuming d is a dont-care, skip to the end of the iteration for
d
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected void gotoNext()
protected boolean gotoNextA()
public BigInteger nextValue(BDDDomain dom)
public BigInteger[] nextTuple()
public BigInteger[] nextTuple2()
public boolean[] nextSat()
public BDD nextBDD()
public boolean isDontCare(int var)
Returns true if the given BDD variable number is a dont-care. var must be a variable in the iteration set.
var - variable number to checkpublic boolean isDontCare(BDDDomain d)
Returns true if the BDD variables in the given BDD domain are all dont-care's.
d - domain to checkBDDException - if d is not in the iteration setpublic void fastForward(int var)
var - number of variablepublic void fastForward(int[] vars)
vars - set of variable indicespublic void skipDontCare(BDDDomain d)
d - BDD domain to fast-forward pastCopyright © 2020. All rights reserved.