Package com.github.javabdd
Class BDDVarSet.DefaultImpl
- java.lang.Object
-
- com.github.javabdd.BDDVarSet
-
- com.github.javabdd.BDDVarSet.DefaultImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.javabdd.BDDVarSet
BDDVarSet.DefaultImpl
-
-
Constructor Summary
Constructors Constructor Description DefaultImpl(BDD b)Construct a BDDVarSet backed by the given BDD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsBDDVarSet(BDDVarSet s)Returns true if the sets are equal.booleanequalsDefaultImpl(BDDVarSet.DefaultImpl s)voidfree()BDDFactorygetFactory()Returns the factory that created this BDDVarSet.inthashCode()BDDVarSetid()BDDVarSetintersect(BDDVarSet s)Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet.BDDVarSetintersectWith(BDDVarSet s)Modifies this BDDVarSet to include all of the vars in the given set.booleanisEmpty()intsize()int[]toArray()BDDtoBDD()int[]toLevelArray()BDDVarSetunion(int var)Returns a new BDDVarSet that is the union of the current BDDVarSet and the given variable.BDDVarSetunion(BDDVarSet s)Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet.BDDVarSetunionWith(int var)Modifies this BDDVarSet to include the given variable.BDDVarSetunionWith(BDDVarSet s)Modifies this BDDVarSet to include all of the vars in the given set.-
Methods inherited from class com.github.javabdd.BDDVarSet
equals, getDomains, toString
-
-
-
-
Field Detail
-
b
protected BDD b
BDD representation of the set of variables. Treated like a linked list of variables.
-
-
Constructor Detail
-
DefaultImpl
public DefaultImpl(BDD b)
Construct a BDDVarSet backed by the given BDD. Ownership of the given BDD is transferred to this BDDVarSet, so you should not touch it after construction!- Parameters:
b- BDD to use in constructing BDDVarSet
-
-
Method Detail
-
getFactory
public BDDFactory getFactory()
Description copied from class:BDDVarSetReturns the factory that created this BDDVarSet.- Specified by:
getFactoryin classBDDVarSet- Returns:
- factory that created this BDDVarSet
-
intersect
public BDDVarSet intersect(BDDVarSet s)
Description copied from class: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.
-
intersectWith
public BDDVarSet intersectWith(BDDVarSet s)
Description copied from class: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.- Specified by:
intersectWithin classBDDVarSet- Parameters:
s- BDDVarSet to union in- Returns:
- this
-
toLevelArray
public int[] toLevelArray()
- Specified by:
toLevelArrayin classBDDVarSet
-
union
public BDDVarSet union(BDDVarSet s)
Description copied from class: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.
-
union
public BDDVarSet union(int var)
Description copied from class: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.
-
unionWith
public BDDVarSet unionWith(BDDVarSet s)
Description copied from class: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.
-
unionWith
public BDDVarSet unionWith(int var)
Description copied from class:BDDVarSetModifies this BDDVarSet to include the given variable. This modifies the current set in place.
-
equalsBDDVarSet
public boolean equalsBDDVarSet(BDDVarSet s)
Description copied from class:BDDVarSetReturns true if the sets are equal.- Specified by:
equalsBDDVarSetin classBDDVarSet- Parameters:
s- other set- Returns:
- true if the sets are equal
-
equalsDefaultImpl
public boolean equalsDefaultImpl(BDDVarSet.DefaultImpl s)
-
-