Interface ITileOperationInitialisation<OPERATION extends ITileOperation>

Type Parameters:
OPERATION - the generic type of the operation to be performed

public interface ITileOperationInitialisation<OPERATION extends ITileOperation>
(for internal use) Interface for initializing parallel operations on 2D image tiles.
  • Method Summary

    Modifier and Type
    Method
    Description
    createTileOperation(int tileIndex, TileArea area)
    Creates a new instance of the supported parallel tile operation for a specifictile
    void
    init(OPERATION tileOperation)
    Initializes the parallel tile operation before it can be executed.
    void
    tileCount(int tileCount)
    Sets the total number of 2D image tiles to be processed.
  • Method Details

    • createTileOperation

      OPERATION createTileOperation(int tileIndex, TileArea area)
      Creates a new instance of the supported parallel tile operation for a specifictile
      Parameters:
      tileIndex - the sequential index of the tile
      area - the location and size of the tile in the full image
      Returns:
      a new parallel operation for processing the particular 2D image tile.
    • init

      void init(OPERATION tileOperation)
      Initializes the parallel tile operation before it can be executed. For example to set particular options / parameters for the processing.
      Parameters:
      tileOperation - the parallel operation that processes a specific 2D image tile.
    • tileCount

      void tileCount(int tileCount) throws FitsException
      Sets the total number of 2D image tiles to be processed.
      Parameters:
      tileCount - the total number of image tiles to be
      Throws:
      FitsException - if the operation cannot support the desired number of tiles, for example because data stored in a FITS file is for fewer tiles.