|
||||||||||
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.AbstractGrid2DSquareCellChunk uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellDoubleChunk uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkRAF
public class Grid2DSquareCellDoubleChunkRAF
AbstractGrid2DSquareCellDoubleChunk 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 | |
---|---|
protected 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 | |
---|---|
|
Grid2DSquareCellDoubleChunkRAF()
Default constructor |
protected |
Grid2DSquareCellDoubleChunkRAF(java.io.File file,
AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellDoubleChunk,
AbstractGrid2DSquareCell.ChunkID chunkID)
TODO: docs Optimise for this type (see commented code for clues) |
protected |
Grid2DSquareCellDoubleChunkRAF(java.io.File file,
Grid2DSquareCellDouble grid2DSquareCellDouble,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
Creates a new Grid2DSquareCellDouble grid containing all no data values. |
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 java.io.RandomAccessFile |
getData()
For returning this.randomAccessFile. |
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 AbstractIterator |
iterator()
Returns a Grid2DSquareCellDoubleChunkRAFIterator 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.AbstractGrid2DSquareCellChunk |
---|
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 |
Field Detail |
---|
protected java.io.RandomAccessFile randomAccessFile
Constructor Detail |
---|
public Grid2DSquareCellDoubleChunkRAF()
protected Grid2DSquareCellDoubleChunkRAF(java.io.File file, Grid2DSquareCellDouble grid2DSquareCellDouble, AbstractGrid2DSquareCell.ChunkID _ChunkID)
grid2DSquareCellDouble
- _ChunkID
- protected Grid2DSquareCellDoubleChunkRAF(java.io.File file, AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellDoubleChunk, AbstractGrid2DSquareCell.ChunkID chunkID)
Method Detail |
---|
protected void initData()
initData
in class AbstractGrid2DSquareCellDoubleChunk
protected java.io.RandomAccessFile getData()
protected void clearData()
clearData
in class AbstractGrid2DSquareCellDoubleChunk
protected double getCell(int chunkCellRowIndex, int chunkCellColIndex, double _NoDataValue)
getCell
in class AbstractGrid2DSquareCellDoubleChunk
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 chunk_NoDataValue
- the _NoDataValue of this.grid2DSquareCellDoubleprotected void initCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToInitialise)
initCell
in class AbstractGrid2DSquareCellDoubleChunk
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 initialisedprotected double setCell(int chunkCellRowIndex, int chunkCellColIndex, double valueToSet, double _NoDataValue)
setCell
in class AbstractGrid2DSquareCellDoubleChunk
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 to_NoDataValue
- the _NoDataValue of this.grid2DSquareCellDoubleprotected AbstractIterator iterator()
iterator
in class AbstractGrid2DSquareCellChunk
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |