net.sf.javabdd
Class TypedBDDFactory.TypedBDDVarSet

java.lang.Object
  extended by net.sf.javabdd.BDDVarSet
      extended by net.sf.javabdd.TypedBDDFactory.TypedBDDVarSet
Enclosing class:
TypedBDDFactory

public class TypedBDDFactory.TypedBDDVarSet
extends BDDVarSet


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.javabdd.BDDVarSet
BDDVarSet.DefaultImpl
 
Constructor Summary
protected TypedBDDFactory.TypedBDDVarSet(BDDVarSet bdd, Set dom)
           
 
Method Summary
 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.
 
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
 

Constructor Detail

TypedBDDFactory.TypedBDDVarSet

protected TypedBDDFactory.TypedBDDVarSet(BDDVarSet bdd,
                                         Set dom)
Method Detail

free

public void free()
Specified by:
free in class BDDVarSet

getFactory

public BDDFactory getFactory()
Description copied from class: BDDVarSet

Returns the factory that created this BDDVarSet.

Specified by:
getFactory in class BDDVarSet
Returns:
factory that created this BDDVarSet

toBDD

public BDD toBDD()
Specified by:
toBDD in class BDDVarSet

id

public BDDVarSet id()
Specified by:
id in class BDDVarSet

intersect

public BDDVarSet intersect(BDDVarSet that)
Description copied from class: 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.

Specified by:
intersect in class BDDVarSet
Parameters:
that - BDDVarSet to union with
Returns:
a new BDDVarSet that is the union of the two sets

intersectWith

public BDDVarSet intersectWith(BDDVarSet that)
Description copied from class: 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.

Specified by:
intersectWith in class BDDVarSet
Parameters:
that - BDDVarSet to union in
Returns:
this

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class BDDVarSet

size

public int size()
Specified by:
size in class BDDVarSet

toArray

public int[] toArray()
Specified by:
toArray in class BDDVarSet

toLevelArray

public int[] toLevelArray()
Specified by:
toLevelArray in class BDDVarSet

union

public BDDVarSet union(BDDVarSet that)
Description copied from class: 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.

Specified by:
union in class BDDVarSet
Parameters:
that - BDDVarSet to union with
Returns:
a new BDDVarSet that is the union of the two sets

union

public BDDVarSet union(int var)
Description copied from class: 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.

Specified by:
union in class BDDVarSet
Returns:
a new BDDVarSet that includes the given variable

unionWith

public BDDVarSet unionWith(BDDVarSet that)
Description copied from class: 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.

Specified by:
unionWith in class BDDVarSet
Parameters:
that - BDDVarSet to union in
Returns:
this

unionWith

public BDDVarSet unionWith(int var)
Description copied from class: BDDVarSet

Modifies this BDDVarSet to include the given variable. This modifies the current set in place.

Specified by:
unionWith in class BDDVarSet
Returns:
this

hashCode

public int hashCode()
Specified by:
hashCode in class BDDVarSet

equals

public boolean equals(BDDVarSet that)
Description copied from class: BDDVarSet
Returns true if the sets are equal.

Specified by:
equals in class BDDVarSet
Parameters:
that - other set
Returns:
true if the sets are equal


Copyright © 2003-2007 John Whaley. All Rights Reserved.