appl.data
Class WritableGridLLProxy

java.lang.Object
  extended by appl.data.LateLoadingProxy
      extended by appl.data.WritableGridLLProxy
All Implemented Interfaces:
DataProxy, Serializable
Direct Known Subclasses:
SplittableLLProxyGrid, XuluWritableGridFile

public class WritableGridLLProxy
extends LateLoadingProxy

This is an a late loading implementation for WritableGrids.

Author:
Dominik Appl
See Also:
Serialized Form

Field Summary
protected  RasterMetaData metaData
           
 
Fields inherited from class appl.data.LateLoadingProxy
baseObject, dataLoader, intialDataLoader, loaded, LOG
 
Constructor Summary
  WritableGridLLProxy(ImportFactory importFac, RasterMetaData metaData, Object inputPara, XuluRegistry reg)
           
  WritableGridLLProxy(RasterMetaData metaData)
           
protected WritableGridLLProxy(RasterMetaData metaData, DataLoader loader)
           
  WritableGridLLProxy(WritableGridFactory targetFactory, RasterMetaData metaData)
           
 
Method Summary
 double convertRasterToReal(int cell, int dim)
           
 int convertRealToRaster(double coord, int dim)
           
 void dispose()
           
 double getCellHeight()
           
 double getCellWidth()
           
 CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 Object getGridSample(double... coord)
           
 byte getGridSampleAsByte(double... coord)
           
 double getGridSampleAsDouble(double... coord)
           
 float getGridSampleAsFloat(double... coord)
           
 int getGridSampleAsInt(double... coord)
           
 long getGridSampleAsLong(double... coord)
           
 short getGridSampleAsShort(double... coord)
           
 int getHeight()
           
 int getMinX()
           
 int getMinY()
           
 Object getRasterSample(int... cell)
           
 byte getRasterSampleAsByte(int... cell)
           
 double getRasterSampleAsDouble(int... cell)
           
 float getRasterSampleAsFloat(int... cell)
           
 int getRasterSampleAsInt(int... cell)
           
 long getRasterSampleAsLong(int... cell)
           
 short getRasterSampleAsShort(int... cell)
           
 double getRealHeight()
           
 double getRealWidth()
           
 int getSampleType()
           
 int getWidth()
          Returns the Width of the Grid
 double getX()
           
 double getY()
           
 boolean isLateLoadable()
          This class supports late loading
 void setGridSample(Object value, double... coord)
           
 void setRasterSample(Object value, int... cell)
           
protected  void tryLoadingGrid()
          Trys to load the grid and gives out an error to the LOG, if the loading fails.
 
Methods inherited from class appl.data.LateLoadingProxy
getProxiedObject, getUnloadFile, isLoaded, isUnloadingEnabled, loadData, setUnloadDir, setUnloading, unloadData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaData

protected RasterMetaData metaData
Constructor Detail

WritableGridLLProxy

public WritableGridLLProxy(ImportFactory importFac,
                           RasterMetaData metaData,
                           Object inputPara,
                           XuluRegistry reg)

WritableGridLLProxy

public WritableGridLLProxy(WritableGridFactory targetFactory,
                           RasterMetaData metaData)

WritableGridLLProxy

public WritableGridLLProxy(RasterMetaData metaData)

WritableGridLLProxy

protected WritableGridLLProxy(RasterMetaData metaData,
                              DataLoader loader)
Method Detail

convertRasterToReal

public double convertRasterToReal(int cell,
                                  int dim)

convertRealToRaster

public int convertRealToRaster(double coord,
                               int dim)

dispose

public void dispose()
See Also:
WritableGrid#dispose()

getGridSample

public Object getGridSample(double... coord)

getGridSampleAsByte

public byte getGridSampleAsByte(double... coord)

getGridSampleAsDouble

public double getGridSampleAsDouble(double... coord)

getGridSampleAsFloat

public float getGridSampleAsFloat(double... coord)

getGridSampleAsInt

public int getGridSampleAsInt(double... coord)

getGridSampleAsLong

public long getGridSampleAsLong(double... coord)

getGridSampleAsShort

public short getGridSampleAsShort(double... coord)

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()

getHeight

public int getHeight()

getMinX

public int getMinX()

getMinY

public int getMinY()

getRasterSample

public Object getRasterSample(int... cell)

getRasterSampleAsByte

public byte getRasterSampleAsByte(int... cell)

getRasterSampleAsDouble

public double getRasterSampleAsDouble(int... cell)

getRasterSampleAsFloat

public float getRasterSampleAsFloat(int... cell)

getRasterSampleAsInt

public int getRasterSampleAsInt(int... cell)

getRasterSampleAsLong

public long getRasterSampleAsLong(int... cell)

getRasterSampleAsShort

public short getRasterSampleAsShort(int... cell)

getRealHeight

public double getRealHeight()

getRealWidth

public double getRealWidth()

getSampleType

public int getSampleType()

getWidth

public int getWidth()
Returns the Width of the Grid


getX

public double getX()

getY

public double getY()

setGridSample

public void setGridSample(Object value,
                          double... coord)

setRasterSample

public void setRasterSample(Object value,
                            int... cell)

tryLoadingGrid

protected void tryLoadingGrid()
Trys to load the grid and gives out an error to the LOG, if the loading fails.


getCellHeight

public double getCellHeight()

getCellWidth

public double getCellWidth()

isLateLoadable

public boolean isLateLoadable()
This class supports late loading

Overrides:
isLateLoadable in class LateLoadingProxy
Returns:
true;
See Also:
appl.data.LateLoadable#unloadData(), appl.data.LateLoadable#isLateLoadable()