|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.javabdd.BDDVarSet net.sf.javabdd.BDDVarSet.DefaultImpl
public static class BDDVarSet.DefaultImpl
Default implementation of BDDVarSet based on BDDs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.javabdd.BDDVarSet |
---|
BDDVarSet.DefaultImpl |
Field Summary | |
---|---|
protected BDD |
b
BDD representation of the set of variables. |
Constructor Summary | |
---|---|
BDDVarSet.DefaultImpl(BDD b)
Construct a BDDVarSet backed by the given BDD. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.sf.javabdd.BDDVarSet |
---|
equals, getDomains, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BDD b
Constructor Detail |
---|
public BDDVarSet.DefaultImpl(BDD b)
b
- BDD to use in constructing BDDVarSetMethod Detail |
---|
public void free()
free
in class BDDVarSet
public BDDFactory getFactory()
BDDVarSet
Returns the factory that created this BDDVarSet.
getFactory
in class BDDVarSet
public BDDVarSet id()
id
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.
intersect
in class BDDVarSet
s
- BDDVarSet to union with
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 in
public boolean isEmpty()
isEmpty
in class BDDVarSet
public int size()
size
in class BDDVarSet
public int[] toArray()
toArray
in class BDDVarSet
public BDD toBDD()
toBDD
in class BDDVarSet
public 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.
union
in class BDDVarSet
s
- BDDVarSet to union with
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.
union
in class BDDVarSet
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.
unionWith
in class BDDVarSet
s
- BDDVarSet to union in
public BDDVarSet unionWith(int var)
BDDVarSet
Modifies this BDDVarSet to include the given variable. This modifies the current set in place.
unionWith
in class BDDVarSet
public int hashCode()
hashCode
in class BDDVarSet
public boolean equals(BDDVarSet s)
BDDVarSet
equals
in class BDDVarSet
s
- other set
public boolean equals(BDDVarSet.DefaultImpl s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |