|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk
uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellIntChunk
uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkRAF
public class Grid2DSquareCellIntChunkRAF
AbstractGrid2DSquareCellIntChunk extension that stores cell values in a RandomAccessFile.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk |
---|
AbstractGrid2DSquareCellChunk.ChunkCellID |
Field Summary | |
---|---|
java.io.RandomAccessFile |
randomAccessFile
The RandomAccessFile for accessing file. |
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk |
---|
_ChunkID, _Grid2DSquareCell, isSwapUpToDate |
Constructor Summary | |
---|---|
|
Grid2DSquareCellIntChunkRAF()
Default constructor |
protected |
Grid2DSquareCellIntChunkRAF(java.io.File file,
AbstractGrid2DSquareCellIntChunk grid2DSquareCellIntChunk,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
TODO: docs Optimise for this type (see commented code for clues) |
protected |
Grid2DSquareCellIntChunkRAF(java.io.File file,
Grid2DSquareCellInt grid2DSquareCellInt,
AbstractGrid2DSquareCell.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. |
java.io.RandomAccessFile |
getData()
TODO: docs |
protected java.lang.String |
getDescription()
Returns a description of this. |
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. |
IteratorAbstract |
iterator()
Returns a Grid2DSquareCellIntChunkRAFIterator 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 column chunkCellColIndex and sets it to valueToSet |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk |
---|
getChunkID, getChunkID, 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 |
Field Detail |
---|
public java.io.RandomAccessFile randomAccessFile
Constructor Detail |
---|
public Grid2DSquareCellIntChunkRAF()
protected Grid2DSquareCellIntChunkRAF(java.io.File file, Grid2DSquareCellInt grid2DSquareCellInt, AbstractGrid2DSquareCell.ChunkID _ChunkID)
file
- grid2DSquareCellInt
- _ChunkID
- protected Grid2DSquareCellIntChunkRAF(java.io.File file, AbstractGrid2DSquareCellIntChunk grid2DSquareCellIntChunk, AbstractGrid2DSquareCell.ChunkID _ChunkID)
Method Detail |
---|
protected java.lang.String getDescription()
getDescription
in class AbstractGrid2DSquareCellChunk
public void initData()
initData
in class AbstractGrid2DSquareCellIntChunk
public java.io.RandomAccessFile getData()
public void clearData()
clearData
in class AbstractGrid2DSquareCellIntChunk
public int getCell(int chunkCellRowIndex, int chunkCellColIndex, int noDataValue)
getCell
in class AbstractGrid2DSquareCellIntChunk
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 AbstractGrid2DSquareCellIntChunk
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 AbstractGrid2DSquareCellIntChunk
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 IteratorAbstract iterator()
iterator
in class AbstractGrid2DSquareCellChunk
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |