|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.javabdd.BDDVarSet
public abstract class BDDVarSet
Some BDD methods, namely exist(), forall(), unique(), relprod(), applyAll(), applyEx(), applyUni(), and satCount() take a BDDVarSet argument.
Nested Class Summary | |
---|---|
static class |
BDDVarSet.DefaultImpl
Default implementation of BDDVarSet based on BDDs. |
Constructor Summary | |
---|---|
BDDVarSet()
|
Method Summary | |
---|---|
abstract boolean |
equals(BDDVarSet that)
Returns true if the sets are equal. |
boolean |
equals(Object o)
|
abstract void |
free()
|
BDDDomain[] |
getDomains()
Scans this BDD and copies the stored variables into an array of BDDDomains. |
abstract BDDFactory |
getFactory()
Returns the factory that created this BDDVarSet. |
abstract int |
hashCode()
|
abstract BDDVarSet |
id()
|
abstract BDDVarSet |
intersect(BDDVarSet b)
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet. |
abstract BDDVarSet |
intersectWith(BDDVarSet b)
Modifies this BDDVarSet to include all of the vars in the given set. |
abstract boolean |
isEmpty()
|
abstract int |
size()
|
abstract int[] |
toArray()
|
abstract BDD |
toBDD()
|
abstract int[] |
toLevelArray()
|
String |
toString()
|
abstract BDDVarSet |
union(BDDVarSet b)
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet. |
abstract BDDVarSet |
union(int var)
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given variable. |
abstract BDDVarSet |
unionWith(BDDVarSet b)
Modifies this BDDVarSet to include all of the vars in the given set. |
abstract BDDVarSet |
unionWith(int var)
Modifies this BDDVarSet to include the given variable. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BDDVarSet()
Method Detail |
---|
public abstract BDDFactory getFactory()
Returns the factory that created this BDDVarSet.
public abstract BDD toBDD()
public abstract BDDVarSet id()
public abstract void free()
public abstract int size()
public abstract boolean isEmpty()
public abstract int[] toArray()
public abstract int[] toLevelArray()
public String toString()
toString
in class Object
public BDDDomain[] getDomains()
Scans this BDD and copies the stored variables into an array of BDDDomains. The domains returned are guaranteed to be in ascending order.
Compare to fdd_scanset.
public abstract BDDVarSet union(BDDVarSet b)
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet. This constructs a new set; neither the current nor the given BDDVarSet is modified.
b
- BDDVarSet to union with
public abstract BDDVarSet union(int var)
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given variable. This constructs a new set; the current BDDVarSet is not modified.
b
- variable to add to set
public abstract BDDVarSet unionWith(BDDVarSet b)
Modifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.
b
- BDDVarSet to union in
public abstract BDDVarSet unionWith(int var)
Modifies this BDDVarSet to include the given variable. This modifies the current set in place.
b
- variable to add to set
public abstract BDDVarSet intersect(BDDVarSet b)
Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet. This constructs a new set; neither the current nor the given BDDVarSet is modified.
b
- BDDVarSet to union with
public abstract BDDVarSet intersectWith(BDDVarSet b)
Modifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.
b
- BDDVarSet to union in
public abstract int hashCode()
hashCode
in class Object
public abstract boolean equals(BDDVarSet that)
that
- other set
public final boolean equals(Object o)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |