uk.ac.leeds.ccg.andyt.grids.core
Class Grid2DSquareCellDoubleChunkJAI

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract
      extended by uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkAbstract
          extended by uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkJAI
All Implemented Interfaces:
java.io.Serializable

public class Grid2DSquareCellDoubleChunkJAI
extends Grid2DSquareCellDoubleChunkAbstract
implements java.io.Serializable

Grid2DSquareCellDoubleChunkAbstract extension that stores cell values in a javax.media.jai.TiledImage.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract
Grid2DSquareCellChunkAbstract.ChunkCellID
 
Field Summary
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract
chunkID, grid2DSquareCell, isSwapUpToDate
 
Constructor Summary
  Grid2DSquareCellDoubleChunkJAI()
          Creates a new Grid2DSquareCellDoubleChunkJAI.
protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDoubleChunkAbstract grid2DSquareCellDoubleChunk, Grid2DSquareCellAbstract.ChunkID chunkID)
          Creates a new Grid2DSquareCellDoubleChunkJAI from a Grid2DSquareCellDoubleChunkAbstract with chunkID ChunkID
protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDouble grid2DSquareCellDouble, Grid2DSquareCellAbstract.ChunkID chunkID)
          Creates a new Grid2DSquareCellDoubleChunkJAI for Grid2DSquareCellDouble with chunkID ChunkID
protected Grid2DSquareCellDoubleChunkJAI(javax.media.jai.remote.SerializableRenderedImage serializableRenderedImage, Grid2DSquareCellAbstract.ChunkID chunkID)
          Creates a new Grid2DSquareCellDoubleChunkJAI from a SerializableRenderedImage.
 
Method Summary
protected  void clearData()
          Clears the data associated with this.
protected  double getCell(int chunkCellRowIndex, int chunkCellColIndex, double noDataValue)
          Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex.
protected  javax.media.jai.TiledImage getData()
          For returning data TODO: Return a copy of this.data and make public?
protected  void initCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToInitialise)
          Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex.
protected  void initData()
          Initialises the data associated with this.
protected  void initData(int ncols, int nrows)
          Initialises the data associated with this.
protected  IteratorAbstract iterator()
          Returns a Grid2DSquareCellDoubleChunkJAIIterator for iterating over the cells in this.
protected  double setCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToSet, double noDataValue)
          Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex and sets it to valueToSet
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkAbstract
getArithmeticMeanBigDecimal, getArithmeticMeanBigDecimal, getArithmeticMeanDouble, getArithmeticMeanDouble, getCell, getCellBigDecimal, getGrid2DSquareCellDouble, getGrid2DSquareCellDouble, getMaxDouble, getMaxDouble, getMedianDouble, getMedianDouble, getMinDouble, getMinDouble, getModeTDoubleHashSet, getModeTDoubleHashSet, getNonNoDataValueCountBigInteger, getNonNoDataValueCountBigInteger, getNonNoDataValueCountInt, getNonNoDataValueCountInt, getStandardDeviationDouble, getStandardDeviationDouble, getSumBigDecimal, getSumBigDecimal, initCell, initCells, initCells, setCell, sort1, toArrayIncludingNoDataValues, toArrayIncludingNoDataValues, toArrayNotIncludingNoDataValues, toArrayNotIncludingNoDataValues
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract
getChunkID, getChunkID, getDescription, getGrid2DSquareCell, getGrid2DSquareCell, getIsSwapUpToDate, getIsSwapUpToDate, getName, getName, inChunk, inChunk, initChunkID, initGrid2DSquareCell, iterator, setIsSwapUpToDate, setIsSwapUpToDate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid2DSquareCellDoubleChunkJAI

public Grid2DSquareCellDoubleChunkJAI()
Creates a new Grid2DSquareCellDoubleChunkJAI.


Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI(javax.media.jai.remote.SerializableRenderedImage serializableRenderedImage,
                                         Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellDoubleChunkJAI from a SerializableRenderedImage.

Parameters:
serializableRenderedImage - The SerializableRenderedImage from which to create this.
chunkID - The ChunkID of this.

Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDouble grid2DSquareCellDouble,
                                         Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellDoubleChunkJAI for Grid2DSquareCellDouble with chunkID ChunkID

Parameters:
grid2DSquareCellDouble - The Grid2DSquareCellDouble for which this is created.
chunkID - The ChunkID of this.

Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDoubleChunkAbstract grid2DSquareCellDoubleChunk,
                                         Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellDoubleChunkJAI from a Grid2DSquareCellDoubleChunkAbstract with chunkID ChunkID

Parameters:
grid2DSquareCellDoubleChunkAbstract - The Grid2DSquareCellDoubleChunkAbstract from which this is created.
chunkID - The ChunkID of this.
Method Detail

initData

protected void initData()
Initialises the data associated with this.

Specified by:
initData in class Grid2DSquareCellDoubleChunkAbstract

initData

protected void initData(int ncols,
                        int nrows)
Initialises the data associated with this.


getData

protected javax.media.jai.TiledImage getData()
For returning data TODO: Return a copy of this.data and make public?


clearData

protected void clearData()
Clears the data associated with this.

Specified by:
clearData in class Grid2DSquareCellDoubleChunkAbstract

getCell

protected double getCell(int chunkCellRowIndex,
                         int chunkCellColIndex,
                         double noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex.

Specified by:
getCell in class Grid2DSquareCellDoubleChunkAbstract
Parameters:
chunkCellRowIndex - the row index of the cell w.r.t. the origin of this chunk
chunkCellColIndex - the column index of the cell w.r.t. the origin of this chunk
noDataValue - the noDataValue of this.grid2DSquareCellDouble

setCell

protected double setCell(int chunkCellRowIndex,
                         int chunkCellColIndex,
                         double valueToSet,
                         double noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex and sets it to valueToSet

Specified by:
setCell in class Grid2DSquareCellDoubleChunkAbstract
Parameters:
chunkCellRowIndex - the row index of the cell w.r.t. the origin of this chunk
chunkCellColIndex - the column index of the cell w.r.t. the origin of this chunk
valueToSet - the value the cell is to be set to
noDataValue - the noDataValue of this.grid2DSquareCellDouble

initCell

protected void initCell(int chunkCellRowIndex,
                        int chunkCellColIndex,
                        double valueToInitialise)
Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex. Utility method for constructor.

Specified by:
initCell in class Grid2DSquareCellDoubleChunkAbstract
Parameters:
chunkCellRowIndex - the row index of the cell w.r.t. the origin of this chunk
chunkCellColIndex - the column index of the cell w.r.t. the origin of this chunk
valueToInitialise - the value with which the cell is initialised

iterator

protected IteratorAbstract iterator()
Returns a Grid2DSquareCellDoubleChunkJAIIterator for iterating over the cells in this.

Specified by:
iterator in class Grid2DSquareCellChunkAbstract