|
||||||||||
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.AbstractGrid2DSquareCell uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDouble
public class Grid2DSquareCellDouble
A class for representing grids of double precision values.
AbstractGrid2DSquareCell
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell |
---|
AbstractGrid2DSquareCell.CellID, AbstractGrid2DSquareCell.ChunkID |
Field Summary | |
---|---|
protected double |
_NoDataValue
For storing the NODATA value of the grid, which by default is Double.NEGATIVE_INFINITY. |
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell |
---|
_ChunkID_AbstractGrid2DSquareCellChunk_HashMap, _ChunkNCols, _ChunkNRows, _Dimensions, _DimensionsScale, _Directory, _Grids_Environment, _GridStatistics, _Name, _NChunkCols, _NChunkRows, _NCols, _NRows, _UnsignedLongPowersOf2 |
Constructor Summary | |
---|---|
|
Grid2DSquareCellDouble()
Creates a new Grid2DSquareCellDouble |
protected |
Grid2DSquareCellDouble(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCell _Grid2DSquareCell,
AbstractGrid2DSquareCellDoubleChunkFactory grid2DSquareCellDoubleChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
double _NoDataValue,
Grids_Environment _Grids_Environment,
boolean handleOutOfMemoryError)
Creates a new Grid2DSquareCellDouble based on values in _Grid2DSquareCell. |
protected |
Grid2DSquareCellDouble(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
AbstractGrid2DSquareCellDoubleChunkFactory grid2DSquareCellDoubleChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long _NRows,
long _NCols,
java.math.BigDecimal[] _Dimensions,
double _NoDataValue,
Grids_Environment _Grids_Environment,
boolean handleOutOfMemoryError)
Creates a new Grid2DSquareCellDouble with each cell value equal to _NoDataValue and all chunks of the same type. |
protected |
Grid2DSquareCellDouble(AbstractGridStatistics _GridStatistics,
java.io.File _Directory,
java.io.File gridFile,
AbstractGrid2DSquareCellDoubleChunkFactory grid2DSquareCellDoubleChunkFactory,
int _ChunkNRows,
int _ChunkNCols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex,
double _NoDataValue,
Grids_Environment _Grids_Environment,
boolean handleOutOfMemoryError)
Creates a new Grid2DSquareCellDouble with values obtained from gridFile. |
protected |
Grid2DSquareCellDouble(java.io.File _Directory,
java.io.File gridFile,
java.io.ObjectInputStream ois,
Grids_Environment _Grids_Environment,
boolean handleOutOfMemoryError)
Creates a new Grid2DSquareCellDouble. |
|
Grid2DSquareCellDouble(Grids_Environment _Grids_Environment)
Creates a new Grid2DSquareCellDouble |
Method Summary | |
---|---|
protected double |
addToCell(AbstractGrid2DSquareCell.CellID cellID,
double valueToAdd)
|
double |
addToCell(AbstractGrid2DSquareCell.CellID cellID,
double valueToAdd,
boolean handleOutOfMemoryError)
|
protected double |
addToCell(double x,
double y,
double valueToAdd)
|
double |
addToCell(double x,
double y,
double valueToAdd,
boolean handleOutOfMemoryError)
|
protected double |
addToCell(long _CellRowIndex,
long _CellColIndex,
double valueToAdd)
|
double |
addToCell(long _CellRowIndex,
long _CellColIndex,
double valueToAdd,
boolean handleOutOfMemoryError)
|
double |
get_NoDataValue(boolean handleOutOfMemoryError)
|
double |
getCell(AbstractGrid2DSquareCell.CellID cellID,
boolean handleOutOfMemoryError)
For returning the value of the cell with cell ID cellID as a int. |
protected double |
getCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
double |
getCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk,
int a_ChunkRowIndex,
int a_ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean handleOutOfMemoryError)
|
protected double |
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. |
double |
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 double. |
protected double |
getCell(long a_CellRowIndex,
long a_CellColIndex)
|
double |
getCell(long a_CellRowIndex,
long a_CellColIndex,
boolean handleOutOfMemoryError)
|
protected double[] |
getCells(double x,
double y,
double distance)
|
double[] |
getCells(double x,
double y,
double distance,
boolean handleOutOfMemoryError)
|
protected double[] |
getCells(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance)
|
double[] |
getCells(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance,
boolean handleOutOfMemoryError)
|
protected double[] |
getCells(long _CellRowIndex,
long _CellColIndex,
double distance)
|
double[] |
getCells(long _CellRowIndex,
long _CellColIndex,
double distance,
boolean handleOutOfMemoryError)
|
protected AbstractGrid2DSquareCellDoubleChunk |
getGrid2DSquareCellDoubleChunk(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
|
AbstractGrid2DSquareCellDoubleChunk |
getGrid2DSquareCellDoubleChunk(AbstractGrid2DSquareCell.ChunkID a_ChunkID,
boolean handleOutOfMemoryError)
|
protected AbstractGrid2DSquareCellDoubleChunk |
getGrid2DSquareCellDoubleChunk(int _ChunkRowIndex,
int _ChunkColIndex)
|
AbstractGrid2DSquareCellDoubleChunk |
getGrid2DSquareCellDoubleChunk(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,
double _NoDataValue)
|
double |
getNearestValueDouble(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double _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,
double _NoDataValue)
|
double |
getNearestValueDoubleDistance(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double _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,
double _NoDataValue)
|
AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double _NoDataValue,
boolean handleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(long _CellRowIndex,
long _CellColIndex)
|
AbstractGrid2DSquareCell.CellID[] |
getNearestValuesCellIDs(long _CellRowIndex,
long _CellColIndex,
boolean handleOutOfMemoryError)
|
java.math.BigDecimal |
getNoDataValueBigDecimal(boolean handleOutOfMemoryError)
|
protected void |
init_Cells(double value)
|
void |
init_Cells(double value,
boolean handleOutOfMemoryError)
|
protected void |
init_NoDataValue(double _NoDataValue)
Initialises _NoDataValue. |
protected void |
initCell(long _CellRowIndex,
long _CellColIndex,
double valueToInitialise)
Initilises the value at _CellRowIndex, _CellColIndex |
protected void |
initCell(long _CellRowIndex,
long _CellColIndex,
double valueToInitialise,
boolean handleOutOfMemoryError)
Initilises the value at _CellRowIndex, _CellColIndex |
protected void |
initCellFast(long a_CellRowIndex,
long a_CellColIndex,
double valueToInitialise)
Initilises the value at _CellRowIndex, _CellColIndex and does nothing about this._GridStatistics |
protected void |
initCellFast(long _CellRowIndex,
long _CellColIndex,
double valueToInitialise,
boolean handleOutOfMemoryError)
Initilises the value at _CellRowIndex, _CellColIndex and does nothing about this._GridStatistics |
java.util.Iterator |
iterator(boolean handleOutOfMemoryError)
|
double |
setCell(AbstractGrid2DSquareCell.CellID _CellID,
double newValue,
boolean handleOutOfMemoryError)
For returning the value of the cell with cell ID _CellID and setting it to newValue. |
protected double |
setCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
double newValue)
|
double |
setCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
double newValue,
boolean handleOutOfMemoryError)
|
protected double |
setCell(double x,
double y,
double newValue)
For returning the value at x-coordinate x, y-coordinate y and setting it to newValue. |
double |
setCell(double x,
double y,
double newValue,
boolean handleOutOfMemoryError)
For returning the value at x-coordinate x, y-coordinate y and setting it to newValue. |
protected double |
setCell(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
double 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. |
double |
setCell(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
double 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 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 |
Field Detail |
---|
protected double _NoDataValue
Constructor Detail |
---|
public Grid2DSquareCellDouble()
public Grid2DSquareCellDouble(Grids_Environment _Grids_Environment)
protected Grid2DSquareCellDouble(java.io.File _Directory, java.io.File gridFile, java.io.ObjectInputStream ois, Grids_Environment _Grids_Environment, 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._AbstractGrid2DSquareCell_HashSet
- 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 Grid2DSquareCellDouble(AbstractGridStatistics _GridStatistics, java.io.File _Directory, AbstractGrid2DSquareCellDoubleChunkFactory grid2DSquareCellDoubleChunkFactory, int _ChunkNRows, int _ChunkNCols, long _NRows, long _NCols, java.math.BigDecimal[] _Dimensions, double _NoDataValue, Grids_Environment _Grids_Environment, boolean handleOutOfMemoryError)
_GridStatistics
- The AbstractGridStatistics to accompany this._Directory
- The File _Directory to be used for swapping.grid2DSquareCellDoubleChunkFactory
- The
AbstractGrid2DSquareCellDoubleChunkFactory 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._NoDataValue
- The _NoDataValue._AbstractGrid2DSquareCell_HashSet
- 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 Grid2DSquareCellDouble(AbstractGridStatistics _GridStatistics, java.io.File _Directory, AbstractGrid2DSquareCell _Grid2DSquareCell, AbstractGrid2DSquareCellDoubleChunkFactory grid2DSquareCellDoubleChunkFactory, int _ChunkNRows, int _ChunkNCols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double _NoDataValue, Grids_Environment _Grids_Environment, boolean handleOutOfMemoryError)
_GridStatistics
- The AbstractGridStatistics to accompany this._Directory
- The File _Directory to be used for swapping._Grid2DSquareCell
- The AbstractGrid2DSquareCell from which this is
to be constructed.grid2DSquareCellDoubleChunkFactory
- The
AbstractGrid2DSquareCellDoubleChunkFactory 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._NoDataValue
- The _NoDataValue for this._AbstractGrid2DSquareCell_HashSet
- 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 Grid2DSquareCellDouble(AbstractGridStatistics _GridStatistics, java.io.File _Directory, java.io.File gridFile, AbstractGrid2DSquareCellDoubleChunkFactory grid2DSquareCellDoubleChunkFactory, int _ChunkNRows, int _ChunkNCols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double _NoDataValue, Grids_Environment _Grids_Environment, boolean handleOutOfMemoryError)
_GridStatistics
- The AbstractGridStatistics to accompany this._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.grid2DSquareCellDoubleChunkFactory
- The
AbstractGrid2DSquareCellDoubleChunkFactory 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._NoDataValue
- The _NoDataValue for this._AbstractGrid2DSquareCell_HashSet
- 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.
public AbstractGrid2DSquareCellDoubleChunk getGrid2DSquareCellDoubleChunk(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 AbstractGrid2DSquareCellDoubleChunk getGrid2DSquareCellDoubleChunk(int _ChunkRowIndex, int _ChunkColIndex)
public AbstractGrid2DSquareCellDoubleChunk getGrid2DSquareCellDoubleChunk(AbstractGrid2DSquareCell.ChunkID a_ChunkID, boolean handleOutOfMemoryError)
a_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 AbstractGrid2DSquareCellDoubleChunk getGrid2DSquareCellDoubleChunk(AbstractGrid2DSquareCell.ChunkID a_ChunkID)
a_ChunkID
-
public final double get_NoDataValue(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.
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.
protected final void init_NoDataValue(double _NoDataValue)
_NoDataValue
- The value this._NoDataValue is initialised to.public double getCell(long a_CellRowIndex, long a_CellColIndex, boolean handleOutOfMemoryError)
a_CellRowIndex
- .a_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 double getCell(long a_CellRowIndex, long a_CellColIndex)
a_CellRowIndex
- .a_CellColIndex
- .
public double getCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk, int a_ChunkRowIndex, int a_ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, boolean handleOutOfMemoryError)
a_ChunkRowIndex
- The chunk row index of the cell thats value is
returned.a_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 double getCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex)
a_ChunkRowIndex
- The chunk row index of the cell thats value is
returned.a_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 double 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 double getCell(double x, double y)
x
- the x-coordinate of the point.y
- the y-coordinate of the point.public final double 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 double setCell(double x, double y, double 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 double setCell(double x, double y, double newValue)
x
- the x-coordinate of the point.y
- the y-coordinate of the point.newValue
- .public final double setCell(AbstractGrid2DSquareCell.CellID _CellID, double 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
a_CellRowIndex
- .a_CellColIndex
- .newValue
- .public double setCell(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, double newValue, boolean handleOutOfMemoryError)
a_ChunkRowIndex
- a_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 double setCell(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, double newValue)
a_ChunkRowIndex
- a_ChunkColIndex
- chunkCellRowIndex
- chunkCellColIndex
- newValue
- public double setCell(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, double newValue, boolean handleOutOfMemoryError)
a_ChunkRowIndex
- .a_ChunkColIndex
- .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(AbstractGrid2DSquareCellDoubleChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, double newValue)
a_ChunkRowIndex
- .a_ChunkColIndex
- .newValue
- .
protected void initCell(long _CellRowIndex, long _CellColIndex, double valueToInitialise, boolean handleOutOfMemoryError)
a_CellRowIndex
- a_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, double valueToInitialise)
a_CellRowIndex
- a_CellColIndex
- valueToInitialise
- protected void initCellFast(long _CellRowIndex, long _CellColIndex, double valueToInitialise, boolean handleOutOfMemoryError)
a_CellRowIndex
- a_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 a_CellRowIndex, long a_CellColIndex, double valueToInitialise)
a_CellRowIndex
- a_CellColIndex
- valueToInitialise
- public double[] 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.
TODO
protected double[] 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 double[] getCells(long _CellRowIndex, long _CellColIndex, double distance, boolean handleOutOfMemoryError)
a_CellRowIndex
- the row index for the cell thats centroid is the
circle centre from which cell values are returned.a_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 double[] getCells(long _CellRowIndex, long _CellColIndex, double distance)
a_CellRowIndex
- the row index for the cell thats centroid is the
circle centre from which cell values are returned.a_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 double[] 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.a_CellRowIndex
- The row index at y.a_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.
TODO
protected double[] 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.a_CellRowIndex
- The row index at y.a_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 pointhandleOutOfMemoryError
- 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)
a_CellRowIndex
- the row index from which average of the nearest data
values is returneda_CellColIndex
- the column index from which average of the nearest data
values is returnedhandleOutOfMemoryError
- 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)
a_CellRowIndex
- the row index from which average of the nearest data
values is returneda_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, double _NoDataValue, boolean handleOutOfMemoryError)
x
- the x-coordinate of the pointy
- the y-coordinate of the pointa_CellRowIndex
- the row index from which average of the nearest data
values is returneda_CellColIndex
- the column index from which average of the nearest data
values is returnedhandleOutOfMemoryError
- 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, double _NoDataValue)
x
- the x-coordinate of the pointy
- the y-coordinate of the pointa_CellRowIndex
- the row index from which average of the nearest data
values is returneda_CellColIndex
- the column index from which average of the nearest data
values is returned
public AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(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 AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(double x, double y)
x
- The x-coordinate of the point.y
- The y-coordinate of the point.
public AbstractGrid2DSquareCell.CellID[] getNearestValuesCellIDs(long _CellRowIndex, long _CellColIndex, boolean handleOutOfMemoryError)
a_CellRowIndex
- The row index from which the cell IDs of the nearest
cells with data values are returned.a_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)
a_CellRowIndex
- The row index from which the cell IDs of the nearest
cells with data values are returned.a_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, double _NoDataValue, boolean handleOutOfMemoryError)
x
- the x-coordinate of the pointy
- the y-coordinate of the pointa_CellRowIndex
- The row index from which the cell IDs of the nearest
cells with data values are returned.a_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 gridhandleOutOfMemoryError
- 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, double _NoDataValue)
x
- the x-coordinate of the pointy
- the y-coordinate of the pointa_CellRowIndex
- The row index from which the cell IDs of the nearest
cells with data values are returned.a_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 grid
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)
a_CellRowIndex
- The cell row index of the cell from which the
distance nearest to the nearest cell value is returned.a_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)
a_CellRowIndex
- The cell row index of the cell from which the
distance nearest to the nearest cell value is returned.a_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, double _NoDataValue, boolean handleOutOfMemoryError)
x
- The x-coordinate of the point.y
- The y-coordinate of the point.a_CellRowIndex
- The cell row index of the cell from which the
distance nearest to the nearest cell value is returned.a_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, double _NoDataValue)
x
- The x-coordinate of the point.y
- The y-coordinate of the point.a_CellRowIndex
- The cell row index of the cell from which the
distance nearest to the nearest cell value is returned.a_CellColIndex
- The cell column index of the cell from which the
distance nearest to the nearest cell value is returned.
public double addToCell(double x, double y, double 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 pointhandleOutOfMemoryError
- 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 addToCell(double x, double y, double 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 double addToCell(AbstractGrid2DSquareCell.CellID cellID, double valueToAdd, boolean handleOutOfMemoryError)
cellID
- the CellID of the cell.valueToAdd
- the value to be added to the cell containing the pointhandleOutOfMemoryError
- 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 addToCell(AbstractGrid2DSquareCell.CellID cellID, double valueToAdd)
cellID
- the CellID of the cell.valueToAdd
- the value to be added to the cell containing the point
public double addToCell(long _CellRowIndex, long _CellColIndex, double valueToAdd, boolean handleOutOfMemoryError)
a_CellRowIndex
- the row index of the cell.a_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 double addToCell(long _CellRowIndex, long _CellColIndex, double valueToAdd)
a_CellRowIndex
- the row index of the cell.a_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 void init_Cells(double value, boolean handleOutOfMemoryError)
protected void init_Cells(double value)
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 |