uk.ac.leeds.ccg.andyt.grids.examples
Class GenerateRoofData

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
      extended by uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
          extended by uk.ac.leeds.ccg.andyt.grids.examples.GenerateRoofData
All Implemented Interfaces:
java.io.Serializable

public class GenerateRoofData
extends Grid2DSquareCellProcessor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
_Directory, _Grid2DSquareCellDoubleChunk64CellMapFactory, _Grid2DSquareCellDoubleChunkArrayFactory, _Grid2DSquareCellDoubleChunkFactory, _Grid2DSquareCellDoubleChunkJAIFactory, _Grid2DSquareCellDoubleChunkMapFactory, _Grid2DSquareCellDoubleChunkRAFFactory, _Grid2DSquareCellDoubleFactory, _Grid2DSquareCellIntChunk64CellMapFactory, _Grid2DSquareCellIntChunkArrayFactory, _Grid2DSquareCellIntChunkJAIFactory, _Grid2DSquareCellIntChunkMapFactory, _Grid2DSquareCellIntChunkRAFFactory, _Grid2DSquareCellIntFactory, _Grid2DSquareCelllIntChunkFactory, _GridStatistics, _GridStatistics0, _GridStatistics1, log, logIndentation, startTime
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
_Grid2DSquareCells, _HandleOutOfMemoryErrorFalse, _HandleOutOfMemoryErrorTrue, _MemoryReserve, _Runtime
 
Constructor Summary
GenerateRoofData()
          Creates a new GenerateRoofData
GenerateRoofData(java.io.File _Directory)
          Creates a new GenerateRoofData using specified _Directory.
 
Method Summary
 void _AddColRidge(Grid2DSquareCellDouble _Grid2DSquareCellDouble, double _ColRidgeHeight, long nrows, long ncols, long _ColWithRidge, double _LeftColRidgeTanAngle, double _RightColRidgeTanAngle, boolean _HandleOutOfMemoryError)
          Add col ridge
 void _AddRowRidge(Grid2DSquareCellDouble _Grid2DSquareCellDouble, double _RowRidgeHeight, long ncols, long nrows, long _RowWithRidge, double _BottomRowRidgeTanAngle, double _TopRowRidgeTanAngle, boolean _HandleOutOfMemoryError)
          Add row ridge
 void _CreateGableRoofs(Grid2DSquareCellDouble _ResizedGrid2DSquareCellDouble, long nrows, long ncols, long _RowWithRidge, long _ColWithRidge, double _RowRidgeHeight, double _ColRidgeHeight)
          This is like the other _CreateGableRoofs method excpet it does the conversion to a standard dimension and rescales values from 1 to 10.0d
 void _CreateGableRoofs(long nrows, long ncols, long _RowWithRidge, long _ColWithRidge, double _RowRidgeHeight, double _ColRidgeHeight)
           
 void _CreateHippedRoofs(Grid2DSquareCellDouble _ResizedGrid2DSquareCellDouble, long nrows, long ncols, long _RowWithRidge, double _RowRidgeHeight, long _ColStartRidge, long _ColEndRidge, long _ColWithRidge, double _ColRidgeHeight, long _RowStartRidge, long _RowEndRidge)
           http://www.geog.leeds.ac.uk/people/a.turner/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs file:///C:/Work/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs As _CreateHippedRoofs(long,long,long,double,long,long,long,double,long,long) except with Resize and Rescale Output to fit _Dimensions
 void _CreateHippedRoofs(long nrows, long ncols, long _RowWithRidge, double _RowRidgeHeight, long _ColStartRidge, long _ColEndRidge, long _ColWithRidge, double _ColRidgeHeight, long _RowStartRidge, long _RowEndRidge)
           http://www.geog.leeds.ac.uk/people/a.turner/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs file:///C:/Work/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs
 void _Resize(Grid2DSquareCellDouble _ResizeGrid2DSquareCell, Grid2DSquareCellDouble _Grid2DSquareCellDouble, boolean _HandleOutOfMemoryError)
          Consider enhancing and moving to Grid2DSquareCellProcessor.
 void _ResizeRescaleOutput(Grid2DSquareCellDouble _ResizedGrid2DSquareCellDouble, Grid2DSquareCellDouble _Grid2DSquareCellDouble, java.io.File _Output_Directory, ImageExporter _ImageExporter, java.lang.String[] _ImageTypes, ESRIAsciiGridExporter _ESRIAsciiGridExporter, boolean _HandleOutOfMemoryError)
           
 Grid2DSquareCellDouble disaggregate(java.math.BigDecimal[] _Dimensions, Grid2DSquareCellDouble _Grid2DSquareCellDouble, AbstractGrid2DSquareCellFactory _Grid2DSquareCellFactory, boolean _HandleOutOfMemoryError)
           
 long get_Time()
           
