Package com.github.javabdd
Class BDD.BDDToString
java.lang.Object
com.github.javabdd.BDD.BDDToString
- Enclosing class:
- BDD
BDDToString is used to specify the printing behavior of BDDs with domains. Subclass this type and pass it as an
argument to toStringWithDomains to have the toStringWithDomains function use your domain names and element names,
instead of just numbers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BDD.BDDToStringSingleton instance that does the default behavior: domains and elements are printed as their numbers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelementName(int i, BigInteger j) Given a domain index and an element index, return the element's name.elementNames(int i, BigInteger lo, BigInteger hi) Given a domain index and an inclusive range of element indices, return the names of the elements in that range.
-
Field Details
-
INSTANCE
Singleton instance that does the default behavior: domains and elements are printed as their numbers.
-
-
Constructor Details
-
BDDToString
protected BDDToString()Protected constructor.
-
-
Method Details
-
elementName
Given a domain index and an element index, return the element's name. Called by the toStringWithDomains() function.- Parameters:
i- the domain numberj- the element number- Returns:
- the string representation of that element
-
elementNames
Given a domain index and an inclusive range of element indices, return the names of the elements in that range. Called by the toStringWithDomains() function.- Parameters:
i- the domain numberlo- the low range of element numbers, inclusivehi- the high range of element numbers, inclusive- Returns:
- the string representation of the elements in the range
-