public abstract class BDDVarSet extends Object
Some BDD methods, namely exist(), forall(), unique(), relprod(), applyAll(), applyEx(), applyUni(), and satCount() take a BDDVarSet argument.
Modifier and Type | Class and Description |
---|---|
static class |
BDDVarSet.DefaultImpl
Default implementation of BDDVarSet based on BDDs.
|
Constructor and Description |
---|
BDDVarSet() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 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 withpublic 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.
var
- variable to add to setpublic 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 inpublic abstract BDDVarSet unionWith(int var)
Modifies this BDDVarSet to include the given variable. This modifies the current set in place.
var
- variable to add to setpublic 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 withpublic 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 inpublic abstract boolean equals(BDDVarSet that)
that
- other setCopyright © 2020. All rights reserved.