Package org.batfish
Class BDDInteger
java.lang.Object
org.batfish.BDDInteger
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MutableBDDInteger
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBDDInteger(net.sf.javabdd.BDDFactory factory, net.sf.javabdd.BDD[] bitvec) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract net.sf.javabdd.BDDfirstBitsEqual(long val, int length) net.sf.javabdd.BDDgeq(long val) net.sf.javabdd.BDDFactorygetValueSatisfying(net.sf.javabdd.BDD bdd) Find a representative value of the represented integer that satisfies a given constraint.getValuesSatisfying(net.sf.javabdd.BDD bdd, int max) Return a list of values satisfying the inputBDD, up to some maximum number.net.sf.javabdd.BDDleq(long val) net.sf.javabdd.BDDrange(long a, long b) intsatAssignmentToInt(net.sf.javabdd.BDD bdd) abstract longsatAssignmentToLong(net.sf.javabdd.BDD satAssignment) intsize()Returns the number of bits in thisBDDInteger.final net.sf.javabdd.BDDBuild a constraint that matches the inputIp.abstract net.sf.javabdd.BDDtoBDD(IpWildcard ipWildcard) Build a constraint that matches theIPsmatched by the inputIpWildcard.final net.sf.javabdd.BDDBuild a constraint that matches the set of IPs contained by the inputPrefix.final net.sf.javabdd.BDDvalue(long val)
-
Field Details
-
_factory
protected final net.sf.javabdd.BDDFactory _factory -
_bitvec
protected final net.sf.javabdd.BDD[] _bitvec -
_maxVal
protected final long _maxVal
-
-
Constructor Details
-
BDDInteger
protected BDDInteger(net.sf.javabdd.BDDFactory factory, net.sf.javabdd.BDD[] bitvec)
-
-
Method Details
-
size
public int size()Returns the number of bits in thisBDDInteger. -
getValueSatisfying
Find a representative value of the represented integer that satisfies a given constraint. -
satAssignmentToLong
public abstract long satAssignmentToLong(net.sf.javabdd.BDD satAssignment) -
satAssignmentToInt
public int satAssignmentToInt(net.sf.javabdd.BDD bdd) -
getValuesSatisfying
Return a list of values satisfying the inputBDD, up to some maximum number.- Parameters:
bdd- A constraint on this.max- The maximum number of values desired.- Returns:
- The satisfying values.
-
toBDD
Build a constraint that matches the set of IPs contained by the inputPrefix. -
toBDD
Build a constraint that matches the inputIp. -
firstBitsEqual
protected abstract net.sf.javabdd.BDD firstBitsEqual(long val, int length) -
toBDD
Build a constraint that matches theIPsmatched by the inputIpWildcard. -
value
public final net.sf.javabdd.BDD value(long val) -
leq
public net.sf.javabdd.BDD leq(long val) -
geq
public net.sf.javabdd.BDD geq(long val) -
range
public net.sf.javabdd.BDD range(long a, long b) -
getFactory
public net.sf.javabdd.BDDFactory getFactory()
-