java.lang.Object
de.grogra.task.Solver
de.grogra.task.SolverInOwnThread
de.grogra.util.concurrent.NonGraphLockedSolver
- All Implemented Interfaces:
Runnable
A solver for PTask that should not make modification on the graph.
The Solver do not processes grahp queues, so it should not be albe
to push modification in the graph after the execution.
NonGraphLockedSolver do not derive the graph before starting a solve.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
NonGraphLockedSolver
-
-
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
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classSolverInOwnThread
-