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, toString
protected BDD b
public DefaultImpl(BDD b)
b
- BDD to use in constructing BDDVarSetpublic BDDFactory getFactory()
BDDVarSet
Returns the factory that created this BDDVarSet.
getFactory
in class BDDVarSet
public BDDVarSet intersect(BDDVarSet s)
BDDVarSet
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.
public BDDVarSet intersectWith(BDDVarSet s)
BDDVarSet
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.
intersectWith
in class BDDVarSet
s
- BDDVarSet to union inpublic int[] toLevelArray()
toLevelArray
in class BDDVarSet
public BDDVarSet union(BDDVarSet s)
BDDVarSet
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.
public BDDVarSet union(int var)
BDDVarSet
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.
public BDDVarSet unionWith(BDDVarSet s)
BDDVarSet
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.
public BDDVarSet unionWith(int var)
BDDVarSet
Modifies this BDDVarSet to include the given variable. This modifies the current set in place.
public boolean equals(BDDVarSet s)
BDDVarSet
public boolean equals(BDDVarSet.DefaultImpl s)
Copyright © 2020. All rights reserved.