Class Parallelized.Tile
- Enclosing class:
- Parallelized
A sub-task doing isoline computation on a sub-region of the image.
The region is determined by the
TiledProcess.Task.iterator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()Invoked in a background thread for performing isoline computation.protected voidmerge(TiledProcess<Isolines[]>.Task neighbor) Invoked in a background thread for merging results of two sub-tasks.protected Isolines[]result()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
-
Field Details
-
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.TransformExceptionInvoked in a background thread for performing isoline computation.- Specified by:
executein classTiledProcess<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:
mergein classTiledProcess<Isolines[]>.Task- Parameters:
neighbor- the other sub-task to merge with this one.- Throws:
org.opengis.referencing.operation.TransformException
-
result
Invoked on the last sub-task (after all merges) for getting final result.- Specified by:
resultin classTiledProcess<Isolines[]>.Task- Returns:
- the computation result.
- Throws:
org.opengis.referencing.operation.TransformException
-