|
||||||||||
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
public abstract class AbstractGrid2DSquareCell
Contains CellID and ChunkID classes, referencing and general geometry methods. It also controls what methods extended classes must implement acting like an interface. The basic geometries are ordered in set numbers of rows and columns and are arranged sequentially as their base two-dimensional orthogonal coordinate axes. The sequential arrangement goes along the x-axis row by row from the y-axis, then up the y-axis taking each row in turn. TODO: Handling for NumberFormatExceptions and ArithmeticExceptions in calculations
Nested Class Summary | |
---|---|
static class |
AbstractGrid2DSquareCell.CellID
A simple CellID class for distinguishing cells. |
static class |
AbstractGrid2DSquareCell.ChunkID
A simple ChunkID class for distinguishing chunks. |
Field Summary | |
---|---|
protected int |
_ChunkNCols
For storing the (usual) number of columns of cells in a chunk. |
protected int |
_ChunkNRows
For storing the (usual) number of rows of cells in a chunk. |
protected java.math.BigDecimal[] |
_Dimensions
For storing cellsize, minx, miny, maxx, maxy. |
protected int |
_DimensionsScale
For storing the minimum number of decimal places used to store _Dimensions. |
protected java.io.File |
_Directory
Local _Directory used for caching. |
protected java.util.HashMap |
_Grid2DSquareCellChunks
The AbstractGrid2DSquareCellChunk data cache. |
protected AbstractGridStatistics |
_GridStatistics
A reference to the grid Statistics Object. |
protected java.lang.String |
_Name
For storing the _Name of the grid. |
protected int |
_NChunkCols
For storing the number of chunk columns. |
protected int |
_NChunkRows
For storing the number of chunk rows. |
protected long |
_NCols
For storing the number of columns in the grid. |
protected long |
_NRows
For storing the number of rows in the grid. |
protected static UnsignedLongPowersOf2 |
_UnsignedLongPowersOf2
For storing individual locations mapped to a binary encoded long. |
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler |
---|
_Grid2DSquareCells, _HandleOutOfMemoryErrorFalse, _HandleOutOfMemoryErrorTrue, _MemoryReserve, _Runtime |
Constructor Summary | |
---|---|
AbstractGrid2DSquareCell()
|
Method Summary | |
---|---|
protected void |
clearFromCacheGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
For releasing a grid2DSquareCellChunk stored in memory. |
protected void |
clearFromCacheGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
For releasing a grid2DSquareCellChunk stored in memory. |
protected void |
clearFromCacheGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
For releasing a grid2DSquareCellChunk stored in memory except that with ChunkID given by _ChunkID. |
protected void |
clearFromCacheGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
For releasing a grid2DSquareCellChunk stored in memory except that with ChunkID given by _ChunkID. |
protected void |
clearFromCacheGrid2DSquareCellChunks()
For releasing all AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks. |
protected void |
clearFromCacheGrid2DSquareCellChunks(boolean _HandleOutOfMemoryError)
For releasing all AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks. |
protected void |
clearFromCacheGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs)
Clears Grid2DSquareCellChunkAbstracts with ChunkIDs in _ChunkIDs. |
protected void |
clearFromCacheGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs,
boolean _HandleOutOfMemoryError)
Clears Grid2DSquareCellChunkAbstracts with ChunkIDs in _ChunkIDs. |
protected void |
clearFromCacheGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
For releasing all grid2DSquareCellChunk stored in memory except that with ChunkID given by _ChunkID. |
protected void |
clearFromCacheGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
For releasing all grid2DSquareCellChunk stored in memory except that with ChunkID given by _ChunkID. |
protected void |
clearFromCacheGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs)
For releasing all grid2DSquareCellChunk stored in memory except those with ChunkIDs in _ChunkIDs. |
protected void |
clearFromCacheGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs,
boolean _HandleOutOfMemoryError)
For releasing all grid2DSquareCellChunk stored in memory except those with ChunkIDs in _ChunkIDs. |
protected int |
get_ChunkNCols()
|
int |
get_ChunkNCols(boolean _HandleOutOfMemoryError)
|
protected int |
get_ChunkNCols(int _ChunkColIndex)
|
int |
get_ChunkNCols(int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
int |
get_ChunkNCols(int _ChunkColIndex,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
protected int |
get_ChunkNRows()
|
int |
get_ChunkNRows(boolean _HandleOutOfMemoryError)
|
protected int |
get_ChunkNRows(int _ChunkRowIndex)
|
int |
get_ChunkNRows(int _ChunkRowIndex,
boolean _HandleOutOfMemoryError)
|
java.math.BigDecimal[] |
get_Dimensions(boolean _HandleOutOfMemoryError)
|
protected int |
get_DimensionsScale(boolean _HandleOutOfMemoryError)
|
protected java.io.File |
get_Directory()
|
java.io.File |
get_Directory(boolean _HandleOutOfMemoryError)
|
protected java.lang.String |
get_Name()
|
java.lang.String |
get_Name(boolean _HandleOutOfMemoryError)
|
int |
get_NChunkCols()
|
int |
get_NChunkCols(boolean _HandleOutOfMemoryError)
|
int |
get_NChunkRows()
|
int |
get_NChunkRows(boolean _HandleOutOfMemoryError)
|
long |
get_NCols(boolean _HandleOutOfMemoryError)
|
long |
get_NRows(boolean _HandleOutOfMemoryError)
|
protected java.lang.String |
getBasicDescription()
|
java.lang.String |
getBasicDescription(boolean _HandleOutOfMemoryError)
|
protected double[] |
getCellBoundsDoubleArray(double x,
double y)
Precision may compromise result. |
double[] |
getCellBoundsDoubleArray(double x,
double y,
boolean _HandleOutOfMemoryError)
Precision may compromise result. |
protected double[] |
getCellBoundsDoubleArray(long _CellRowIndex,
long _CellColIndex)
|
double[] |
getCellBoundsDoubleArray(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected long |
getCellColIndex(java.math.BigDecimal xBigDecimal)
|
long |
getCellColIndex(java.math.BigDecimal xBigDecimal,
boolean _HandleOutOfMemoryError)
|
protected long |
getCellColIndex(double x)
|
long |
getCellColIndex(double x,
boolean _HandleOutOfMemoryError)
|
protected long |
getCellColIndex(int _ChunkColIndex,
int chunkCellColIndex)
|
long |
getCellColIndex(int _ChunkColIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
long |
getCellColIndex(int _ChunkColIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
protected double |
getCellDouble(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
double |
getCellDouble(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellDouble(double x,
double y)
|
double |
getCellDouble(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellDouble(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
double |
getCellDouble(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellDouble(long _CellRowIndex,
long _CellColIndex)
|
double |
getCellDouble(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellDouble(java.awt.geom.Point2D.Double point)
|
double |
getCellDouble(java.awt.geom.Point2D.Double point,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID |
getCellID(double x,
double y)
|
AbstractGrid2DSquareCell.CellID |
getCellID(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID |
getCellID(long _CellRowIndex,
long _CellColIndex)
|
AbstractGrid2DSquareCell.CellID |
getCellID(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getCellIDs(double x,
double y,
double distance)
|
AbstractGrid2DSquareCell.CellID[] |
getCellIDs(double x,
double y,
double distance,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance)
TODO: remove need for copy to new array. |
AbstractGrid2DSquareCell.CellID[] |
getCellIDs(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
double distance,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID[] |
getCellIDs(long _CellRowIndex,
long _CellColIndex,
double distance)
|
AbstractGrid2DSquareCell.CellID[] |
getCellIDs(long _CellRowIndex,
long _CellColIndex,
double distance,
boolean _HandleOutOfMemoryError)
|
protected int |
getCellInt(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
int |
getCellInt(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk,
int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
protected int |
getCellInt(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
int |
getCellInt(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
protected int |
getCellInt(long _CellRowIndex,
long _CellColIndex)
|
int |
getCellInt(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected long |
getCellRowIndex(java.math.BigDecimal yBigDecimal)
|
long |
getCellRowIndex(java.math.BigDecimal yBigDecimal,
boolean _HandleOutOfMemoryError)
|
protected long |
getCellRowIndex(double y)
|
long |
getCellRowIndex(double y,
boolean _HandleOutOfMemoryError)
|
protected long |
getCellRowIndex(int _ChunkRowIndex,
int chunkCellRowIndex)
|
long |
getCellRowIndex(int _ChunkRowIndex,
int chunkCellRowIndex,
boolean _HandleOutOfMemoryError)
|
long |
getCellRowIndex(int _ChunkRowIndex,
int chunkCellRowIndex,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
long |
getCellRowIndex(int _ChunkRowIndex,
int chunkCellRowIndex,
boolean _HandleOutOfMemoryError,
java.util.HashMap _Grid2DSquareCell_ChunkIDHashSet)
If OutOfMemoryError is caught then an attempt is made to swap an AbstractGrid2DSquareCellChunk not in _Grid2DSquareCell_ChunkIDHashSet. |
double |
getCellsizeDouble(boolean _HandleOutOfMemoryError)
|
protected java.math.BigDecimal |
getCellXBigDecimal(AbstractGrid2DSquareCell.CellID _CellID)
|
java.math.BigDecimal |
getCellXBigDecimal(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
|
java.math.BigDecimal |
getCellXBigDecimal(AbstractGrid2DSquareCell.CellID _CellID,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected java.math.BigDecimal |
getCellXBigDecimal(long _CellColIndex)
|
java.math.BigDecimal |
getCellXBigDecimal(long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
java.math.BigDecimal |
getCellXBigDecimal(long _CellColIndex,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellXDouble(AbstractGrid2DSquareCell.CellID _CellID)
|
double |
getCellXDouble(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
|
double |
getCellXDouble(AbstractGrid2DSquareCell.CellID _CellID,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellXDouble(int chunkCellColIndex,
int _ChunkColIndex)
|
double |
getCellXDouble(int chunkCellColIndex,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellXDouble(long _CellColIndex)
|
double |
getCellXDouble(long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
double |
getCellXDouble(long _CellColIndex,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
protected java.math.BigDecimal |
getCellYBigDecimal(AbstractGrid2DSquareCell.CellID _CellID)
|
java.math.BigDecimal |
getCellYBigDecimal(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
|
java.math.BigDecimal |
getCellYBigDecimal(AbstractGrid2DSquareCell.CellID _CellID,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected java.math.BigDecimal |
getCellYBigDecimal(long _CellRowIndex)
|
java.math.BigDecimal |
getCellYBigDecimal(long _CellRowIndex,
boolean _HandleOutOfMemoryError)
|
java.math.BigDecimal |
getCellYBigDecimal(long _CellRowIndex,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellYDouble(AbstractGrid2DSquareCell.CellID _CellID)
|
double |
getCellYDouble(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
|
double |
getCellYDouble(AbstractGrid2DSquareCell.CellID _CellID,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellYDouble(int chunkCellRowIndex,
int _ChunkRowIndex)
|
double |
getCellYDouble(int chunkCellRowIndex,
int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected double |
getCellYDouble(long _CellRowIndex)
|
double |
getCellYDouble(long _CellRowIndex,
boolean _HandleOutOfMemoryError)
|
double |
getCellYDouble(long _CellRowIndex,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
protected int |
getChunkCellColIndex(double x)
|
int |
getChunkCellColIndex(double x,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkCellColIndex(long _CellColIndex)
|
int |
getChunkCellColIndex(long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkCellRowIndex(double y)
|
int |
getChunkCellRowIndex(double y,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkCellRowIndex(long _CellRowIndex)
|
int |
getChunkCellRowIndex(long _CellRowIndex,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkColIndex(double x)
|
int |
getChunkColIndex(double x,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkColIndex(long _CellColIndex)
|
int |
getChunkColIndex(long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected java.util.HashSet |
getChunkIDs(double distance,
double x,
double y,
long _CellRowIndex,
long _CellColIndex)
|
protected int |
getChunkNCols(AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
int |
getChunkNCols(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkNcolsFinalColChunks()
|
protected int |
getChunkNcolsFinalColChunks(boolean _HandleOutOfMemoryError)
|
protected int |
getChunkNRows(AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
int |
getChunkNRows(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkNrowsFinalRowChunks()
|
protected int |
getChunkNrowsFinalRowChunks(boolean _HandleOutOfMemoryError)
|
protected int |
getChunkRowIndex(double y)
|
int |
getChunkRowIndex(double y,
boolean _HandleOutOfMemoryError)
|
protected int |
getChunkRowIndex(long _CellRowIndex)
|
int |
getChunkRowIndex(long _CellRowIndex,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCellChunk |
getGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
AbstractGrid2DSquareCellChunk |
getGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCellChunk |
getGrid2DSquareCellChunk(int _ChunkRowIndex,
int _ChunkColIndex)
|
protected AbstractGrid2DSquareCellChunk |
getGrid2DSquareCellChunk(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected java.util.HashSet |
getGrid2DSquareCellChunkIDHashSet()
|
java.util.HashSet |
getGrid2DSquareCellChunkIDHashSet(boolean _HandleOutOfMemoryError)
|
java.util.HashSet |
getGrid2DSquareCells(boolean _HandleOutOfMemoryError)
|
protected double[] |
getGridBounds()
|
double[] |
getGridBounds(boolean _HandleOutOfMemoryError)
TODO: Are bounds in double range? Is there more than cellsize difference with precision? Throw appropriate exceptions. |
protected AbstractGridStatistics |
getGridStatistics()
|
AbstractGridStatistics |
getGridStatistics(boolean _HandleOutOfMemoryError)
|
protected java.math.BigDecimal |
getHeightBigDecimal()
|
java.math.BigDecimal |
getHeightBigDecimal(boolean _HandleOutOfMemoryError)
|
protected double |
getHeightDouble()
|
double |
getHeightDouble(boolean _HandleOutOfMemoryError)
|
protected long |
getNChunks()
|
long |
getNChunks(boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID |
getNearestCellID(double x,
double y)
|
AbstractGrid2DSquareCell.CellID |
getNearestCellID(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID |
getNearestCellID(double x,
double y,
long _CellRowIndex,
long _CellColIndex)
|
AbstractGrid2DSquareCell.CellID |
getNearestCellID(double x,
double y,
long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.CellID |
getNearestCellID(long _CellRowIndex,
long _CellColIndex)
|
AbstractGrid2DSquareCell.CellID |
getNearestCellID(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.ChunkID |
getNextChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
int _NChunkRows,
int _NChunkCols)
|
AbstractGrid2DSquareCell.ChunkID |
getNextChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
int _NChunkRows,
int _NChunkCols,
boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.ChunkID |
getNextChunkRowMinor(AbstractGrid2DSquareCell.ChunkID _ChunkID,
int _NChunkRows,
int _NChunkCols)
|
AbstractGrid2DSquareCell.ChunkID |
getNextChunkRowMinor(AbstractGrid2DSquareCell.ChunkID _ChunkID,
int _NChunkRows,
int _NChunkCols,
boolean _HandleOutOfMemoryError)
|
abstract java.math.BigDecimal |
getNoDataValueBigDecimal(boolean _HandleOutOfMemoryError)
|
protected AbstractGrid2DSquareCell.ChunkID |
getPreviousChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
int _NChunkRows,
int _NChunkCols)
|
AbstractGrid2DSquareCell.ChunkID |
getPreviousChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
int _NChunkRows,
int _NChunkCols,
boolean _HandleOutOfMemoryError)
|
protected java.math.BigDecimal |
getWidthBigDecimal()
|
java.math.BigDecimal |
getWidthBigDecimal(boolean _HandleOutOfMemoryError)
|
protected double |
getWidthDouble()
|
double |
getWidthDouble(boolean _HandleOutOfMemoryError)
|
protected void |
init_Dimensions(java.math.BigDecimal[] _Dimensions)
Initialises this._Dimensions and this.dimensionScale. |
protected void |
init_NChunkCols()
Initialises this._NChunkCols. |
protected void |
init_NChunkRows()
Initialises this._NChunkRows. |
protected void |
initGrid2DSquareCell(AbstractGrid2DSquareCell _Grid2DSquareCell)
Initialises non transient AbstractGrid2DSquareCell fields from _Grid2DSquareCell. |
protected void |
initGrid2DSquareCell(java.util.HashSet _Grid2DSquareCells)
Initialises AbstractGrid2DSquareCell fields of this. |
protected void |
initGrid2DSquareCellChunks(java.io.File gridFile)
Initialises this._Grid2DSquareCellChunks by first attempting to load from new File( gridFile, "cache" ); |
protected boolean |
isInCache(AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
boolean |
isInCache(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(AbstractGrid2DSquareCell.CellID _CellID)
|
boolean |
isInGrid(AbstractGrid2DSquareCell.CellID _CellID,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
boolean |
isInGrid(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(java.math.BigDecimal xBigDecimal,
java.math.BigDecimal yBigDecimal)
|
boolean |
isInGrid(java.math.BigDecimal xBigDecimal,
java.math.BigDecimal yBigDecimal,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(double x,
double y)
|
boolean |
isInGrid(double x,
double y,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(int _ChunkRowIndex,
int _ChunkColIndex)
|
boolean |
isInGrid(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex)
|
boolean |
isInGrid(int _ChunkRowIndex,
int _ChunkColIndex,
int chunkCellRowIndex,
int chunkCellColIndex,
boolean _HandleOutOfMemoryError)
|
protected boolean |
isInGrid(long _CellRowIndex,
long _CellColIndex)
|
boolean |
isInGrid(long _CellRowIndex,
long _CellColIndex,
boolean _HandleOutOfMemoryError)
|
abstract java.util.Iterator |
iterator(boolean _HandleOutOfMemoryError)
|
protected void |
loadIntoCacheChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to load into the memory cache AbstractGrid2DSquareCellChunk with ChunkID equal to _ChunkID. |
void |
loadIntoCacheChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to load into the memory cache a AbstractGrid2DSquareCellChunk with ChunkID |
protected void |
loadIntoCacheChunk(int _ChunkRowIndex,
int _ChunkColIndex)
Restores a grid2DSquareCellChunk from a swapped cache file. |
void |
loadIntoCacheChunk(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
Restores a grid2DSquareCellChunk from a swapped cache file. |
protected java.lang.Object |
loadObject(java.io.File _File)
Loads an object from _File. |
protected java.lang.Object |
loadObject(java.io.File _File,
boolean _HandleOutOfMemoryError)
Loads an object from _File. |
protected java.lang.Object |
loadObject(java.io.ObjectInputStream _ObjectInputStream)
Loads an object from _ObjectInputStream. |
void |
set_Name(java.lang.String _Name,
boolean _HandleOutOfMemoryError)
Sets this._Name to _Name. |
protected abstract double |
setCell(long _CellRowIndex,
long _CellColIndex,
double valueToSet)
Sets the value at _CellRowIndex, _CellColIndex to valueToSet. |
double |
setCell(long _CellRowIndex,
long _CellColIndex,
double valueToSet,
boolean _HandleOutOfMemoryError)
|
double |
setCell(long _CellRowIndex,
long _CellColIndex,
double valueToSet,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell.ChunkID _ChunkID)
|
double |
setCell(long _CellRowIndex,
long _CellColIndex,
double valueToSet,
boolean _HandleOutOfMemoryError,
AbstractGrid2DSquareCell _Grid2DSquareCell)
|
void |
setChunk(AbstractGrid2DSquareCellChunk _Grid2DSquareCellChunk,
AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Sets the AbstractGrid2DSquareCellChunk with ChunkID equal to _ChunkID to _Grid2DSquareCellChunk. |
protected void |
setName(java.lang.String _Name)
Sets this._Name to _Name. |
protected AbstractGrid2DSquareCell.ChunkID |
swapToFileGrid2DSquareCellChunk()
Attempts to write to file and clear from the cache a AbstractGrid2DSquareCellChunk in this. |
AbstractGrid2DSquareCell.ChunkID |
swapToFileGrid2DSquareCellChunk(boolean _HandleOutOfMemoryError)
Attempts to write to file and clear from the cache a AbstractGrid2DSquareCellChunk in this. |
protected AbstractGrid2DSquareCell.ChunkID |
swapToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to write to file and clear from the cache a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCells. |
AbstractGrid2DSquareCell.ChunkID |
swapToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to write to file and clear from the cache a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCells. |
protected AbstractGrid2DSquareCell.ChunkID |
swapToFileGrid2DSquareCellChunkExcept(java.util.HashSet _ChunkIDs)
Attempts to write to file and clear from the cache a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCells. |
AbstractGrid2DSquareCell.ChunkID |
swapToFileGrid2DSquareCellChunkExcept(java.util.HashSet _ChunkIDs,
boolean _HandleOutOfMemoryError)
Attempts to write to file and clear from the cache a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCells. |
protected java.util.HashSet |
swapToFileGrid2DSquareCellChunks()
Attempts to swap seriailsed version of all _Grid2DSquareCellChunks. |
java.util.HashSet |
swapToFileGrid2DSquareCellChunks(boolean _HandleOutOfMemoryError)
Attempts to swap seriailsed version of all Grid2DSquareCellChunks in this only. |
protected long |
swapToFileGrid2DSquareCellChunks(int cri0,
int cci0,
int cri1,
int cci1)
Attempts to swap seriailsed version of all AbstractGrid2DSquareCellChunk from (cri0, cci0) to (cri1, cci1) in row major order. |
long |
swapToFileGrid2DSquareCellChunks(int cri0,
int cci0,
int cri1,
int cci1,
boolean _HandleOutOfMemoryError)
Attempts to swap seriailsed version of all AbstractGrid2DSquareCellChunk from (cri0, cci0) to (cri1, cci1) in row major order. |
protected java.util.HashSet |
swapToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to write to file and clear from the cache all Grid2DSquareCellChunkAbstracts in this except that with ChunkID _ChunkID. |
java.util.HashSet |
swapToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to write to file and clear from the cache all Grid2DSquareCellChunkAbstracts in this except that with ChunkID _ChunkID. |
protected java.util.HashSet |
swapToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs)
Attempts to write to file and clear from the cache all Grid2DSquareCellChunkAbstracts in this except that with ChunkID _ChunkID. |
java.util.HashSet |
swapToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs,
boolean _HandleOutOfMemoryError)
Attempts to write to file and clear from the cache all Grid2DSquareCellChunkAbstracts in this except that with ChunkID _ChunkIDs. |
abstract java.lang.String |
toString(boolean _HandleOutOfMemoryError)
|
protected java.lang.String |
toString(int flag)
|
java.lang.String |
toString(int flag,
boolean _HandleOutOfMemoryError)
|
protected void |
writeToFile(boolean swapToFileCache)
Attempts to write this instance to Files located in the _Directory returned by get_Directory(). |
void |
writeToFile(boolean swapToFileCache,
boolean _HandleOutOfMemoryError)
Attempts to write this instance to Files located in the _Directory returned by get_Directory(). |
protected AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunk()
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks. |
protected boolean |
writeToFileGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to write to File a seriailized version of the AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks given by _ChunkID. |
boolean |
writeToFileGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of the AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks given by _ChunkID. |
AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunk(boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks. |
protected boolean |
writeToFileGrid2DSquareCellChunk(int _ChunkRowIndex,
int _ChunkColIndex)
Attempts to write to File a seriailized version of the AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks given by; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
boolean |
writeToFileGrid2DSquareCellChunk(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of the AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks given by; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
protected AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with ChunkID equal to _ChunkID. |
AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with ChunkID equal to _ChunkID. |
protected AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExcept(int _ChunkRowIndex,
int _ChunkColIndex)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExcept(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
protected AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExceptReverseOrder(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExceptReverseOrder(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
protected AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExceptReverseOrder(int _ChunkRowIndex,
int _ChunkColIndex)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
AbstractGrid2DSquareCell.ChunkID |
writeToFileGrid2DSquareCellChunkExceptReverseOrder(int _ChunkRowIndex,
int _ChunkColIndex,
boolean _HandleOutOfMemoryError)
Attempts to write to File a seriailized version of a AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with; chunk row index _ChunkRowIndex, chunk column index _ChunkColIndex. |
protected void |
writeToFileGrid2DSquareCellChunks()
Attempts to write to File seriailized versions of all AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks. |
void |
writeToFileGrid2DSquareCellChunks(boolean _HandleOutOfMemoryError)
Attempts to write to File seriailized versions of all AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks. |
protected void |
writeToFileGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs)
Attempts to write to File seriailized versions of those AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks that have ChunkID equal to those in _ChunkIDs. |
void |
writeToFileGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs,
boolean _HandleOutOfMemoryError)
Attempts to write to File seriailized versions of those AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks that have ChunkID equal to those in _ChunkIDs. |
protected void |
writeToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Attempts to write to File seriailized versions of those AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with ChunkID equal to _ChunkID. |
void |
writeToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID,
boolean _HandleOutOfMemoryError)
Attempts to write to File seriailized versions of those AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except that with ChunkID equal to _ChunkID. |
protected void |
writeToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs)
Attempts to write to File seriailized versions of those AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except those that have ChunkID in _ChunkIDs. |
void |
writeToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs,
boolean _HandleOutOfMemoryError)
Attempts to write to File seriailized versions of those AbstractGrid2DSquareCellChunk in this._Grid2DSquareCellChunks except those that have ChunkID in _ChunkIDs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient java.io.File _Directory
protected transient java.util.HashMap _Grid2DSquareCellChunks
protected AbstractGridStatistics _GridStatistics
protected int _NChunkRows
protected int _NChunkCols
protected int _ChunkNRows
protected int _ChunkNCols
protected long _NRows
protected long _NCols
protected java.lang.String _Name
protected java.math.BigDecimal[] _Dimensions
protected int _DimensionsScale
protected static UnsignedLongPowersOf2 _UnsignedLongPowersOf2
Constructor Detail |
---|
public AbstractGrid2DSquareCell()
Method Detail |
---|
protected void initGrid2DSquareCellChunks(java.io.File gridFile)
gridFile
- The _Directory that should may contain a File named cache.protected void initGrid2DSquareCell(java.util.HashSet _Grid2DSquareCells)
_Grid2DSquareCells
- HashSetprotected void initGrid2DSquareCell(AbstractGrid2DSquareCell _Grid2DSquareCell)
_Grid2DSquareCell
- The AbstractGrid2DSquareCell from which the
non transient AbstractGrid2DSquareCell fields of this are set.public java.util.HashSet getGrid2DSquareCells(boolean _HandleOutOfMemoryError)
public AbstractGridStatistics getGridStatistics(boolean _HandleOutOfMemoryError)
protected AbstractGridStatistics getGridStatistics()
protected AbstractGrid2DSquareCellChunk getGrid2DSquareCellChunk(int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The ChunkID._ChunkRowIndex of the returned
AbstractGrid2DSquareCellChunk._ChunkColIndex
- The ChunkID._ChunkColIndex of the returned
AbstractGrid2DSquareCellChunk._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 AbstractGrid2DSquareCellChunk getGrid2DSquareCellChunk(int _ChunkRowIndex, int _ChunkColIndex)
_ChunkRowIndex
- The ChunkID._ChunkRowIndex of the returned
AbstractGrid2DSquareCellChunk._ChunkColIndex
- The ChunkID._ChunkColIndex of the returned
AbstractGrid2DSquareCellChunk.
public AbstractGrid2DSquareCellChunk getGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the returned AbstractGrid2DSquareCellChunk._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 AbstractGrid2DSquareCellChunk getGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the returned AbstractGrid2DSquareCellChunk.
public java.util.HashSet getGrid2DSquareCellChunkIDHashSet(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 java.util.HashSet getGrid2DSquareCellChunkIDHashSet()
public abstract java.util.Iterator iterator(boolean _HandleOutOfMemoryError)
public abstract java.lang.String toString(boolean _HandleOutOfMemoryError)
public java.lang.String toString(int flag, boolean _HandleOutOfMemoryError)
flag
- This is ignored. It is simply to distinguish this method from
the abstract method toString(boolean)._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 java.lang.String toString(int flag)
flag
- This is ignored. It is simply to distinguish this method from
the abstract method toString(boolean).
public java.io.File get_Directory(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 java.io.File get_Directory()
public java.lang.String get_Name(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 java.lang.String get_Name()
public void set_Name(java.lang.String _Name, boolean _HandleOutOfMemoryError)
_Name
- The String this._Name is set to._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 setName(java.lang.String _Name)
_Name
- The String this._Name is set to.public java.lang.String getBasicDescription(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 java.lang.String getBasicDescription()
public void setChunk(AbstractGrid2DSquareCellChunk _Grid2DSquareCellChunk, AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_Grid2DSquareCellChunk
- The AbstractGrid2DSquareCellChunk that the
AbstractGrid2DSquareCellChunk with ChunkID equal to _ChunkID is set as._ChunkID
- The ChunkID of the AbstractGrid2DSquareCellChunk that is set._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 long get_NCols(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 final long get_NRows(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 final int get_NChunkRows(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 final int get_NChunkRows()
protected final void init_NChunkRows()
public final int get_NChunkCols(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 final int get_NChunkCols()
public final long getNChunks(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 long getNChunks()
protected final void init_NChunkCols()
public final int get_ChunkNRows(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 get_ChunkNRows()
public final int get_ChunkNRows(int _ChunkRowIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The ChunkID._ChunkRowIndex of the
AbstractGrid2DSquareCellChunk thats _ChunkNRows 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 final int get_ChunkNRows(int _ChunkRowIndex)
_ChunkRowIndex
- The ChunkID._ChunkRowIndex of the
AbstractGrid2DSquareCellChunk thats _ChunkNRows is returned.
public final int get_ChunkNCols(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 get_ChunkNCols()
public final int get_ChunkNCols(int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkColIndex
- The ChunkID._ChunkColIndex of the
AbstractGrid2DSquareCellChunk thats _ChunkNRows 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.
public final int get_ChunkNCols(int _ChunkColIndex, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkColIndex
- The ChunkID._ChunkColIndex of the
AbstractGrid2DSquareCellChunk thats _ChunkNRows 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._ChunkID
- This is a ChunkID for those AbstractGrid2DSquareCells not
to be swapped if possible when an OutOfMemoryError is encountered.
protected final int get_ChunkNCols(int _ChunkColIndex)
_ChunkColIndex
- The ChunkID._ChunkColIndex of the
AbstractGrid2DSquareCellChunk thats _ChunkNRows is returned.
protected final int getChunkNrowsFinalRowChunks(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 getChunkNrowsFinalRowChunks()
protected final int getChunkNcolsFinalColChunks(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 getChunkNcolsFinalColChunks()
public final int getChunkNRows(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the AbstractGrid2DSquareCellChunk thats number
of rows 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 final int getChunkNRows(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the AbstractGrid2DSquareCellChunk thats number
of rows is returned.
public final int getChunkNCols(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the AbstractGrid2DSquareCellChunk thats number
of columns 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 final int getChunkNCols(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the AbstractGrid2DSquareCellChunk thats number
of columns is returned.
public final java.math.BigDecimal[] get_Dimensions(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 final double getCellsizeDouble(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 get_DimensionsScale(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 void init_Dimensions(java.math.BigDecimal[] _Dimensions)
public double getCellDouble(java.awt.geom.Point2D.Double point, boolean _HandleOutOfMemoryError)
point
- The Point2D.Double for which the 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 getCellDouble(java.awt.geom.Point2D.Double point)
point
- The Point2D.Double for which the cell value is returned.
public double getCellDouble(double x, double y, boolean _HandleOutOfMemoryError)
x
- The x coordinate of the point at which the cell value is returned.y
- The y coordinate of the point at which the 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 getCellDouble(double x, double y)
x
- The x coordinate of the point at which the cell value is returned.y
- The y coordinate of the point at which the cell value is returned.
public double getCellDouble(long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index of the ._CellColIndex
- The cell column index._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 getCellDouble(long _CellRowIndex, long _CellColIndex)
_CellRowIndex
- The cell row index of the ._CellColIndex
- The cell column index.
public double getCellDouble(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk._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 getCellDouble(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex)
_ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk.
public double getCellDouble(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError)
grid2DSquareCellChunk
- The AbstractGrid2DSquareCellChunk containing
the cell._ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk._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 getCellDouble(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex)
grid2DSquareCellChunk
- The AbstractGrid2DSquareCellChunk containing
the cell._ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk.
public int getCellInt(long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index._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 getCellInt(long _CellRowIndex, long _CellColIndex)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index.
public int getCellInt(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk._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 getCellInt(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex)
_ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk.
public int getCellInt(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError)
grid2DSquareCellChunk
- The AbstractGrid2DSquareCellChunk containing
the cell._ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk._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 getCellInt(AbstractGrid2DSquareCellChunk grid2DSquareCellChunk, int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex)
grid2DSquareCellChunk
- The AbstractGrid2DSquareCellChunk containing
the cell._ChunkRowIndex
- The cell chunk row index._ChunkColIndex
- The cell chunk column index.chunkCellRowIndex
- The cell row index of the chunk.chunkCellColIndex
- The cell column index of the chunk.
public double setCell(long _CellRowIndex, long _CellColIndex, double valueToSet, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index._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 double setCell(long _CellRowIndex, long _CellColIndex, double valueToSet, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell.ChunkID _ChunkID)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index._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._ChunkID
- This is a ChunkID for those AbstractGrid2DSquareCells not
to be swapped if possible when an OutOfMemoryError is encountered.
public double setCell(long _CellRowIndex, long _CellColIndex, double valueToSet, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell _Grid2DSquareCell)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index._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._Grid2DSquareCell
- This is a AbstractGrid2DSquareCell not
to be swapped if possible when an OutOfMemoryError is encountered.
protected abstract double setCell(long _CellRowIndex, long _CellColIndex, double valueToSet)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index.valueToSet
- The value set.protected java.util.HashSet getChunkIDs(double distance, double x, double y, long _CellRowIndex, long _CellColIndex)
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 final int getChunkColIndex(double x, boolean _HandleOutOfMemoryError)
x
- The x-coordinate of the line intersecting the chunk column
index 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 final int getChunkColIndex(double x)
x
- The x-coordinate of the line intersecting the chunk column
index returned.
public final int getChunkColIndex(long _CellColIndex, boolean _HandleOutOfMemoryError)
_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 final int getChunkColIndex(long _CellColIndex)
_CellColIndex
-
public final long getCellColIndex(double x, boolean _HandleOutOfMemoryError)
x
- The x-coordinate of the line intersecting the cell column
index 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 final long getCellColIndex(double x)
x
- The x-coordinate of the line intersecting the cell column
index returned.
public final long getCellColIndex(java.math.BigDecimal xBigDecimal, boolean _HandleOutOfMemoryError)
xBigDecimal
- The x-coordinate of the line intersecting the cell column
index 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 final long getCellColIndex(java.math.BigDecimal xBigDecimal)
xBigDecimal
- The x-coordinate of the line intersecting the cell column
index returned.
public final long getCellColIndex(int _ChunkColIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError)
_ChunkColIndex
- chunkCellColIndex
- _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 long getCellColIndex(int _ChunkColIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkColIndex
- chunkCellColIndex
- _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._ChunkID
- This is a ChunkID for those AbstractGrid2DSquareCells not
to be swapped if possible when an OutOfMemoryError is encountered.
protected final long getCellColIndex(int _ChunkColIndex, int chunkCellColIndex)
_ChunkColIndex
- chunkCellColIndex
-
public final int getChunkCellColIndex(double x, boolean _HandleOutOfMemoryError)
x
- The x-coordinate of the line intersecting the chunk cell column
index 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 final int getChunkCellColIndex(double x)
x
- The x-coordinate of the line intersecting the chunk cell column
index returned.
public final int getChunkCellColIndex(long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellColIndex
- The cell column index of the cell thats chunk cell
column index 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 final int getChunkCellColIndex(long _CellColIndex)
_CellColIndex
- The cell column index of the cell thats chunk cell
column index is returned.
public final int getChunkRowIndex(double y, boolean _HandleOutOfMemoryError)
y
- The y-coordinate of the line for which the chunk row index 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 final int getChunkRowIndex(double y)
y
- The y-coordinate of the line for which the chunk row index is
returned.
public final int getChunkRowIndex(long _CellRowIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index of the cells thats chunk row index
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 final int getChunkRowIndex(long _CellRowIndex)
_CellRowIndex
- The cell row index of the cells thats chunk row index
is returned.
public final long getCellRowIndex(double y, boolean _HandleOutOfMemoryError)
y
- The y-coordinate of the line thats cell row index 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 final long getCellRowIndex(double y)
y
- The y-coordinate of the line thats cell row index is returned.
public final long getCellRowIndex(java.math.BigDecimal yBigDecimal, boolean _HandleOutOfMemoryError)
yBigDecimal
- The y-coordinate of the line for which the cell row index
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 final long getCellRowIndex(java.math.BigDecimal yBigDecimal)
yBigDecimal
- The y-coordinate of the line for which the cell row index
is returned.
public final long getCellRowIndex(int _ChunkRowIndex, int chunkCellRowIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- chunkCellRowIndex
- _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 long getCellRowIndex(int _ChunkRowIndex, int chunkCellRowIndex, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkRowIndex
- chunkCellRowIndex
- _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._ChunkID
- This is a ChunkID for those AbstractGrid2DSquareCells not
to be swapped if possible when an OutOfMemoryError is encountered.
public final long getCellRowIndex(int _ChunkRowIndex, int chunkCellRowIndex, boolean _HandleOutOfMemoryError, java.util.HashMap _Grid2DSquareCell_ChunkIDHashSet)
_ChunkRowIndex
- chunkCellRowIndex
- _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 long getCellRowIndex(int _ChunkRowIndex, int chunkCellRowIndex)
_ChunkRowIndex
- chunkCellRowIndex
-
public final int getChunkCellRowIndex(double y, boolean _HandleOutOfMemoryError)
y
- The y-coordinate of the line for which the chunk cell row index 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 final int getChunkCellRowIndex(double y)
y
- The y-coordinate of the line for which the chunk cell row index is
returned.
public final int getChunkCellRowIndex(long _CellRowIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index of the cells that chunk cell row
index 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 final int getChunkCellRowIndex(long _CellRowIndex)
_CellRowIndex
- The cell row index of the cells that chunk cell row
index is returned.
public final AbstractGrid2DSquareCell.CellID getCellID(long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index._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 AbstractGrid2DSquareCell.CellID getCellID(long _CellRowIndex, long _CellColIndex)
_CellRowIndex
- The cell row index._CellColIndex
- The cell column index.
public final AbstractGrid2DSquareCell.CellID getCellID(double x, double y, boolean _HandleOutOfMemoryError)
x
- The x-coordinate.y
- The y-coordinate._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 AbstractGrid2DSquareCell.CellID getCellID(double x, double y)
x
- The x-coordinate.y
- The y-coordinate.
public final void writeToFile(boolean swapToFileCache, boolean _HandleOutOfMemoryError) throws java.io.IOException
swapToFileCache
- Iff true then this._Grid2DSquareCellChunks
is written to new File( get_Directory(), "cache" )._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.
java.io.IOException
protected void writeToFile(boolean swapToFileCache) throws java.io.IOException
swapToFileCache
- Iff true then this._Grid2DSquareCellChunks
is written to new File(get_Directory(),"cache").
java.io.IOException
public final AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunk(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 AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunk()
public final boolean writeToFileGrid2DSquareCellChunk(int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk to be written._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk to be written._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 boolean writeToFileGrid2DSquareCellChunk(int _ChunkRowIndex, int _ChunkColIndex)
_ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk to be written._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk to be written.
public final boolean writeToFileGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The _ChunkID of the AbstractGrid2DSquareCellChunk to be written._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 boolean writeToFileGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The _ChunkID of the AbstractGrid2DSquareCellChunk to be written.
public final void writeToFileGrid2DSquareCellChunks(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 void writeToFileGrid2DSquareCellChunks()
public final void writeToFileGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs, boolean _HandleOutOfMemoryError)
_ChunkIDs
- A HashSet containing the ChunkID of the
AbstractGrid2DSquareCellChunk to be written to file._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 writeToFileGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs)
_ChunkIDs
- A HashSet containing the ChunkID of the
AbstractGrid2DSquareCellChunk to be written to file.public final void writeToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the chunk not to be written._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 writeToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the chunk not to be written.public final AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the chunk not to be swapToFiled._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 AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the chunk not to be swapToFiled.
public final AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExcept(int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The chunk row index._ChunkColIndex
- The chunk column index._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 AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExcept(int _ChunkRowIndex, int _ChunkColIndex)
_ChunkRowIndex
- The chunk row index._ChunkColIndex
- The chunk column index.
public final AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExceptReverseOrder(int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The chunk row index._ChunkColIndex
- The chunk column index._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 AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExceptReverseOrder(int _ChunkRowIndex, int _ChunkColIndex)
_ChunkRowIndex
- The chunk row index._ChunkColIndex
- The chunk column index.
public final AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExceptReverseOrder(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the chunk not to be swapToFiled._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 AbstractGrid2DSquareCell.ChunkID writeToFileGrid2DSquareCellChunkExceptReverseOrder(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the chunk not to be swapToFiled.public final void writeToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs, boolean _HandleOutOfMemoryError)
_ChunkIDs
- A hashSet containing ChunkIDs not to be swapToFiled._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 writeToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs)
_ChunkIDs
- A hashSet containing ChunkIDs not to be swapToFiled.public AbstractGrid2DSquareCell.ChunkID swapToFileGrid2DSquareCellChunk(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 AbstractGrid2DSquareCell.ChunkID swapToFileGrid2DSquareCellChunk()
public final AbstractGrid2DSquareCell.ChunkID swapToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID, 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 AbstractGrid2DSquareCell.ChunkID swapToFileGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
public final java.util.HashSet swapToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID, 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 java.util.HashSet swapToFileGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- ChunkID of the AbstractGrid2DSquareCellChunk not to be swapped.
public final java.util.HashSet swapToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs, 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 java.util.HashSet swapToFileGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs)
_ChunkIDs
- HashSet of AbstractGrid2DSquareCellChunk.ChunkIDs
not to be swapped.
public final AbstractGrid2DSquareCell.ChunkID swapToFileGrid2DSquareCellChunkExcept(java.util.HashSet _ChunkIDs, boolean _HandleOutOfMemoryError)
_ChunkIDs
- _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 AbstractGrid2DSquareCell.ChunkID swapToFileGrid2DSquareCellChunkExcept(java.util.HashSet _ChunkIDs)
public final java.util.HashSet swapToFileGrid2DSquareCellChunks(boolean _HandleOutOfMemoryError)
swapToFileGrid2DSquareCellGrid2DSquareCellChunks(boolean)
Swapping involves writing to files and then clearing them from the cache.
_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 java.util.HashSet swapToFileGrid2DSquareCellChunks()
public final long swapToFileGrid2DSquareCellChunks(int cri0, int cci0, int cri1, int cci1, boolean _HandleOutOfMemoryError)
cri0
- The chunk row index of the first AbstractGrid2DSquareCellChunk to be
swapped.cci0
- The chunk column index of the first AbstractGrid2DSquareCellChunk to
be swapped.cri1
- The chunk row index of the last AbstractGrid2DSquareCellChunk to be
swapped.cci1
- The chunk column index of the last AbstractGrid2DSquareCellChunk to be
swapped._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 long swapToFileGrid2DSquareCellChunks(int cri0, int cci0, int cri1, int cci1)
cri0
- The chunk row index of the first Grid2DSquareCellChunks to be
swapped.cci0
- The chunk column index of the first Grid2DSquareCellChunks to
be swapped.cri1
- The chunk row index of the last Grid2DSquareCellChunks to be
swapped.cci1
- The chunk column index of the last Grid2DSquareCellChunks to
be swapped.
public final boolean isInCache(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk tested to see if
it is swapToFiled._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 boolean isInCache(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk tested to see if
it is swapToFiled.
protected final void clearFromCacheGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk to be cleared._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 clearFromCacheGrid2DSquareCellChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk to be cleared.protected final void clearFromCacheGrid2DSquareCellChunks(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 void clearFromCacheGrid2DSquareCellChunks()
protected final void clearFromCacheGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs, boolean _HandleOutOfMemoryError)
_ChunkIDs
- A HashSet containing the ChunkIDs of the
Grid2DSquareCellChunkAbstracts to be cleared._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 clearFromCacheGrid2DSquareCellChunks(java.util.HashSet _ChunkIDs)
_ChunkIDs
- A HashSet containing the ChunkIDs of the
Grid2DSquareCellChunkAbstracts to be cleared.protected final void clearFromCacheGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk not to be cleared._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 clearFromCacheGrid2DSquareCellChunkExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk not to be cleared.protected final void clearFromCacheGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk not to be cleared._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 clearFromCacheGrid2DSquareCellChunksExcept(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk not to be cleared.protected final void clearFromCacheGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs, boolean _HandleOutOfMemoryError)
_ChunkIDs
- The HashSet of ChunkIDs of the _Grid2DSquareCellChunks not
to be cleared._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 clearFromCacheGrid2DSquareCellChunksExcept(java.util.HashSet _ChunkIDs)
_ChunkIDs
- The HashSet of ChunkIDs of the _Grid2DSquareCellChunks not
to be cleared.public final void loadIntoCacheChunk(int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The chunk row index of the grid2DSquareCellChunk
to be restored._ChunkColIndex
- The chunk column index of the grid2DSquareCellChunk
to be restored._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 loadIntoCacheChunk(int _ChunkRowIndex, int _ChunkColIndex)
_ChunkRowIndex
- The chunk row index of the grid2DSquareCellChunk
to be restored._ChunkColIndex
- The chunk column index of the grid2DSquareCellChunk
to be restored.public final void loadIntoCacheChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of the grid2DSquareCellChunk to be restored._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 loadIntoCacheChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of the AbstractGrid2DSquareCellChunk to be restored.protected final java.lang.Object loadObject(java.io.File _File, boolean _HandleOutOfMemoryError)
_File
- The file from which the Object is loaded._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 java.lang.Object loadObject(java.io.File _File)
_File
- The file from which the Object is loaded.
protected final java.lang.Object loadObject(java.io.ObjectInputStream _ObjectInputStream)
_ObjectInputStream
- The ObjectInputStream from which the Object is loaded.
public final AbstractGrid2DSquareCell.CellID[] getCellIDs(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 final AbstractGrid2DSquareCell.CellID[] getCellIDs(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 final AbstractGrid2DSquareCell.CellID[] getCellIDs(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 final AbstractGrid2DSquareCell.CellID[] getCellIDs(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 AbstractGrid2DSquareCell.CellID[] getCellIDs(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 AbstractGrid2DSquareCell.CellID[] getCellIDs(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 AbstractGrid2DSquareCell.CellID getNearestCellID(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 getNearestCellID(double x, double y)
x
- the x-coordinate of the point.y
- the y-coordinate of the point.
public AbstractGrid2DSquareCell.CellID getNearestCellID(long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- the row index from which nearest cell ID is returned._CellColIndex
- the column index from which nearest cell ID 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.
TODO:
return CellID[] as could be more than one nearest CellID
protected AbstractGrid2DSquareCell.CellID getNearestCellID(long _CellRowIndex, long _CellColIndex)
_CellRowIndex
- the row index from which nearest cell ID is returned._CellColIndex
- the column index from which nearest cell ID is returned.
TODO:
return CellID[] as could be more than one nearest CellID
public AbstractGrid2DSquareCell.CellID getNearestCellID(double x, double y, long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
x
- The x-coordinate of the point.y
- The y-coordinate of the point._CellRowIndex
- The cell row index of cell containing point._CellColIndex
- The cell column index of cell containing 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 getNearestCellID(double x, double y, long _CellRowIndex, long _CellColIndex)
x
- The x-coordinate of the point.y
- The y-coordinate of the point._CellRowIndex
- The cell row index of cell containing point._CellColIndex
- The cell column index of cell containing point.
public final double getHeightDouble(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 double getHeightDouble()
public final java.math.BigDecimal getHeightBigDecimal(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 java.math.BigDecimal getHeightBigDecimal()
public final double getWidthDouble(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 double getWidthDouble()
public final java.math.BigDecimal getWidthBigDecimal(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 java.math.BigDecimal getWidthBigDecimal()
public final boolean isInGrid(java.math.BigDecimal xBigDecimal, java.math.BigDecimal yBigDecimal, boolean _HandleOutOfMemoryError)
xBigDecimal
- The x-coordinate of the point.yBigDecimal
- 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 boolean isInGrid(java.math.BigDecimal xBigDecimal, java.math.BigDecimal yBigDecimal)
xBigDecimal
- The x-coordinate of the point.yBigDecimal
- The y-coordinate of the point.
public final boolean isInGrid(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 boolean isInGrid(double x, double y)
x
- The x-coordinate of the point.y
- The y-coordinate of the point.
public final boolean isInGrid(long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- The cell row index to test._CellColIndex
- The cell column index to test._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 boolean isInGrid(long _CellRowIndex, long _CellColIndex)
_CellRowIndex
- The cell row index to test._CellColIndex
- The cell column index to test.
public final boolean isInGrid(int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- The chunk row index to test._ChunkColIndex
- The chunk column index to test._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 boolean isInGrid(int _ChunkRowIndex, int _ChunkColIndex)
_ChunkRowIndex
- The chunk row index to test._ChunkColIndex
- The chunk column index to test.
public final boolean isInGrid(AbstractGrid2DSquareCell.CellID _CellID, boolean _HandleOutOfMemoryError)
_CellID
- The CellID of a cell to test._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 boolean isInGrid(AbstractGrid2DSquareCell.CellID _CellID)
_CellID
- The CellID of a cell to test.
public final boolean isInGrid(AbstractGrid2DSquareCell.ChunkID _ChunkID, boolean _HandleOutOfMemoryError)
_ChunkID
- The ChunkID of a cell to test._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 boolean isInGrid(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- The ChunkID of a cell to test.
public final boolean isInGrid(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex, boolean _HandleOutOfMemoryError)
_ChunkRowIndex
- _ChunkColIndex
- chunkCellRowIndex
- chunkCellColIndex
- _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 boolean isInGrid(int _ChunkRowIndex, int _ChunkColIndex, int chunkCellRowIndex, int chunkCellColIndex)
_ChunkRowIndex
- _ChunkColIndex
- chunkCellRowIndex
- chunkCellColIndex
-
public final java.math.BigDecimal getCellXBigDecimal(long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellColIndex
- The cell column index thats centroid x-coordinate 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.
public final java.math.BigDecimal getCellXBigDecimal(long _CellColIndex, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_CellColIndex
- The cell column index thats centroid x-coordinate is
returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._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 java.math.BigDecimal getCellXBigDecimal(long _CellColIndex)
_CellColIndex
- The cell column index thats centroid x-coordinate is
returned.
public final double getCellXDouble(long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellColIndex
- The cell column index thats centroid x-coordinate 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.
public final double getCellXDouble(long _CellColIndex, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell.ChunkID _ChunkID)
_CellColIndex
- The cell column index thats centroid x-coordinate 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._ChunkID
- This is a ChunkID for those AbstractGrid2DSquareCells not
to be swapped if possible when an OutOfMemoryError is encountered.
public final double getCellXDouble(int chunkCellColIndex, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
chunkCellColIndex
- The cell column index thats centroid x-coordinate is
returned._ChunkRowIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._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 getCellXDouble(int chunkCellColIndex, int _ChunkColIndex)
chunkCellColIndex
- The cell column index thats centroid x-coordinate is
returned._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final double getCellXDouble(long _CellColIndex)
_CellColIndex
- The cell column index thats centroid x-coordinate is
returned.
public final java.math.BigDecimal getCellXBigDecimal(AbstractGrid2DSquareCell.CellID _CellID, boolean _HandleOutOfMemoryError)
_CellID
- _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 java.math.BigDecimal getCellXBigDecimal(AbstractGrid2DSquareCell.CellID _CellID, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_CellID
- The CellID of the cell thats centroid is returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final java.math.BigDecimal getCellXBigDecimal(AbstractGrid2DSquareCell.CellID _CellID)
_CellID
-
public final double getCellXDouble(AbstractGrid2DSquareCell.CellID _CellID, boolean _HandleOutOfMemoryError)
_CellID
- _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 getCellXDouble(AbstractGrid2DSquareCell.CellID _CellID, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_CellID
- The CellID of the cell thats centroid is returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final double getCellXDouble(AbstractGrid2DSquareCell.CellID _CellID)
_CellID
-
public final java.math.BigDecimal getCellYBigDecimal(long _CellRowIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- the cell column index thats centroid y-coordinate 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.
public final java.math.BigDecimal getCellYBigDecimal(long _CellRowIndex, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- the cell column index thats centroid y-coordinate is
returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final java.math.BigDecimal getCellYBigDecimal(long _CellRowIndex)
_CellRowIndex
- the cell column index thats centroid y-coordinate is
returned.
public final double getCellYDouble(long _CellRowIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- the cell column index thats centroid y-coordinate 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.
public final double getCellYDouble(long _CellRowIndex, boolean _HandleOutOfMemoryError, AbstractGrid2DSquareCell.ChunkID _ChunkID)
_CellRowIndex
- the cell column index thats centroid y-coordinate 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._ChunkID
- This is a ChunkID for those AbstractGrid2DSquareCells not
to be swapped if possible when an OutOfMemoryError is encountered.
public final double getCellYDouble(int chunkCellRowIndex, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
chunkCellRowIndex
- the chunk cell column index thats centroid
y-coordinate is returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._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 getCellYDouble(int chunkCellRowIndex, int _ChunkRowIndex)
chunkCellRowIndex
- the chunk cell column index thats centroid
y-coordinate is returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final double getCellYDouble(long _CellRowIndex)
_CellRowIndex
- the cell column index thats centroid y-coordinate is
returned.
public final java.math.BigDecimal getCellYBigDecimal(AbstractGrid2DSquareCell.CellID _CellID, boolean _HandleOutOfMemoryError)
_CellID
- The CellID of the cell thats centroid 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.
public final java.math.BigDecimal getCellYBigDecimal(AbstractGrid2DSquareCell.CellID _CellID, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_CellID
- The CellID of the cell thats centroid is returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final java.math.BigDecimal getCellYBigDecimal(AbstractGrid2DSquareCell.CellID _CellID)
_CellID
- The CellID of the cell thats centroid is returned.
public final double getCellYDouble(AbstractGrid2DSquareCell.CellID _CellID, boolean _HandleOutOfMemoryError)
_CellID
- _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 getCellYDouble(AbstractGrid2DSquareCell.CellID _CellID, int _ChunkRowIndex, int _ChunkColIndex, boolean _HandleOutOfMemoryError)
_CellID
- The CellID of the cell thats centroid is returned._ChunkRowIndex
- The chunk row index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown._ChunkColIndex
- The chunk column index of the
AbstractGrid2DSquareCellChunk not to be swapped if an OutOfMemoryError
is thrown.
protected final double getCellYDouble(AbstractGrid2DSquareCell.CellID _CellID)
_CellID
-
public final double[] getGridBounds(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 double[] getGridBounds()
public final double[] getCellBoundsDoubleArray(long _CellRowIndex, long _CellColIndex, boolean _HandleOutOfMemoryError)
_CellRowIndex
- the row index of the cell for which the bounds are
returned_CellColIndex
- the column index of the cell for which the bounds 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 final double[] getCellBoundsDoubleArray(long _CellRowIndex, long _CellColIndex)
_CellRowIndex
- the row index of the cell for which the bounds are
returned_CellColIndex
- the column index of the cell for which the bounds are
returned
public final double[] getCellBoundsDoubleArray(double x, double y, boolean _HandleOutOfMemoryError)
x
- the x-coordinate in the cell for which the bounds are returnedy
- the y-coordinate in the cell for which the bounds 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 final double[] getCellBoundsDoubleArray(double x, double y)
x
- the x-coordinate in the cell for which the bounds are returnedy
- the y-coordinate in the cell for which the bounds are returned
public abstract java.math.BigDecimal getNoDataValueBigDecimal(boolean _HandleOutOfMemoryError)
public AbstractGrid2DSquareCell.ChunkID getNextChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, int _NChunkRows, int _NChunkCols, boolean _HandleOutOfMemoryError)
_ChunkID
- _NChunkRows
- _NChunkCols
- _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.ChunkID getNextChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, int _NChunkRows, int _NChunkCols)
_ChunkID
- _NChunkRows
- _NChunkCols
-
public AbstractGrid2DSquareCell.ChunkID getNextChunkRowMinor(AbstractGrid2DSquareCell.ChunkID _ChunkID, int _NChunkRows, int _NChunkCols, boolean _HandleOutOfMemoryError)
_ChunkID
- _NChunkRows
- _NChunkCols
- _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.ChunkID getNextChunkRowMinor(AbstractGrid2DSquareCell.ChunkID _ChunkID, int _NChunkRows, int _NChunkCols)
_ChunkID
- _NChunkRows
- _NChunkCols
-
public AbstractGrid2DSquareCell.ChunkID getPreviousChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, int _NChunkRows, int _NChunkCols, boolean _HandleOutOfMemoryError)
_ChunkID
- _NChunkRows
- _NChunkCols
- _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.ChunkID getPreviousChunk(AbstractGrid2DSquareCell.ChunkID _ChunkID, int _NChunkRows, int _NChunkCols)
_ChunkID
- _NChunkRows
- _NChunkCols
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |