Package org.batfish
Class BDDDomain<T>
java.lang.Object
org.batfish.BDDDomain<T>
Class that wraps a BDDInteger around a finite collection of values and provides an API for
dealing directly with the values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleannet.sf.javabdd.BDDReturns the constraint that represents any value within the domain.inthashCode()static intnumBits(int size) Returns the number of bits used to represent a domain of the given size.satAssignmentToValue(net.sf.javabdd.BDD satAssignment) voidvoidnet.sf.javabdd.BDDsupport()Produces a BDD that represents the support (i.e., the set of BDD variables) of this domain.net.sf.javabdd.BDD
-
Constructor Details
-
BDDDomain
-
BDDDomain
-
BDDDomain
- Parameters:
pred- a predicate based on which the given BDDDomain is restricted.other- A BDDDomain
-
-
Method Details
-
getIsValidConstraint
public net.sf.javabdd.BDD getIsValidConstraint()Returns the constraint that represents any value within the domain. -
numBits
public static int numBits(int size) Returns the number of bits used to represent a domain of the given size.- Parameters:
size- the number of elements in the domain- Returns:
- the number of bits required
-
value
-
satAssignmentToValue
-
setValue
-
support
public net.sf.javabdd.BDD support()Produces a BDD that represents the support (i.e., the set of BDD variables) of this domain. -
getInteger
-
setInteger
-
equals
-
hashCode
public int hashCode()
-