|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.bddbddb.Solver
public abstract class Solver
Solver
Nested Class Summary | |
---|---|
static class |
Solver.MyReader
A LineNumberReader that can nest through multiple included files. |
Field Summary | |
---|---|
java.io.PrintStream |
err
|
java.io.PrintStream |
out
Trace output stream. |
long |
startTime
|
Constructor Summary | |
---|---|
protected |
Solver()
Construct a solver object. |
Method Summary | |
---|---|
static java.lang.ClassLoader |
addBDDLibraryToClasspath(java.lang.String[] args)
|
void |
addSaveHook(java.lang.Runnable r)
|
abstract void |
cleanup()
Clean up the solver, freeing the memory associated with it. |
void |
clear()
Clear this solver of all relations, domains, and rules. |
abstract Relation |
createRelation(java.lang.String name,
java.util.List attributes)
Create a new relation. |
void |
doCallbacks(java.util.Collection c)
|
static Solver |
execSolver(java.lang.String[] args)
|
abstract void |
finish()
Called after solving. |
java.lang.String |
getBaseDir()
Get the base directory used for output. |
java.util.Collection |
getComparisonRelations()
Get all the equivalence relations. |
Domain |
getDomain(java.lang.String name)
Get the named domain. |
IterationFlowGraph |
getIterationFlowGraph()
Return the iteration flow graph. |
int |
getNumberOfRelations()
Return the number of relations. |
Relation |
getRelation(int index)
Get the relation with the given index. |
Relation |
getRelation(java.lang.String name)
Get the named relation. |
jwutil.collections.IndexMap |
getRelations()
|
java.util.Collection |
getRelationsToLoad()
Return the collection of relations to load. |
java.util.Collection |
getRelationsToSave()
Return the collection of relations to save. |
InferenceRule |
getRule(int i)
Returns the ith rule. |
InferenceRule |
getRule(java.lang.String s)
Returns the inference rule with the given name. |
java.util.List |
getRules()
Return the list of rules. |
InferenceRule |
getRuleThatContains(Variable v)
|
void |
initialize()
Initialize all of the relations and rules. |
void |
load(Solver.MyReader in)
|
void |
load(java.lang.String filename)
|
static void |
main(java.lang.String[] args)
Replacement main() function that checks if we have the BDD library in the classpath. |
static Solver |
main2(java.lang.String[] args)
The entry point to the application. |
static void |
printUsage()
Print usage information. |
void |
run()
|
void |
save()
|
abstract void |
solve()
Solve the rules. |
void |
stratify(boolean noisy)
Stratify the rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.io.PrintStream out
public java.io.PrintStream err
public long startTime
Constructor Detail |
---|
protected Solver()
Method Detail |
---|
public abstract Relation createRelation(java.lang.String name, java.util.List attributes)
name
- name of relationattributes
- attributes of relation
public void clear()
public void initialize()
public void stratify(boolean noisy)
public abstract void solve()
public abstract void finish()
public abstract void cleanup()
public Domain getDomain(java.lang.String name)
name
- domain name
public Relation getRelation(java.lang.String name)
name
- relation name
public Relation getRelation(int index)
index
- index desired
public jwutil.collections.IndexMap getRelations()
public java.util.Collection getComparisonRelations()
public java.lang.String getBaseDir()
public void load(java.lang.String filename) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void load(Solver.MyReader in) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void run()
public void save() throws java.io.IOException
java.io.IOException
public void addSaveHook(java.lang.Runnable r)
public void doCallbacks(java.util.Collection c)
public static Solver main2(java.lang.String[] args) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
args
- command line arguments
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static void printUsage()
public int getNumberOfRelations()
public java.util.List getRules()
public InferenceRule getRule(int i)
i
- index
public InferenceRule getRule(java.lang.String s)
s
- rule name
public InferenceRule getRuleThatContains(Variable v)
public IterationFlowGraph getIterationFlowGraph()
public java.util.Collection getRelationsToLoad()
public java.util.Collection getRelationsToSave()
public static Solver execSolver(java.lang.String[] args) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
args
-
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static java.lang.ClassLoader addBDDLibraryToClasspath(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |