|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMsat
public class Msat
| Constructor Summary | |
|---|---|
Msat(int numProcessors)
Constructor for Msat |
|
Msat(int numProcessors,
java.lang.String filename)
Constructor for Msat |
|
| Method Summary | |
|---|---|
Formula |
getFormula()
Returns the formula |
SubProblem |
getSubProblem()
Returns the next subproblem that needs to be solved if one exists and removes the subproblem from the list of subproblems that needs solving |
void |
setFormula(Formula formula)
Sets the formula |
void |
setNumSubProb(int n)
Sets the number of subproblems |
void |
solve()
Calls the split method to split the formula and then starts the solvers |
java.util.HashSet<SubProblem> |
split(Formula f)
Splits a complete problem into numSubProb subproblems |
void |
workCompleted(Solver solver)
When a solver is completed solving a subproblem, it removes the subproblem from the list of subproblems that are in progress, prints out that the thread has completed its task and also the outcome of the threads task (whether a satisfying assignment was found). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
| Constructor Detail |
|---|
public Msat(int numProcessors)
numProcessors - the number of
processors
public Msat(int numProcessors,
java.lang.String filename)
throws java.io.FileNotFoundException
numProcessors - the number of
processorsfilename - the file that contains the formula
java.io.FileNotFoundException| Method Detail |
|---|
public void setFormula(Formula formula)
formula - the formulapublic Formula getFormula()
public void setNumSubProb(int n)
n - the number of subproblemspublic void workCompleted(Solver solver)
solver - the current solver that
has completed its taskpublic void solve()
public SubProblem getSubProblem()
public java.util.HashSet<SubProblem> split(Formula f)
f - the formula that needs to be
split
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||