Class NonGraphLockedSolver

java.lang.Object
de.grogra.task.Solver
de.grogra.task.SolverInOwnThread
de.grogra.util.concurrent.NonGraphLockedSolver
All Implemented Interfaces:
Runnable

public class NonGraphLockedSolver extends SolverInOwnThread
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 Details

    • NonGraphLockedSolver

      public NonGraphLockedSolver(Workbench wb)
  • Method Details

    • solveImpl

      protected void solveImpl(PartialTask task)
      Description copied from class: SolverInOwnThread
      This method has to be implemented to perform the actual work.
      Specified by:
      solveImpl in class SolverInOwnThread
      Parameters:
      task - task to solve
    • createThread

      protected Thread createThread()
      Description copied from class: SolverInOwnThread
      Create the thread to use. If this returns null, the solve methods operates synchronously, i.e., it immediately solves the partial task.
      Specified by:
      createThread in class SolverInOwnThread
      Returns:
      thread to use for operation, or null in synchronous case
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class SolverInOwnThread