static void main(java.lang.String[] args)
           
 void run_0()
           
 void run_1()
          Creates ouputs with varied ridge heights and varied dimensions (rows and columns)
 void run_2()
          Creates ouputs with ridge heights between 1 and 10 and all the same dimensions (rows and columns)
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
_Output, _OutputESRIAsciiGrid, _OutputImage, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, aggregate, aggregate, angle, angle, angle, copyAndSetUpNewLog, distance, distance, distance, get_Directory, getGrid2DSquareCell, getGrid2DSquareCell, getRowProcessData, getRowProcessInitialData, getTime0, getTime0, linearRescale, log, log, log, logRescale, mask, mask, mask, mask, set_Directory, set_Directory, set_Directory, setValueALittleBitLarger, setValueALittleBitSmaller
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
_EnsureThereIsEnoughMemoryToContinue, _SwapToFileGrid2DSquareCellChunk, _SwapToFileGrid2DSquareCellChunk, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunkExcept, _SwapToFileGrid2DSquareCellChunks, _SwapToFileGrid2DSquareCellChunks, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, _SwapToFileGrid2DSquareCellChunksExcept, clear_MemoryReserve, get_Grid2DSquareCells, get_MemoryReserve, getNormalDistributionKernelWeights, getTotalFreeMemory, getTotalFreeMemory, init_Grid2DSquareCells_MemoryReserve, init_Grid2DSquareCells_MemoryReserve, init_Grid2DSquareCells, init_Grid2DSquareCells, init_MemoryReserve, init_MemoryReserve, init_MemoryReserve, init_MemoryReserve, init_MemoryReserve, init_MemoryReserve, init_Runtime, initFile, initFile, initFileDirectory, initString, initString, println, set_Grid2DSquareCells, set_Grid2DSquareCells, sin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateRoofData

public GenerateRoofData()
Creates a new GenerateRoofData


GenerateRoofData

public GenerateRoofData(java.io.File _Directory)
Creates a new GenerateRoofData using specified _Directory. WARNING: Files in the specified _Directory may get overwritten.

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

run_2

public void run_2()
           throws java.io.IOException
Creates ouputs with ridge heights between 1 and 10 and all the same dimensions (rows and columns)

Throws:
java.io.IOException

run_1

public void run_1()
           throws java.io.IOException
Creates ouputs with varied ridge heights and varied dimensions (rows and columns)

Throws:
java.io.IOException

run_0

public void run_0()
           throws java.io.IOException
Throws:
java.io.IOException

_AddRowRidge

public void _AddRowRidge(Grid2DSquareCellDouble _Grid2DSquareCellDouble,
                         double _RowRidgeHeight,
                         long ncols,
                         long nrows,
                         long _RowWithRidge,
                         double _BottomRowRidgeTanAngle,
                         double _TopRowRidgeTanAngle,
                         boolean _HandleOutOfMemoryError)
Add row ridge


_AddColRidge

public void _AddColRidge(Grid2DSquareCellDouble _Grid2DSquareCellDouble,
                         double _ColRidgeHeight,
                         long nrows,
                         long ncols,
                         long _ColWithRidge,
                         double _LeftColRidgeTanAngle,
                         double _RightColRidgeTanAngle,
                         boolean _HandleOutOfMemoryError)
