Class Parallelized.Tile

java.lang.Object
TiledProcess<Isolines[]>.org.apache.sis.internal.processing.image.TiledProcess.Task
org.apache.sis.internal.processing.isoline.Parallelized.Tile
All Implemented Interfaces:
Callable<Isolines[]>
Enclosing class:
Parallelized

private final class Parallelized.Tile extends TiledProcess<Isolines[]>.Task
A sub-task doing isoline computation on a sub-region of the image. The region is determined by the TiledProcess.Task.iterator.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Isolines[]
    Isolines computed in the sub-region of this sub-task.

    Fields inherited from class org.apache.sis.internal.processing.image.TiledProcess.Task

    iterator
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new sub-task.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Invoked in a background thread for performing isoline computation.
    protected void
    Invoked in a background thread for merging results of two sub-tasks.
    protected Isolines[]
    Invoked on the last sub-task (after all merges) for getting final result.

    Methods inherited from class org.apache.sis.internal.processing.image.TiledProcess.Task

    call

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • isolines

      private Isolines[] isolines
      Isolines computed in the sub-region of this sub-task.
  • Constructor Details

    • Tile

      Tile()
      Creates a new sub-task.
  • Method Details

    • execute

      protected void execute() throws org.opengis.referencing.operation.TransformException
      Invoked in a background thread for performing isoline computation.
      Specified by:
      execute in class TiledProcess<Isolines[]>.Task
      Throws:
      org.opengis.referencing.operation.TransformException
    • merge

      protected void merge(TiledProcess<Isolines[]>.Task neighbor) throws org.opengis.referencing.operation.TransformException
      Invoked in a background thread for merging results of two sub-tasks.
      Specified by:
      merge in class TiledProcess<Isolines[]>.Task
      Parameters:
      neighbor - the other sub-task to merge with this one.
      Throws:
      org.opengis.referencing.operation.TransformException
    • result

      protected Isolines[] result() throws org.opengis.referencing.operation.TransformException
      Invoked on the last sub-task (after all merges) for getting final result.
      Specified by:
      result in class TiledProcess<Isolines[]>.Task
      Returns:
      the computation result.
      Throws:
      org.opengis.referencing.operation.TransformException