|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCellChunk
public abstract class AbstractGrid2DSquareCellChunk
AbstractGrid2DSquareCellChunk provides inner classes for ChunkCellID and general geometry methods for extended classes. 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: Add an int TYPE attribute field which can be used to switch between different types of instances?
Nested Class Summary | |
---|---|
class |
AbstractGrid2DSquareCellChunk.ChunkCellID
A simple ChunkCellID class for distinguishing cells in this chunk. |
Field Summary | |
---|---|
protected AbstractGrid2DSquareCell.ChunkID |
_ChunkID
For storing the ChunkID of this. |
protected AbstractGrid2DSquareCell |
_Grid2DSquareCell
A reference to the Grid2DSquareCellDoubleAbstract instance. |
protected boolean |
isSwapUpToDate
Indicator for whether the swapped version of this chunk is upToDate. |
Constructor Summary | |
---|---|
AbstractGrid2DSquareCellChunk()
|
Method Summary | |
---|---|
protected abstract void |
clearData()
For clearing the data associated with this. |
protected AbstractGrid2DSquareCell.ChunkID |
getChunkID()
Returns a copy of this._ChunkID. |
AbstractGrid2DSquareCell.ChunkID |
getChunkID(boolean handleOutOfMemoryError)
Returns a copy of this._ChunkID. |
protected java.lang.String |
getDescription()
For returning a description of this. |
protected AbstractGrid2DSquareCell |
getGrid2DSquareCell()
Returns this._Grid2DSquareCell. |
AbstractGrid2DSquareCell |
getGrid2DSquareCell(boolean handleOutOfMemoryError)
Returns this._Grid2DSquareCell. |
protected boolean |
getIsSwapUpToDate()
Returns this.isSwapUpToDate |
boolean |
getIsSwapUpToDate(boolean handleOutOfMemoryError)
Returns this.isSwapUpToDate |
protected java.lang.String |
getName()
Returns the name of this. |
java.lang.String |
getName(boolean handleOutOfMemoryError)
Returns the name of this. |
protected boolean |
inChunk(int chunkCellRowIndex,
int chunkCellColIndex)
Returns true if the cell given by chunk cell row index chunkCellRowIndex, chunk cell col index chunkCellColIndex is in this. |
boolean |
inChunk(int chunkCellRowIndex,
int chunkCellColIndex,
boolean handleOutOfMemoryError)
Returns true if the cell given by chunk cell row index chunkCellRowIndex, chunk cell col index chunkCellColIndex is in this. |
protected void |
initChunkID(AbstractGrid2DSquareCell.ChunkID _ChunkID)
Initialises _ChunkID. |
protected abstract void |
initData()
For initialising the data associated with this. |
protected void |
initGrid2DSquareCell(AbstractGrid2DSquareCell _Grid2DSquareCell)
Initialises _Grid2DSquareCell. |
protected abstract AbstractIterator |
iterator()
Returns an iterator over the cell values. |
AbstractIterator |
iterator(boolean handleOutOfMemoryError)
Returns an iterator over the cell values. |
protected void |
setIsSwapUpToDate(boolean isSwapUpToDate)
Returns this.isSwapUpToDate |
protected void |
setIsSwapUpToDate(boolean isSwapUpToDate,
boolean handleOutOfMemoryError)
Sets this.isSwapUpToDate to isSwapUpToDate |
java.lang.String |
toString(boolean handleOutOfMemoryError)
For returning a description of this. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient AbstractGrid2DSquareCell _Grid2DSquareCell
protected transient AbstractGrid2DSquareCell.ChunkID _ChunkID
protected transient boolean isSwapUpToDate
Constructor Detail |
---|
public AbstractGrid2DSquareCellChunk()
Method Detail |
---|
public AbstractGrid2DSquareCell getGrid2DSquareCell(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 AbstractGrid2DSquareCell getGrid2DSquareCell()
protected void initGrid2DSquareCell(AbstractGrid2DSquareCell _Grid2DSquareCell)
_Grid2DSquareCell
- protected void initChunkID(AbstractGrid2DSquareCell.ChunkID _ChunkID)
_ChunkID
- public AbstractGrid2DSquareCell.ChunkID getChunkID(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 AbstractGrid2DSquareCell.ChunkID getChunkID()
public boolean getIsSwapUpToDate(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 boolean getIsSwapUpToDate()
protected void setIsSwapUpToDate(boolean isSwapUpToDate, 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 void setIsSwapUpToDate(boolean isSwapUpToDate)
public java.lang.String toString(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 getDescription()
public java.lang.String getName(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 getName()
public AbstractIterator iterator(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 abstract AbstractIterator iterator()
public boolean inChunk(int chunkCellRowIndex, int chunkCellColIndex, boolean handleOutOfMemoryError)
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 boolean inChunk(int chunkCellRowIndex, int chunkCellColIndex)
chunkCellRowIndex
- chunkCellColIndex
- protected abstract void clearData()
protected abstract void initData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |