public class TypedBDDFactory.TypedBDDVarSet extends BDDVarSet
BDDVarSet.DefaultImpl| Modifier | Constructor and Description |
|---|---|
protected |
TypedBDDVarSet(BDDVarSet bdd,
Set dom) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(BDDVarSet that)
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 that)
Returns a new BDDVarSet that is the union of the current BDDVarSet
and the given BDDVarSet.
|
BDDVarSet |
intersectWith(BDDVarSet that)
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 that)
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 that)
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, toStringpublic BDDFactory getFactory()
BDDVarSetReturns the factory that created this BDDVarSet.
getFactory in class BDDVarSetpublic BDDVarSet intersect(BDDVarSet that)
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 that)
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 BDDVarSetthat - BDDVarSet to union inpublic int[] toLevelArray()
toLevelArray in class BDDVarSetpublic BDDVarSet union(BDDVarSet that)
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 that)
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.
Copyright © 2020. All rights reserved.