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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
NonGraphLockedSolver
-
-
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
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classSolverInOwnThread
-