Add col ridge


_CreateHippedRoofs

public void _CreateHippedRoofs(Grid2DSquareCellDouble _ResizedGrid2DSquareCellDouble,
                               long nrows,
                               long ncols,
                               long _RowWithRidge,
                               double _RowRidgeHeight,
                               long _ColStartRidge,
                               long _ColEndRidge,
                               long _ColWithRidge,
                               double _ColRidgeHeight,
                               long _RowStartRidge,
                               long _RowEndRidge)
                        throws java.io.IOException
http://www.geog.leeds.ac.uk/people/a.turner/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs file:///C:/Work/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs As _CreateHippedRoofs(long,long,long,double,long,long,long,double,long,long) except with Resize and Rescale Output to fit _Dimensions

Parameters:
_ResizedGrid2DSquareCellDouble - .
nrows - .
ncols - .
_RowWithRidge - .
_RowRidgeHeight - .
_ColStartRidge - .
_ColEndRidge - .
Throws:
java.io.IOException

_CreateHippedRoofs

public void _CreateHippedRoofs(long nrows,
                               long ncols,
                               long _RowWithRidge,
                               double _RowRidgeHeight,
                               long _ColStartRidge,
                               long _ColEndRidge,
                               long _ColWithRidge,
                               double _ColRidgeHeight,
                               long _RowStartRidge,
                               long _RowEndRidge)
                        throws java.io.IOException
http://www.geog.leeds.ac.uk/people/a.turner/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs file:///C:/Work/src/andyt/java/grids/dist/javadoc/uk/ac/leeds/ccg/andyt/grids/examples/GenerateRoofData.html#_CreateHippedRoofs

Parameters:
nrows - .
ncols - .
_RowWithRidge - .
_RowRidgeHeight - .
_ColStartRidge - .
_ColEndRidge - .
Throws:
java.io.IOException

_CreateGableRoofs

public void _CreateGableRoofs(Grid2DSquareCellDouble _ResizedGrid2DSquareCellDouble,
                              long nrows,
                              long ncols,
                              long _RowWithRidge,
                              long _ColWithRidge,
                              double _RowRidgeHeight,
                              double _ColRidgeHeight)
                       throws java.io.IOException
This is like the other _CreateGableRoofs method excpet it does the conversion to a standard dimension and rescales values from 1 to 10.0d

Throws:
java.io.IOException

_ResizeRescaleOutput

public void _ResizeRescaleOutput(Grid2DSquareCellDouble _ResizedGrid2DSquareCellDouble,
                                 Grid2DSquareCellDouble _Grid2DSquareCellDouble,
                                 java.io.File _Output_Directory,
                                 ImageExporter _ImageExporter,
                                 java.lang.String[] _ImageTypes,
                                 ESRIAsciiGridExporter _ESRIAsciiGridExporter,
                                 boolean _HandleOutOfMemoryError)
                          throws java.io.IOException
Throws:
java.io.IOException

_CreateGableRoofs

public void _CreateGableRoofs(long nrows,
                              long ncols,
                              long _RowWithRidge,
                              long _ColWithRidge,
                              double _RowRidgeHeight,
                              double _ColRidgeHeight)
                       throws java.io.IOException
Parameters:
nrows - This is
Throws:
java.io.IOException

disaggregate

public Grid2DSquareCellDouble disaggregate(java.math.BigDecimal[] _Dimensions,
                                           Grid2DSquareCellDouble _Grid2DSquareCellDouble,
                                           AbstractGrid2DSquareCellFactory _Grid2DSquareCellFactory,
                                           boolean _HandleOutOfMemoryError)

_Resize

public void _Resize(Grid2DSquareCellDouble _ResizeGrid2DSquareCell,
                    Grid2DSquareCellDouble _Grid2DSquareCellDouble,
                    boolean _HandleOutOfMemoryError)
Consider enhancing and moving to Grid2DSquareCellProcessor.


get_Time

public long get_Time()