java.lang.Object
de.grogra.task.Solver
de.grogra.task.SolverInOwnThread
de.grogra.rgg.model.LocalSolver
- All Implemented Interfaces:
QueueSolver
,Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected Thread
Create the thread to use.void
run()
protected void
solveImpl
(PartialTask task) This method has to be implemented to perform the actual work.Methods inherited from class de.grogra.task.SolverInOwnThread
dispose, solve
Methods inherited from class de.grogra.task.Solver
getCurrentPartialTask, getTask, initialize
-
Constructor Details
-
LocalSolver
-
-
Method Details
-
solveImpl
Description copied from class:SolverInOwnThread
This method has to be implemented to perform the actual work.- Specified by:
solveImpl
in classSolverInOwnThread
- Parameters:
task
- task to solve
-
createThread
Description copied from class:SolverInOwnThread
Create the thread to use. If this returnsnull
, thesolve
methods operates synchronously, i.e., it immediately solves the partial task.- Specified by:
createThread
in classSolverInOwnThread
- Returns:
- thread to use for operation, or
null
in synchronous case
-
addQueuesTo
- Specified by:
addQueuesTo
in interfaceQueueSolver
-
clearQueues
public void clearQueues()- Specified by:
clearQueues
in interfaceQueueSolver
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classSolverInOwnThread
-