|
||||||||||
| 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.OutOfMemoryErrorHandler
uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell
uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellInt
public class Grid2DSquareCellInt
A class to represent and manipulate int precision AbstractGrid2DSquareCell instances.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell |
|---|
AbstractGrid2DSquareCell.CellID, AbstractGrid2DSquareCell.ChunkID |
| Field Summary |
|---|
| Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell |
|---|
_ChunkNCols, _ChunkNRows, _Dimensions, _DimensionsScale, _Directory, _Grid2DSquareCellChunks, _GridStatistics, _Name, _NChunkCols, _NChunkRows, _NCols, _NRows, _UnsignedLongPowersOf2 |
| Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler |
|---|
_Grid2DSquareCells, _HandleOutOfMemoryErrorFalse, _HandleOutOfMemoryErrorTrue, _MemoryReserve, _Runtime |
| Constructor Summary | |
|---|---|
protected |
Grid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCell _Grid2DSquareCell,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
Creates a new Grid2DSquareCellInt based on values in _Grid2DSquareCell. |
protected |
Grid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long _NRows,
long _NCols,
java.math.BigDecimal[] _Dimensions,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
Creates a new Grid2DSquareCellInt with each cell value equal to Integer.MinValue. |
protected |
Grid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
java.io.File gridFile,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
Creates a new Grid2DSquareCellInt with values obtained from gridFile. |
protected |
Grid2DSquareCellInt(java.io.File _Directory,
java.io.File gridFile,
java.io.ObjectInputStream ois,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
Creates a new Grid2DSquareCellInt. |
|
Grid2DSquareCellInt(java.util.HashSet _Grid2DSquareCells)
Creates a new Grid2DSquareCellInt |
| Method Summary | |
|---|---|
protected int |
addToCell(AbstractGrid2DSquareCell.CellID cellID,
int valueToAdd)
|
int |
addToCell(AbstractGrid2DSquareCell.CellID cellID,
int valueToAdd,
boolean _HandleOutOfMemoryError)
|
protected int |
addToCell(double x,
double y,
int valueToAdd)
|
int |
addToCell(double x,
double y,
int valueToAdd,
boolean _HandleOutOfMemoryError)
|
protected int |
addToCell(long _CellRowIndex,
long _CellColIndex,
int valueToAdd)
|
int |
addToCell(long _CellRowIndex,
long _CellColIndex,
int valueToAdd,
boolean _HandleOutOfMemoryError)
|
int |
getCell(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
|
protected int |
getCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
int |
getCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
protected int |
getCell(double x,
double y)
For returning the value of the cell containing point given by x-coordinate x, y-coordinate y as a int. |
int |
getCell(double x,
double y,
boolean _HandleOutOfMemoryError)
For returning the value of the cell containing point given by x-coordinate x, y-coordinate y as a int. |
protected int |
getCell(long _CellRowIndex,
long _CellColIndex)
|
int |
getCell(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected int[] |
getCells(double x,
double y,
double distance)
|
int[] |
getCells(double x,
double y,
double distance,
boolean _HandleOutOfMemoryError)
|
protected int[] |
getCells(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance)
|
int[] |
getCells(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance,
boolean _HandleOutOfMemoryError)
|
protected int[] |
getCells(long _CellRowIndex,
long _CellColIndex,
double distance)
|
int[] |
getCells(long _CellRowIndex,
long _CellColIndex,
double distance,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCellIntChunk |
getGrid2DSquareCellIntChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
AbstractGrid2DSquareCellIntChunk |
getGrid2DSquareCellIntChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCellIntChunk |
getGrid2DSquareCellIntChunk(int _ChunkRowIndex,
int _ChunkColIndex)
|
AbstractGrid2DSquareCellIntChunk |
getGrid2DSquareCellIntChunk(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getNearestValueDouble(double x,
double y)
|
double |
getNearestValueDouble(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected double |
getNearestValueDouble(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue)
|
double |
getNearestValueDouble(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue,
boolean _HandleOutOfMemoryError)
|
protected double |
getNearestValueDouble(long _CellRowIndex,
long _CellColIndex)
|
double |
getNearestValueDouble(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getNearestValueDoubleDistance(double x,
double y)
|
double |
getNearestValueDoubleDistance(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected double |
getNearestValueDoubleDistance(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue)
|
double |
getNearestValueDoubleDistance(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue,
boolean _HandleOutOfMemoryError)
|
protected double |
getNearestValueDoubleDistance(long _CellRowIndex,
long _CellColIndex)
|
double |
getNearestValueDoubleDistance(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(double x,
double y)
|
AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue)
|
AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(long _CellRowIndex,
long _CellColIndex)
|
AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected int |
getNoDataValue()
|
int |
getNoDataValue(boolean _HandleOutOfMemoryError)
|
java.math.BigDecimal |
getNoDataValueBigDecimal(boolean _HandleOutOfMemoryError)
|
protected void |
initCell(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise)
Initilises the value at _CellRowIndex, _CellColIndex. |
protected void |
initCell(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise,
boolean _HandleOutOfMemoryError)
Initilises the value at _CellRowIndex, _CellColIndex. |
protected void |
initCellFast(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise)
Initilises the value at _CellRowIndex, _CellColIndex and does nothing about this._GridStatistics |
protected void |
initCellFast(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise,
boolean _HandleOutOfMemoryError)
Initilises the value at _CellRowIndex, _CellColIndex and does nothing about this._GridStatistics. |
protected void |
initGrid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCell _Grid2DSquareCell,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
Initialise this. |
protected void |
initGrid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
java.io.File gridFile,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
Initialises this. |
protected void |
initGrid2DSquareCellInt(Grid2DSquareCellInt _Grid2DSquareCellInt,
boolean initTransientFields)
Initialises this. |
java.util.Iterator |
iterator(boolean _HandleOutOfMemoryError)
|
int |
setCell(AbstractGrid2DSquareCell.CellID cellID,
int newValue,
boolean _HandleOutOfMemoryError)
For returning the value of the cell with cell ID cellID and setting it to newValue. |
protected int |
setCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue)
|
int |
setCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue,
boolean _HandleOutOfMemoryError)
|
protected int |
setCell(double x,
double y,
int newValue)
For returning the value at x-coordinate x, y-coordinate y and setting it to newValue. |
int |
setCell(double x,
double y,
int newValue,
boolean _HandleOutOfMemoryError)
For returning the value at x-coordinate x, y-coordinate y and setting it to newValue. |
protected int |
setCell(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue)
For returning the value of the cell in chunk given by _ChunkRowIndex and _ChunkColIndex and cell in the chunk given by chunkCellColIndex and chunkCellRowIndex and setting it to newValue. |
int |
setCell(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue,
boolean _HandleOutOfMemoryError)
For returning the value of the cell in chunk given by _ChunkRowIndex and _ChunkColIndex and cell in the chunk given by chunkCellColIndex and chunkCellRowIndex and setting it to newValue. |
protected double |
setCell(long _CellRowIndex,
long _CellColIndex,
double newValue)
For returning the value at _CellRowIndex, _CellColIndex as a double and setting it to ( int ) newValue. |
protected int |
setCell(long _CellRowIndex,
long _CellColIndex,
int newValue)
For returning the value at _CellRowIndex, _CellColIndex and setting it to newValue. |
int |
setCell(long _CellRowIndex,
long _CellColIndex,
int newValue,
boolean _HandleOutOfMemoryError)
For returning the value at _CellRowIndex, _CellColIndex and setting it to newValue. |
java.lang.String |
toString(boolean _HandleOutOfMemoryError)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Grid2DSquareCellInt(java.util.HashSet _Grid2DSquareCells)
protected Grid2DSquareCellInt(java.io.File _Directory,
java.io.File gridFile,
java.io.ObjectInputStream ois,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
_Directory - The File _Directory to be used for swapping.gridFile - The File _Directory containing the File names thisFile that
the ois was constructed from.ois - The ObjectInputStream used in first attempt to construct this._Grid2DSquareCells - A HashSet of swappable AbstractGrid2DSquareCell
instances._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected Grid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long _NRows,
long _NCols,
java.math.BigDecimal[] _Dimensions,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
_GridStatistics - The AbstractGridStatistics to accompany this._Directory - The File _Directory to be used for swapping._Grid2DSquareCellIntChunkFactory - The
AbstractGrid2DSquareCellIntChunkFactory prefered for creating chunks._ChunkNRows - The number of rows of cells in any chunk._ChunkNCols - The number of columns of cells in any chunk._NRows - The number of rows of cells._NCols - The number of columns of cells._Dimensions - The cellsize, xmin, ymin, xmax and ymax._Grid2DSquareCells - A HashSet of swappable AbstractGrid2DSquareCell
instances._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected Grid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCell _Grid2DSquareCell,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
_GridStatistics - The AbstractGridStatistics to accompany this._Directory - The File _Directory to be used for swapping._Grid2DSquareCell - The AbstractGrid2DSquareCell from which this will
be constructed._Grid2DSquareCellIntChunkFactory - The
AbstractGrid2DSquareCellIntChunkFactory prefered to construct chunks
of this._ChunkNRows - The number of rows of cells in any chunk._ChunkNCols - The number of columns of cells in any chunk.startRowIndex - The _Grid2DSquareCell row index which is the bottom
most row of this.startColIndex - The _Grid2DSquareCell column index which is the left
most column of this.endRowIndex - The _Grid2DSquareCell row index which is the top most
row of this.endColIndex - The _Grid2DSquareCell column index which is the right
most column of this._Grid2DSquareCells - A HashSet of swappable AbstractGrid2DSquareCell
instances._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected Grid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
java.io.File gridFile,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
_GridStatistics - The AbstractGridStatistics to accompany the
returned grid._Directory - The File _Directory to be used for swapping.gridFile - Either a _Directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellDouble to be returned._Grid2DSquareCellIntChunkFactory - The
AbstractGrid2DSquareCellIntChunkFactory prefered to construct chunks
of this.startRowIndex - The _Grid2DSquareCell row index which is the bottom
most row of this.startColIndex - The _Grid2DSquareCell column index which is the left
most column of this.endRowIndex - The _Grid2DSquareCell row index which is the top most
row of this.endColIndex - The _Grid2DSquareCell column index which is the right
most column of this._Grid2DSquareCells - A HashSet of swappable AbstractGrid2DSquareCell
instances._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.| Method Detail |
|---|
public java.lang.String toString(boolean _HandleOutOfMemoryError)
toString in class AbstractGrid2DSquareCell_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are
initiated, then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected void initGrid2DSquareCellInt(Grid2DSquareCellInt _Grid2DSquareCellInt,
boolean initTransientFields)
_Grid2DSquareCellInt - The Grid2DSquareCellInt from which the fields
of this are set.initTransientFields - Iff true then transient fields of this are set
with those of _Grid2DSquareCellInt.
protected void initGrid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCell _Grid2DSquareCell,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
_GridStatistics - The AbstractGridStatistics to accompany this._Directory - The File _Directory to be used for swapping._Grid2DSquareCell - The AbstractGrid2DSquareCell from which this will
be constructed._Grid2DSquareCellIntChunkFactory - The
AbstractGrid2DSquareCellIntChunkFactory prefered to construct chunks
of this._ChunkNRows - The number of rows of cells in any chunk._ChunkNCols - The number of columns of cells in any chunk.startRowIndex - The _Grid2DSquareCell row index which is the bottom
most row of this.startColIndex - The _Grid2DSquareCell column index which is the left
most column of this.endRowIndex - The _Grid2DSquareCell row index which is the top most
row of this.endColIndex - The _Grid2DSquareCell column index which is the right
most column of this._Grid2DSquareCells - A HashSet of swappable AbstractGrid2DSquareCell
instances._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.initGrid2DSquareCellInt(
AbstractGridStatistics,
File,
AbstractGrid2DSquareCell,
AbstractGrid2DSquareCellIntChunkFactory,
int,
int,
long,
long,
long,
long,
HashSet,
boolean )
protected void initGrid2DSquareCellInt(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
java.io.File gridFile,
AbstractGrid2DSquareCellIntChunkFactory _Grid2DSquareCellIntChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
java.util.HashSet _Grid2DSquareCells,
boolean _HandleOutOfMemoryError)
_GridStatistics - The AbstractGridStatistics to accompany the
returned grid._Directory - The File _Directory to be used for swapping.gridFile - Either a _Directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellDouble to be returned._Grid2DSquareCellIntChunkFactory - The
AbstractGrid2DSquareCellIntChunkFactory prefered to construct chunks
of this.startRowIndex - The _Grid2DSquareCell row index which is the bottom
most row of this.startColIndex - The _Grid2DSquareCell column index which is the left
most column of this.endRowIndex - The _Grid2DSquareCell row index which is the top most
row of this.endColIndex - The _Grid2DSquareCell column index which is the right
most column of this._Grid2DSquareCells - A HashSet of swappable AbstractGrid2DSquareCell
instances._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.Grid2DSquareCellInt(
AbstractGridStatistics,
File,
File,
AbstractGrid2DSquareCellIntChunkFactory,
int,
int,
long,
long,
long,
long,
HashSet,
boolean )
public AbstractGrid2DSquareCellIntChunk getGrid2DSquareCellIntChunk(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected AbstractGrid2DSquareCellIntChunk getGrid2DSquareCellIntChunk(int _ChunkRowIndex,
int _ChunkColIndex)
public AbstractGrid2DSquareCellIntChunk getGrid2DSquareCellIntChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
_ChunkID - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected AbstractGrid2DSquareCellIntChunk getGrid2DSquareCellIntChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID -
public final int getNoDataValue(boolean _HandleOutOfMemoryError)
_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected final int getNoDataValue()
public java.math.BigDecimal getNoDataValueBigDecimal(boolean _HandleOutOfMemoryError)
getNoDataValueBigDecimal in class AbstractGrid2DSquareCell_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
public int getCell(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
_CellRowIndex - _CellColIndex - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int getCell(long _CellRowIndex,
long _CellColIndex)
_CellRowIndex - ._CellColIndex - .
public int getCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
_ChunkRowIndex - The chunk row index of the cell thats value is
returned._ChunkColIndex - The chunk column index of the cell thats value is
returned.chunkCellRowIndex - The chunk cell row index of the cell thats
value is returned.chunkCellColIndex - The chunk cell column index of the cell thats
value is returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int getCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
_ChunkRowIndex - The chunk row index of the cell thats value is
returned._ChunkColIndex - The chunk column index of the cell thats value is
returned.chunkCellRowIndex - The chunk cell row index of the cell thats
value is returned.chunkCellColIndex - The chunk cell column index of the cell thats
value is returned.
public final int getCell(double x,
double y,
boolean _HandleOutOfMemoryError)
x - The x-coordinate of the point.y - The y-coordinate of the point._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected final int getCell(double x,
double y)
x - The x-coordinate of the point.y - The y-coordinate of the point.
public final int getCell(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
_CellID - the CellID of the cell._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
public final int setCell(double x,
double y,
int newValue,
boolean _HandleOutOfMemoryError)
x - the x-coordinate of the point.y - the y-coordinate of the point.newValue - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected final int setCell(double x,
double y,
int newValue)
x - the x-coordinate of the point.y - the y-coordinate of the point.newValue - .
public final int setCell(AbstractGrid2DSquareCell.CellID cellID,
int newValue,
boolean _HandleOutOfMemoryError)
cellID - the CellID of the cell.newValue - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double setCell(long _CellRowIndex,
long _CellColIndex,
double newValue)
setCell in class AbstractGrid2DSquareCell_CellRowIndex - _CellColIndex - newValue -
public int setCell(long _CellRowIndex,
long _CellColIndex,
int newValue,
boolean _HandleOutOfMemoryError)
_CellRowIndex - _CellColIndex - newValue - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int setCell(long _CellRowIndex,
long _CellColIndex,
int newValue)
_CellRowIndex - _CellColIndex - newValue -
public int setCell(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue,
boolean _HandleOutOfMemoryError)
_ChunkRowIndex - _ChunkColIndex - chunkCellRowIndex - chunkCellColIndex - newValue - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int setCell(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue)
_ChunkRowIndex - _ChunkColIndex - chunkCellRowIndex - chunkCellColIndex - newValue -
public int setCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue,
boolean _HandleOutOfMemoryError)
_Grid2DSquareCellChunk - _ChunkRowIndex - _ChunkColIndex - chunkCellRowIndex - chunkCellColIndex - newValue - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int setCell(AbstractGrid2DSquareCellIntChunk _Grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
int newValue)
_Grid2DSquareCellChunk - _ChunkRowIndex - _ChunkColIndex - chunkCellRowIndex - chunkCellColIndex - newValue -
protected void initCell(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise,
boolean _HandleOutOfMemoryError)
_CellRowIndex - _CellColIndex - valueToInitialise - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected void initCell(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise)
_CellRowIndex - _CellColIndex - valueToInitialise -
protected void initCellFast(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise,
boolean _HandleOutOfMemoryError)
_CellRowIndex - _CellColIndex - valueToInitialise - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected void initCellFast(long _CellRowIndex,
long _CellColIndex,
int valueToInitialise)
_CellRowIndex - _CellColIndex - valueToInitialise -
public int[] getCells(double x,
double y,
double distance,
boolean _HandleOutOfMemoryError)
x - the x-coordinate of the circle centre from which cell values are
returned.y - the y-coordinate of the circle centre from which cell values are
returned.distance - the radius of the circle for which intersected cell
values are returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int[] getCells(double x,
double y,
double distance)
x - the x-coordinate of the circle centre from which cell values are
returned.y - the y-coordinate of the circle centre from which cell values are
returned.distance - the radius of the circle for which intersected cell
values are returned.
public int[] getCells(long _CellRowIndex,
long _CellColIndex,
double distance,
boolean _HandleOutOfMemoryError)
_CellRowIndex - the row index for the cell thats centroid is the
circle centre from which cell values are returned._CellColIndex - the column index for the cell thats centroid is the
circle centre from which cell values are returned.distance - the radius of the circle for which intersected cell
values are returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int[] getCells(long _CellRowIndex,
long _CellColIndex,
double distance)
_CellRowIndex - the row index for the cell thats centroid is the
circle centre from which cell values are returned._CellColIndex - the column index for the cell thats centroid is the
circle centre from which cell values are returned.distance - the radius of the circle for which intersected cell
values are returned.
public int[] getCells(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance,
boolean _HandleOutOfMemoryError)
x - The x-coordinate of the circle centre from which cell values are
returned.y - The y-coordinate of the circle centre from which cell values are
returned._CellRowIndex - The row index at y._CellColIndex - The col index at x.distance - The radius of the circle for which intersected cell
values are returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected int[] getCells(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance)
x - The x-coordinate of the circle centre from which cell values are
returned.y - The y-coordinate of the circle centre from which cell values are
returned._CellRowIndex - The row index at y._CellColIndex - The col index at x.distance - The radius of the circle for which intersected cell
values are returned.
public double getNearestValueDouble(double x,
double y,
boolean _HandleOutOfMemoryError)
x - The x-coordinate of the pointy - The y-coordinate of the point_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double getNearestValueDouble(double x,
double y)
x - The x-coordinate of the pointy - The y-coordinate of the point
public double getNearestValueDouble(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
_CellRowIndex - The row index from which average of the nearest data
values is returned._CellColIndex - The column index from which average of the nearest
data values is returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double getNearestValueDouble(long _CellRowIndex,
long _CellColIndex)
_CellRowIndex - The row index from which average of the nearest data
values is returned._CellColIndex - The column index from which average of the nearest
data values is returned.
public double getNearestValueDouble(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue,
boolean _HandleOutOfMemoryError)
x - The x-coordinate of the pointy - The y-coordinate of the point_CellRowIndex - The row index from which average of the nearest data
values is returned._CellColIndex - The column index from which average of the nearest
data values is returned._NoDataValue - _HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double getNearestValueDouble(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue)
x - The x-coordinate of the pointy - The y-coordinate of the point_CellRowIndex - The row index from which average of the nearest data
values is returned._CellColIndex - The column index from which average of the nearest
data values is returned._NoDataValue -
public AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(double x,
double y,
boolean _HandleOutOfMemoryError)
x - the x-coordinate of the pointy - the y-coordinate of the point_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(double x,
double y)
x - the x-coordinate of the pointy - the y-coordinate of the point
public AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
_CellRowIndex - The row index from which the cell IDs of the nearest
cells with data values are returned._CellColIndex - The column index from which the cell IDs of the nearest
cells with data values are returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(long _CellRowIndex,
long _CellColIndex)
_CellRowIndex - The row index from which the cell IDs of the nearest
cells with data values are returned._CellColIndex - The column index from which the cell IDs of the nearest
cells with data values are returned.
public AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue,
boolean _HandleOutOfMemoryError)
x - the x-coordinate of the pointy - the y-coordinate of the point_CellRowIndex - The row index from which the cell IDs of the nearest
cells with data values are returned._CellColIndex - The column index from which the cell IDs of the nearest
cells with data values are returned._NoDataValue - The no data value of the this._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue)
x - the x-coordinate of the pointy - the y-coordinate of the point_CellRowIndex - The row index from which the cell IDs of the nearest
cells with data values are returned._CellColIndex - The column index from which the cell IDs of the nearest
cells with data values are returned._NoDataValue - The no data value of the this.
public double getNearestValueDoubleDistance(double x,
double y,
boolean _HandleOutOfMemoryError)
x - The x-coordinate of the point.y - The y-coordinate of the point._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double getNearestValueDoubleDistance(double x,
double y)
x - The x-coordinate of the point.y - The y-coordinate of the point.
public double getNearestValueDoubleDistance(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
_CellRowIndex - The cell row index of the cell from which the
distance nearest to the nearest cell value is returned._CellColIndex - The cell column index of the cell from which the
distance nearest to the nearest cell value is returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double getNearestValueDoubleDistance(long _CellRowIndex,
long _CellColIndex)
_CellRowIndex - The cell row index of the cell from which the
distance nearest to the nearest cell value is returned._CellColIndex - The cell column index of the cell from which the
distance nearest to the nearest cell value is returned.
public double getNearestValueDoubleDistance(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue,
boolean _HandleOutOfMemoryError)
x - The x-coordinate of the point.y - The y-coordinate of the point._CellRowIndex - The cell row index of the cell from which the
distance nearest to the nearest cell value is returned._CellColIndex - The cell column index of the cell from which the
distance nearest to the nearest cell value is returned._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected double getNearestValueDoubleDistance(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
int _NoDataValue)
x - The x-coordinate of the point.y - The y-coordinate of the point._CellRowIndex - The cell row index of the cell from which the
distance nearest to the nearest cell value is returned._CellColIndex - The cell column index of the cell from which the
distance nearest to the nearest cell value is returned.
public final int addToCell(double x,
double y,
int valueToAdd,
boolean _HandleOutOfMemoryError)
x - the x-coordinate of the pointy - the y-coordinate of the pointvalueToAdd - the value to be added to the cell containing the point_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected final int addToCell(double x,
double y,
int valueToAdd)
x - the x-coordinate of the pointy - the y-coordinate of the pointvalueToAdd - the value to be added to the cell containing the point
public final int addToCell(AbstractGrid2DSquareCell.CellID cellID,
int valueToAdd,
boolean _HandleOutOfMemoryError)
cellID - the CellID of the cell.valueToAdd - the value to be added to the cell containing the point_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
protected final int addToCell(AbstractGrid2DSquareCell.CellID cellID,
int valueToAdd)
cellID - the CellID of the cell.valueToAdd - the value to be added to the cell containing the point
public int addToCell(long _CellRowIndex,
long _CellColIndex,
int valueToAdd,
boolean _HandleOutOfMemoryError)
_CellRowIndex - the row index of the cell._CellColIndex - the col index of the cell.valueToAdd - the value to be added to the cell._HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
NB1. If cell is not contained in this then then returns _NoDataValue.
NB2. Adding to _NoDataValue is done as if adding to a cell with value of
0.
TODO: Check Arithmetic
protected int addToCell(long _CellRowIndex,
long _CellColIndex,
int valueToAdd)
_CellRowIndex - the row index of the cell._CellColIndex - the col index of the cell.valueToAdd - the value to be added to the cell.
NB1. If cell is not contained in this then then returns _NoDataValue.
NB2. Adding to _NoDataValue is done as if adding to a cell with value of
0.
TODO: Check Arithmetic
public java.util.Iterator iterator(boolean _HandleOutOfMemoryError)
iterator in class AbstractGrid2DSquareCell_HandleOutOfMemoryError - If true then OutOfMemoryErrors are caught, swap operations are initiated,
then the method is re-called.
If false then OutOfMemoryErrors are caught and thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||