|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.javabdd.BDD.BDDToString
public static class BDD.BDDToString
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 | |
---|---|
static BDD.BDDToString |
INSTANCE
Singleton instance that does the default behavior: domains and elements are printed as their numbers. |
Constructor Summary | |
---|---|
protected |
BDD.BDDToString()
Protected constructor. |
Method Summary | |
---|---|
String |
elementName(int i,
BigInteger j)
Given a domain index and an element index, return the element's name. |
String |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BDD.BDDToString INSTANCE
Singleton instance that does the default behavior: domains and elements are printed as their numbers.
Constructor Detail |
---|
protected BDD.BDDToString()
Protected constructor.
Method Detail |
---|
public String elementName(int i, BigInteger j)
Given a domain index and an element index, return the element's name. Called by the toStringWithDomains() function.
i
- the domain numberj
- the element number
public String 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. Called by the toStringWithDomains() function.
i
- the domain numberlo
- the low range of element numbers, inclusivehi
- the high range of element numbers, inclusive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |