Package com.github.javabdd
Class BDD.AllSatIterator
- java.lang.Object
-
- com.github.javabdd.BDD.AllSatIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]allsatProfileprotected BDDFactoryfprotected LinkedList<BDD>hiStackprotected LinkedList<BDD>loStackprotected booleanuseLevel
-
Constructor Summary
Constructors Modifier Constructor Description AllSatIterator(BDD r)Constructs a satisfying-assignment iterator on the given BDD.protectedAllSatIterator(BDDFactory factory, boolean level)AllSatIterator(BDD r, boolean lev)Constructs a satisfying-assignment iterator on the given BDD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()byte[]next()byte[]nextSat()Return the next satisfying var setting.voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
f
protected final BDDFactory f
-
loStack
protected LinkedList<BDD> loStack
-
hiStack
protected LinkedList<BDD> hiStack
-
allsatProfile
protected byte[] allsatProfile
-
useLevel
protected final boolean useLevel
-
-
Constructor Detail
-
AllSatIterator
protected AllSatIterator(BDDFactory factory, boolean level)
-
AllSatIterator
public AllSatIterator(BDD r)
Constructs a satisfying-assignment iterator on the given BDD. next() returns a byte array indexed by BDD variable number.- Parameters:
r- BDD to iterate over
-
AllSatIterator
public AllSatIterator(BDD r, boolean lev)
Constructs a satisfying-assignment iterator on the given BDD. If lev is true, next() will returns a byte array indexed by level. If lev is false, the byte array will be indexed by BDD variable number.- Parameters:
r- BDD to iterate overlev- whether to index byte array by level instead of var
-
-