BDDVarSet.DefaultImpl| Modifier and Type | Field and Description |
|---|---|
protected BDD |
b
BDD representation of the set of variables.
|
| Constructor and Description |
|---|
DefaultImpl(BDD b)
Construct a BDDVarSet backed by the given BDD.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(BDDVarSet.DefaultImpl s) |
boolean |
equals(BDDVarSet s)
Returns true if the sets are equal.
|
void |
free() |
BDDFactory |
getFactory()
Returns the factory that created this BDDVarSet.
|
int |
hashCode() |
BDDVarSet |
id() |
BDDVarSet |
intersect(BDDVarSet s)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given BDDVarSet.
|
BDDVarSet |
intersectWith(BDDVarSet s)
Modifies this BDDVarSet to include all of the vars in the given set.
|
boolean |
isEmpty() |
int |
size() |
int[] |
toArray() |
BDD |
toBDD() |
int[] |
toLevelArray() |
BDDVarSet |
union(BDDVarSet s)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given BDDVarSet.
|
BDDVarSet |
union(int var)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given variable.
|
BDDVarSet |
unionWith(BDDVarSet s)
Modifies this BDDVarSet to include all of the vars in the given set.
|
BDDVarSet |
unionWith(int var)
Modifies this BDDVarSet to include the given variable.
|
equals, getDomains, toStringprotected BDD b
public DefaultImpl(BDD b)
b - BDD to use in constructing BDDVarSetpublic BDDFactory getFactory()
BDDVarSetReturns the factory that created this BDDVarSet.
getFactory in class BDDVarSetpublic BDDVarSet intersect(BDDVarSet s)
BDDVarSetReturns 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.
public BDDVarSet intersectWith(BDDVarSet s)
BDDVarSetModifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.
intersectWith in class BDDVarSets - BDDVarSet to union inpublic int[] toLevelArray()
toLevelArray in class BDDVarSetpublic BDDVarSet union(BDDVarSet s)
BDDVarSetReturns 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.
public BDDVarSet union(int var)
BDDVarSetReturns 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.
public BDDVarSet unionWith(BDDVarSet s)
BDDVarSetModifies this BDDVarSet to include all of the vars in the given set. This modifies the current set in place and consumes the given set.
public BDDVarSet unionWith(int var)
BDDVarSetModifies this BDDVarSet to include the given variable. This modifies the current set in place.
public boolean equals(BDDVarSet s)
BDDVarSetpublic boolean equals(BDDVarSet.DefaultImpl s)
Copyright © 2020. All rights reserved.