|
||||||||||
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.Grid2DSquareCellIntFactory
public class Grid2DSquareCellIntFactory
TODO: 1. Abstraction and extension as for Grid2DSquareCellDoubleFactory. 2. Add constructor and setter for prefered type of Grid2DSquareCellIntChunkFactory 3. docs
Field Summary | |
---|---|
protected java.io.File |
directory
A directory for caching. |
Constructor Summary | |
---|---|
Grid2DSquareCellIntFactory()
Defaults directory to a new one in System.getProperties( "java.io.tmpdir" ); |
|
Grid2DSquareCellIntFactory(java.io.File directory)
|
Method Summary | |
---|---|
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File gridFile)
Returns a new Grid2DSquareCellInt with values obtained from gridFile. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
java.io.File gridFile,
Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory,
int chunkNrows,
int chunkNcols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from gridFile. |
protected Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
java.io.File gridFile,
Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from gridFile. |
protected Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
java.io.File gridFile,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from gridFile. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
java.io.File gridFile,
java.io.ObjectInputStream ois)
|
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
Grid2DSquareCellAbstract grid2DSquareCell,
Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkAbstractFactory,
int chunkNrows,
int chunkNcols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from grid2DSquareCell. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
Grid2DSquareCellAbstract grid2DSquareCell,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from grid2DSquareCell. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
Grid2DSquareCellIntChunkAbstractFactory chunkFactory,
int chunkNrows,
int chunkNcols,
long nrows,
long ncols,
java.math.BigDecimal[] dimensions)
Returns a new Grid2DSquareCellInt grid with all values as noDataValues. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(java.io.File directory,
int chunkNrows,
int chunkNcols,
long nrows,
long ncols,
java.math.BigDecimal[] dimensions)
Returns a new Grid2DSquareCellInt grid with all values as noDataValues. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(Grid2DSquareCellAbstract grid2DSquareCell)
Returns a new Grid2DSquareCellInt with all values as int values from grid2DSquareCell. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(Grid2DSquareCellAbstract grid2DSquareCell,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from grid2DSquareCell. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics,
java.io.File directory,
java.io.File gridFile,
Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory,
int chunkNrows,
int chunkNcols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from gridFile. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics,
java.io.File directory,
Grid2DSquareCellAbstract grid2DSquareCell,
Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkAbstractFactory,
int chunkNrows,
int chunkNcols,
long startRowIndex,
long startColIndex,
long endRowIndex,
long endColIndex)
Returns a new Grid2DSquareCellInt with values obtained from grid2DSquareCell. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics,
java.io.File directory,
Grid2DSquareCellIntChunkAbstractFactory chunkFactory,
int chunkNrows,
int chunkNcols,
long nrows,
long ncols,
java.math.BigDecimal[] dimensions)
Returns a new Grid2DSquareCellInt grid with all values as noDataValues. |
Grid2DSquareCellAbstract |
createGrid2DSquareCellInt(int chunkNrows,
int chunkNcols,
long nrows,
long ncols)
Returns an Grid2DSquareCellInt with all values as noDataValues. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(int chunkNrows,
int chunkNcols,
long nrows,
long ncols,
java.math.BigDecimal[] dimensions)
Returns an Grid2DSquareCellInt with all values as noDataValues. |
Grid2DSquareCellAbstract |
createGrid2DSquareCellInt(long nrows,
long ncols)
Returns an Grid2DSquareCellInt with all values as noDataValues. |
Grid2DSquareCellInt |
createGrid2DSquareCellInt(long nrows,
long ncols,
java.math.BigDecimal[] dimensions)
Returns an Grid2DSquareCellInt with all values as noDataValues. |
java.io.File |
getDirectory()
Returns directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File directory
Constructor Detail |
---|
public Grid2DSquareCellIntFactory()
public Grid2DSquareCellIntFactory(java.io.File directory)
directory
- A "workspace directory" for storing temporary files and
caching Grid2DSquareCellDoubleAbstract data.Method Detail |
---|
public Grid2DSquareCellAbstract createGrid2DSquareCellInt(long nrows, long ncols)
nrows
- the Grid2DSquareCellInt nrows.ncols
- the Grid2DSquareCellInt ncols.
Defaults:
chunkNrows and chunkNcols to 64public Grid2DSquareCellAbstract createGrid2DSquareCellInt(int chunkNrows, int chunkNcols, long nrows, long ncols)
chunkNrows
- The Grid2DSquareCellInt chunkNrows.chunkNcols
- The Grid2DSquareCellInt chunkNcols.nrows
- the Grid2DSquareCellInt nrows.ncols
- the Grid2DSquareCellInt ncols.
Defaults:
dimensions = [ cellsize = 1.0d, xmin = 0.0d, ymin = 0.0d,
xmax = ncols * cellsize, ymax = nrows * cellsize ];
noDataValue = Integer.MIN_VALUEpublic Grid2DSquareCellInt createGrid2DSquareCellInt(long nrows, long ncols, java.math.BigDecimal[] dimensions)
nrows
- the Grid2DSquareCellInt nrows.ncols
- the Grid2DSquareCellInt ncols.dimensions
- Defaults:
chunkNrows and chunkNcols to 64public Grid2DSquareCellInt createGrid2DSquareCellInt(int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions)
chunkNrows
- The Grid2DSquareCellInt chunkNrows.chunkNcols
- The Grid2DSquareCellInt chunkNcols.nrows
- the Grid2DSquareCellInt nrows.ncols
- the Grid2DSquareCellInt ncols.
Defaults:
directory to FileCreator.createNewFile( this.directory )public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.chunkNrows
- The Grid2DSquareCellInt chunkNrows.chunkNcols
- The Grid2DSquareCellInt chunkNcols.nrows
- the Grid2DSquareCellInt nrows.ncols
- the Grid2DSquareCellInt ncols.dimensions
- public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, Grid2DSquareCellIntChunkAbstractFactory chunkFactory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.chunkFactory
- The type of chunks this will be made up of.nrows
- The Grid2DSquareCellInt nrows.ncols
- The Grid2DSquareCellInt ncols.dimensions
- defaults GridStatisticsAbstract to GridStatistics1public Grid2DSquareCellInt createGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics, java.io.File directory, Grid2DSquareCellIntChunkAbstractFactory chunkFactory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions)
gridStatistics
- The GridStatisticsAbstract to accompany the
returned grid.directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.chunkFactory
- The type of chunks this will be made up of.nrows
- The Grid2DSquareCellInt nrows.ncols
- The Grid2DSquareCellInt ncols.dimensions
- TODO: testpublic Grid2DSquareCellInt createGrid2DSquareCellInt(Grid2DSquareCellAbstract grid2DSquareCell)
grid2DSquareCell
- The Grid2DSquareCellAbstract from which values
are obtained.public Grid2DSquareCellInt createGrid2DSquareCellInt(Grid2DSquareCellAbstract grid2DSquareCell, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
grid2DSquareCell
- The Grid2DSquareCellAbstract from which values
are obtained.startRowIndex
- The topmost row index of grid2DSquareCell thats
values are used.startColIndex
- The leftmost column index of grid2DSquareCell thats
values are used.endRowIndex
- The bottom row index of the grid2DSquareCell thats
values are used.endColIndex
- The rightmost column index of grid2DSquareCell thats
values are used.public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.grid2DSquareCell
- The Grid2DSquareCellAbstract from which values
are obtained.startRowIndex
- The topmost row index of grid2DSquareCell thats
values are used.startColIndex
- The leftmost column index of grid2DSquareCell thats
values are used.endRowIndex
- The bottom row index of the grid2DSquareCell thats
values are used.endColIndex
- The rightmost column index of grid2DSquareCell thats
values are used.
Default:
Grid2DSquareCellIntChunkAbstractFactory to Grid2DSquareCellIntChunkMapFactory,
chunkNrows to 64,
chunkNcols to 64.public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkAbstractFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.grid2DSquareCell
- The Grid2DSquareCellAbstract from which values
are obtained.grid2DSquareCellIntChunkAbstractFactory
- The
Grid2DSquareCellIntChunkAbstractFactory used to construct the chunks.chunkNrows
- The (maximum) number of rows in each chunk.chunkNcols
- The (maximum) number of columns in each chunk.startRowIndex
- The topmost row index of grid2DSquareCell thats
values are used.startColIndex
- The leftmost column index of grid2DSquareCell thats
values are used.endRowIndex
- The bottom row index of the grid2DSquareCell thats
values are used.endColIndex
- The rightmost column index of grid2DSquareCell thats
values are used.
Defaults:
GridStatisticsAbstract to GridStatistics1public Grid2DSquareCellInt createGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics, java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkAbstractFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
gridStatistics
- The GridStatisticsAbstract for the returned
Grid2DSquareCellInt.directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.grid2DSquareCell
- The Grid2DSquareCellAbstract from which values
are obtained.grid2DSquareCellIntChunkAbstractFactory
- The
Grid2DSquareCellIntChunkAbstractFactory used to construct the chunks.chunkNrows
- The (maximum) number of rows in each chunk.chunkNcols
- The (maximum) number of columns in each chunk.startRowIndex
- The topmost row index of grid2DSquareCell thats
values are used.startColIndex
- The leftmost column index of grid2DSquareCell thats
values are used.endRowIndex
- The bottom row index of the grid2DSquareCell thats
values are used.endColIndex
- The rightmost column index of grid2DSquareCell thats
values are used.public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File gridFile)
gridFile
- either a directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellInt to be returned.protected Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, java.io.File gridFile, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.gridFile
- either a directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellInt to be returned.startRowIndex
- The topmost row index of the grid represented in
gridFile thats values are used.startColIndex
- The leftmost column index of the grid represented in
gridFile thats values are used.endRowIndex
- The bottom row index of the grid represented in
gridFile thats values are used.endColIndex
- The rightmost column index of the grid represented in
gridFile thats values are used.
Default:
Grid2DSquareCellIntChunkAbstractFactory to Grid2DSquareCellIntChunkArrayFactoryprotected Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, java.io.File gridFile, Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.gridFile
- either a directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellInt to be returned.grid2DSquareCellIntChunkFactory
- The
Grid2DSquareCellIntChunkAbstractFactory used to construct the chunks.startRowIndex
- The topmost row index of the grid represented in
gridFile thats values are used.startColIndex
- The leftmost column index of the grid represented in
gridFile thats values are used.endRowIndex
- The bottom row index of the grid represented in
gridFile thats values are used.endColIndex
- The rightmost column index of the grid represented in
gridFile thats values are used.
Defaults:
chunkNrows and chunkNcols to 64public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, java.io.File gridFile, Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.gridFile
- either a directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellInt to be returned.grid2DSquareCellIntChunkFactory
- The
Grid2DSquareCellIntChunkAbstractFactory used to construct the chunks.chunkNrows
- The (maximum) number of rows in each chunk.chunkNcols
- The (maximum) number of columns in each chunk.startRowIndex
- The topmost row index of the grid represented in
gridFile thats values are used.startColIndex
- The leftmost column index of the grid represented in
gridFile thats values are used.endRowIndex
- The bottom row index of the grid represented in
gridFile thats values are used.endColIndex
- The rightmost column index of the grid represented in
gridFile thats values are used.
Defaults:
GridStatisticsAbstract to GridStatistics1public Grid2DSquareCellInt createGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics, java.io.File directory, java.io.File gridFile, Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
gridStatistics
- The GridStatisticsAbstract for the returned
Grid2DSquareCellInt.directory
- The directory to be used for storing cached
Grid2DSquareCellInt information.gridFile
- either a directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellInt to be returned.grid2DSquareCellIntChunkFactory
- The
Grid2DSquareCellIntChunkAbstractFactory used to construct the chunks.chunkNrows
- The (maximum) number of rows in each chunk.chunkNcols
- The (maximum) number of columns in each chunk.startRowIndex
- The topmost row index of the grid represented in
gridFile thats values are used.startColIndex
- The leftmost column index of the grid represented in
gridFile thats values are used.endRowIndex
- The bottom row index of the grid represented in
gridFile thats values are used.endColIndex
- The rightmost column index of the grid represented in
gridFile thats values are used.public Grid2DSquareCellInt createGrid2DSquareCellInt(java.io.File directory, java.io.File gridFile, java.io.ObjectInputStream ois)
directory
- gridFile
- ois
- Defaults GridStatistics to GridStatistics1public java.io.File getDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |