Package com.github.javabdd
Class BDDFactoryIntImpl.IntBDDVarSet
- java.lang.Object
-
- com.github.javabdd.BDDVarSet
-
- com.github.javabdd.BDDFactoryIntImpl.IntBDDVarSet
-
- Direct Known Subclasses:
BDDFactoryIntImpl.IntBDDVarSetWithFinalizer,BDDFactoryIntImpl.IntZDDVarSet
- Enclosing class:
- BDDFactoryIntImpl
public class BDDFactoryIntImpl.IntBDDVarSet extends BDDVarSet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.javabdd.BDDVarSet
BDDVarSet.DefaultImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntBDDVarSet(int v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdo_intersect(int v1, int v2)protected intdo_union(int v1, int v2)protected intdo_unionvar(int v, int var)booleanequalsBDDVarSet(BDDVarSet that)Returns true if the sets are equal.voidfree()BDDFactorygetFactory()Returns the factory that created this BDDVarSet.inthashCode()BDDVarSetid()BDDVarSetintersect(BDDVarSet b)Returns a new BDDVarSet that is the union of the current BDDVarSet and the given BDDVarSet.BDDVarSetintersectWith(BDDVarSet b)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 b)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 b)Modifies this BDDVarSet to include all of the vars in the given set.-
Methods inherited from class com.github.javabdd.BDDVarSet
equals, getDomains, toString
-
-
-
-
Method Detail
-
equalsBDDVarSet
public boolean equalsBDDVarSet(BDDVarSet that)
Description copied from class:BDDVarSetReturns true if the sets are equal.- Specified by:
equalsBDDVarSetin classBDDVarSet- Parameters:
that- other set- Returns:
- true if the sets are equal
-
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
-
do_intersect
protected int do_intersect(int v1, int v2)
-
intersect
public BDDVarSet intersect(BDDVarSet b)
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 b)
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:
b- BDDVarSet to union in- Returns:
- this
-
toLevelArray
public int[] toLevelArray()
- Specified by:
toLevelArrayin classBDDVarSet
-
do_unionvar
protected int do_unionvar(int v, int var)
-
do_union
protected int do_union(int v1, int v2)
-
union
public BDDVarSet union(BDDVarSet b)
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 b)
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.
-
-