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

TODO: docs

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
 
Constructor Summary
protected Grid2DSquareCellDoubleChunkJAI()
          Default constructor.
protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDoubleChunkAbstract grid2DSquareCellDoubleChunk, Grid2DSquareCellAbstract.ChunkID chunkID)
          TODO: docs
protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDouble grid2DSquareCellDouble, Grid2DSquareCellAbstract.ChunkID chunkID)
          TODO: docs
protected Grid2DSquareCellDoubleChunkJAI(javax.media.jai.remote.SerializableRenderedImage serializableRenderedImage, Grid2DSquareCellAbstract.ChunkID chunkID)
          For constructing back from a SerializableRenderedImage.
 
Method Summary
 void clearData()
          Clears the data associated with this.
 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
protected  void initCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToInitialise)
          Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex.
 void initData()
          Initialises the data associated with this.
 void initData(int ncols, int nrows)
          Initialises the data associated with this.
 AbstractIterator iterator()
          Returns a Grid2DSquareCellDoubleChunkJAIIterator for iterating over the cells in this.
 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
 java.lang.String toString()
          Returns a description of this.
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkAbstract
getArithmeticMeanBigDecimal, getArithmeticMeanDouble, getCellBigDecimal, getGrid2DSquareCellDouble, getMaxDouble, getMedianDouble, getMinDouble, getModeTDoubleHashSet, getNonNoDataValueCountBigInteger, getNonNoDataValueCountInt, getStandardDeviationDouble, getSumBigDecimal, initCells, sort1, toArrayIncludingNoDataValues, toArrayNotIncludingNoDataValues
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract
getChunkID, getGrid2DSquareCell, getName, inChunk, initChunkID, initGrid2DSquareCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI()
Default constructor.


Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI(javax.media.jai.remote.SerializableRenderedImage serializableRenderedImage,
                                         Grid2DSquareCellAbstract.ChunkID chunkID)
For constructing back from a SerializableRenderedImage.


Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDouble grid2DSquareCellDouble,
                                         Grid2DSquareCellAbstract.ChunkID chunkID)
TODO: docs


Grid2DSquareCellDoubleChunkJAI

protected Grid2DSquareCellDoubleChunkJAI(Grid2DSquareCellDoubleChunkAbstract grid2DSquareCellDoubleChunk,
                                         Grid2DSquareCellAbstract.ChunkID chunkID)
TODO: docs

Method Detail

toString

public java.lang.String toString()
Returns a description of this.

Specified by:
toString in class Grid2DSquareCellChunkAbstract

initData

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

Specified by:
initData in class Grid2DSquareCellDoubleChunkAbstract

initData

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


getData

protected javax.media.jai.TiledImage getData()
For returning data


clearData

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

Specified by:
clearData in class Grid2DSquareCellDoubleChunkAbstract

getCell

public 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

public 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

public AbstractIterator iterator()
Returns a Grid2DSquareCellDoubleChunkJAIIterator for iterating over the cells in this.

Specified by:
iterator in class Grid2DSquareCellChunkAbstract