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 TypeMethodDescriptionvoidvoidprotected ThreadCreate the thread to use.voidrun()protected voidsolveImpl(PartialTask task) This method has to be implemented to perform the actual work.Methods inherited from class de.grogra.task.SolverInOwnThread
dispose, solveMethods inherited from class de.grogra.task.Solver
getCurrentPartialTask, getTask, initialize
-
Constructor Details
-
LocalSolver
-
-
Method Details
-
solveImpl
Description copied from class:SolverInOwnThreadThis method has to be implemented to perform the actual work.- Specified by:
solveImplin classSolverInOwnThread- Parameters:
task- task to solve
-
createThread
Description copied from class:SolverInOwnThreadCreate the thread to use. If this returnsnull, thesolvemethods operates synchronously, i.e., it immediately solves the partial task.- Specified by:
createThreadin classSolverInOwnThread- Returns:
- thread to use for operation, or
nullin synchronous case
-
addQueuesTo
- Specified by:
addQueuesToin interfaceQueueSolver
-
clearQueues
public void clearQueues()- Specified by:
clearQueuesin interfaceQueueSolver
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classSolverInOwnThread
-