de.grogra.rgg.model
public class LocalSolver extends SolverInOwnThread implements QueueSolver
| Constructor and Description |
|---|
LocalSolver(Workbench wb) |
| Modifier and Type | Method and Description |
|---|---|
void |
addQueuesTo(QueueCollection qc) |
void |
clearQueues() |
protected java.lang.Thread |
createThread()
Create the thread to use.
|
void |
run() |
protected void |
solveImpl(PartialTask task)
This method has to be implemented to perform the actual work.
|
dispose, solvegetCurrentPartialTask, getTask, initializepublic LocalSolver(Workbench wb)
public void addQueuesTo(QueueCollection qc)
addQueuesTo in interface QueueSolverpublic void clearQueues()
clearQueues in interface QueueSolverprotected java.lang.Thread createThread()
SolverInOwnThreadnull,
the solve methods operates synchronously, i.e.,
it immediately solves the partial task.createThread in class SolverInOwnThreadnull
in synchronous casepublic void run()
run in interface java.lang.Runnablerun in class SolverInOwnThreadprotected void solveImpl(PartialTask task)
SolverInOwnThreadsolveImpl in class SolverInOwnThreadtask - task to solve