|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bddbddb.Solver net.sf.bddbddb.BDDSolver
public class BDDSolver
An implementation of Solver that uses BDDs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.bddbddb.Solver |
---|
Solver.MyReader |
Field Summary | |
---|---|
static java.lang.String |
bddDomainInfoFileName
Filename for BDD domain info file. |
java.lang.String |
BDDREORDER
|
java.lang.String |
TRIALFILE
|
java.lang.String |
VARORDER
BDD variable ordering. |
Fields inherited from class net.sf.bddbddb.Solver |
---|
err, out, startTime |
Constructor Summary | |
---|---|
BDDSolver()
Constructs a new BDD solver. |
Method Summary | |
---|---|
net.sf.javabdd.BDDDomain |
allocateBDDDomain(Domain dom)
Allocate a new BDD domain that matches the given domain. |
void |
cleanup()
Clean up the solver, freeing the memory associated with it. |
InferenceRule |
createInferenceRule(java.util.List top,
RuleTerm bottom)
Create a new inference rule. |
Relation |
createRelation(java.lang.String name,
java.util.List attributes)
Create a new relation. |
void |
ensureCapacity(Domain d,
java.math.BigInteger range)
|
void |
ensureCapacity(Domain d,
long v)
|
void |
finish()
Called after solving. |
java.lang.String |
getBaseName()
|
net.sf.javabdd.BDDDomain |
getBDDDomain(Domain dom,
int k)
Get the k-th BDD domain allocated for a given domain. |
net.sf.javabdd.BDDDomain |
getBDDDomain(java.lang.String s)
Get the BDD domain with the given name. |
jwutil.collections.MultiMap |
getBDDDomains()
Return the map of field domains to sets of allocated BDD domains. |
java.util.Collection |
getBDDDomains(Domain dom)
Get the set of BDD domains allocated for a given domain. |
net.sf.javabdd.BDDFactory |
getBDDFactory()
Get the BDD factory used by this solver. |
net.sf.javabdd.BDDPairing |
getPairing(java.util.Map map)
|
void |
initialize()
Initialize all of the relations and rules. |
void |
initialize2()
Initialize the values of equivalence relations. |
void |
reportStats()
Report rule statistics. |
void |
setVariableOrdering()
Set the BDD variable ordering based on VARORDER. |
void |
solve()
Solve the rules. |
Methods inherited from class net.sf.bddbddb.Solver |
---|
addBDDLibraryToClasspath, addSaveHook, clear, doCallbacks, execSolver, getBaseDir, getComparisonRelations, getDomain, getIterationFlowGraph, getNumberOfRelations, getRelation, getRelation, getRelations, getRelationsToLoad, getRelationsToSave, getRule, getRule, getRules, getRuleThatContains, load, load, main, main2, printUsage, run, save, stratify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String bddDomainInfoFileName
public java.lang.String VARORDER
public java.lang.String TRIALFILE
public java.lang.String BDDREORDER
Constructor Detail |
---|
public BDDSolver()
Method Detail |
---|
public net.sf.javabdd.BDDPairing getPairing(java.util.Map map)
public void ensureCapacity(Domain d, long v)
public void ensureCapacity(Domain d, java.math.BigInteger range)
public void initialize()
Solver
initialize
in class Solver
public java.lang.String getBaseName()
public void initialize2()
public void setVariableOrdering()
public void solve()
Solver
solve
in class Solver
public void finish()
Solver
finish
in class Solver
public void cleanup()
Solver
cleanup
in class Solver
public net.sf.javabdd.BDDDomain allocateBDDDomain(Domain dom)
dom
- domain to match
public java.util.Collection getBDDDomains(Domain dom)
dom
- domain
public net.sf.javabdd.BDDDomain getBDDDomain(Domain dom, int k)
dom
- domaink
- index
public net.sf.javabdd.BDDDomain getBDDDomain(java.lang.String s)
s
- name of BDD domain
public jwutil.collections.MultiMap getBDDDomains()
public InferenceRule createInferenceRule(java.util.List top, RuleTerm bottom)
Solver
top
- list of subgoals of rulebottom
- head of rule
public Relation createRelation(java.lang.String name, java.util.List attributes)
Solver
createRelation
in class Solver
name
- name of relationattributes
- attributes of relation
public void reportStats()
Solver
public net.sf.javabdd.BDDFactory getBDDFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |