|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkAbstract uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkArray
public class Grid2DSquareCellIntChunkArray
TODO: docs
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 |
Grid2DSquareCellIntChunkArray()
Default constructor |
protected |
Grid2DSquareCellIntChunkArray(Grid2DSquareCellIntChunkAbstract grid2DSquareCellIntChunk,
Grid2DSquareCellAbstract.ChunkID chunkID)
TODO: 1. |
protected |
Grid2DSquareCellIntChunkArray(Grid2DSquareCellInt grid2DSquareCellInt,
Grid2DSquareCellAbstract.ChunkID chunkID)
Creates a new Grid2DSquareCellInt grid containing all no data values. |
Method Summary | |
---|---|
void |
clearData()
Clears the data associated with this. |
int |
getCell(int chunkCellRowIndex,
int chunkCellColIndex,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row chunkCellColIndex. |
int[][] |
getData()
TODO: docs |
protected void |
initCell(int chunkCellRowIndex,
int chunkCellColIndex,
int valueToInitialise)
Initialises the value at position given by: chunk cell row chunkCellRowIndex; chunk cell column chunkCellColIndex. |
void |
initData()
Initialises the data associated with this. |
AbstractIterator |
iterator()
Returns a Grid2DSquareCellIntChunkArrayIterator for iterating over the cells in this. |
int |
setCell(int chunkCellRowIndex,
int chunkCellColIndex,
int valueToSet,
int noDataValue)
Returns the value at position given by: chunk cell row chunkCellRowIndex; chunk cell row 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.Grid2DSquareCellIntChunkAbstract |
---|
getArithmeticMeanDouble, getCellDouble, getGrid2DSquareCellInt, getMaxInt, getMedianDouble, getMinInt, getModeTIntHashSet, 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 |
---|
protected Grid2DSquareCellIntChunkArray()
protected Grid2DSquareCellIntChunkArray(Grid2DSquareCellInt grid2DSquareCellInt, Grid2DSquareCellAbstract.ChunkID chunkID)
grid2DSquareCellInt
- chunkID
- protected Grid2DSquareCellIntChunkArray(Grid2DSquareCellIntChunkAbstract grid2DSquareCellIntChunk, Grid2DSquareCellAbstract.ChunkID chunkID)
Method Detail |
---|
public java.lang.String toString()
toString
in class Grid2DSquareCellChunkAbstract
public void initData()
initData
in class Grid2DSquareCellIntChunkAbstract
public int[][] getData()
public void clearData()
clearData
in class Grid2DSquareCellIntChunkAbstract
public int getCell(int chunkCellRowIndex, int chunkCellColIndex, int noDataValue)
getCell
in class Grid2DSquareCellIntChunkAbstract
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin of this chunknoDataValue
- the noDataValue of this.grid2DSquareCellIntprotected void initCell(int chunkCellRowIndex, int chunkCellColIndex, int valueToInitialise)
initCell
in class Grid2DSquareCellIntChunkAbstract
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin of this chunkvalueToInitialise
- the value with which the cell is initialisedpublic int setCell(int chunkCellRowIndex, int chunkCellColIndex, int valueToSet, int noDataValue)
setCell
in class Grid2DSquareCellIntChunkAbstract
chunkCellRowIndex
- the row index of the cell w.r.t. the origin of this chunkchunkCellColIndex
- the column index of the cell w.r.t. the origin of this chunkvalueToSet
- the value the cell is to be set tonoDataValue
- the noDataValue of this.grid2DSquareCellIntpublic AbstractIterator iterator()
iterator
in class Grid2DSquareCellChunkAbstract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |