|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.data.LateLoadingProxy
appl.data.WritableGridLLProxy
appl.parallel.data.xulugridfile.XuluWritableGridFile
public class XuluWritableGridFile
An implementation of a WritableGrid based on a XuluGridFile
.
Field Summary |
---|
Fields inherited from class appl.data.WritableGridLLProxy |
---|
metaData |
Fields inherited from class appl.data.LateLoadingProxy |
---|
baseObject, dataLoader, intialDataLoader, loaded, LOG |
Constructor Summary | |
---|---|
XuluWritableGridFile(File gridfileName)
Opens the GridFile at the given destination |
|
XuluWritableGridFile(int newID,
RasterMetaData metaData,
String directory)
Creates a new XuluWritableGridFile in the specified directory, with the given metadata. |
|
XuluWritableGridFile(RasterMetaData metaData,
String directory)
Creates NEW a GridFile in the given directory with the given metadata-sample |
|
XuluWritableGridFile(XuluGridFile xuluGridFile)
creates a instance out of a XuluGridFile |
Method Summary | |
---|---|
DataPartition |
getEmpty(int newID)
Creates an empty Object with the given id. |
String |
getGridFileName()
|
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)
|
DataLoader |
getLocalLoader()
Returns the loader which is responible for loading the data. |
DataPartition |
getPartition(Rectangle partitionBounds)
Returns the partition specified by the given Rectangle . |
Rectangle |
getPartitionBounds()
Returns the bounds of the partition as a rectangle. |
int |
getRootID()
Should return a unique ID for this resource. |
int |
getSplitHeight()
|
int |
getSplitWidth()
|
void |
setGridSample(Object value,
double... coord)
|
void |
setPartition(DataPartition partition,
Rectangle partitionBounds)
Overwrites the data at the location specified by the Rectangle with
the given partition-data. |
void |
setRasterSample(Object value,
int... cell)
|
void |
unloadData()
unloading is not necessary (method does nothing |
Methods inherited from class appl.data.LateLoadingProxy |
---|
getProxiedObject, getUnloadFile, isLoaded, isUnloadingEnabled, loadData, setUnloadDir, setUnloading |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XuluWritableGridFile(File gridfileName)
gridfileName
- the filename of the XuluGridfilepublic XuluWritableGridFile(RasterMetaData metaData, String directory)
metaData
- the metadatapublic XuluWritableGridFile(XuluGridFile xuluGridFile)
XuluGridFile
public XuluWritableGridFile(int newID, RasterMetaData metaData, String directory)
newID
- the to be set as the new RootID (permanent)metaData
- the metadata is used for creation of the bounds and the type of the new XuluGridFile
directory
- the directory in which the file should be createdSplittableResource.getRootID()
Method Detail |
---|
public DataLoader getLocalLoader()
SplittableResource
getLocalLoader
in interface SplittableResource
public int getRootID()
SplittableResource
hashcode
of the object.
getRootID
in interface DataPartition
getRootID
in interface SplittableResource
public int getSplitHeight()
getSplitHeight
in interface SplittableResource
public int getSplitWidth()
getSplitWidth
in interface SplittableResource
public DataPartition getEmpty(int newID)
DataPartition
getEmpty
in interface DataPartition
newID
- the id of the new Object
public DataPartition getPartition(Rectangle partitionBounds)
DataPartition
Rectangle
. Note, that
partitioning by a rectangle does not mean, that the underlying datastructure
has to be 2D, but only that the splitting has to be at max. 2D.
getPartition
in interface DataPartition
partitionBounds
- the bounds of the partition which are to be retrieved
in global coordinates (the coordinates should be relative to the root-structure)public Rectangle getPartitionBounds()
DataPartition
getPartitionBounds
in interface DataPartition
public void setPartition(DataPartition partition, Rectangle partitionBounds)
DataPartition
Rectangle
with
the given partition-data.
setPartition
in interface DataPartition
partition
- the new datapartitionBounds
- the target location of the data (in coordinates of the root structure)public void setGridSample(Object value, double... coord)
setGridSample
in class WritableGridLLProxy
public void setRasterSample(Object value, int... cell)
setRasterSample
in class WritableGridLLProxy
public Object getGridSample(double... coord)
getGridSample
in class WritableGridLLProxy
public byte getGridSampleAsByte(double... coord)
getGridSampleAsByte
in class WritableGridLLProxy
public double getGridSampleAsDouble(double... coord)
getGridSampleAsDouble
in class WritableGridLLProxy
public float getGridSampleAsFloat(double... coord)
getGridSampleAsFloat
in class WritableGridLLProxy
public int getGridSampleAsInt(double... coord)
getGridSampleAsInt
in class WritableGridLLProxy
public long getGridSampleAsLong(double... coord)
getGridSampleAsLong
in class WritableGridLLProxy
public short getGridSampleAsShort(double... coord)
getGridSampleAsShort
in class WritableGridLLProxy
public void unloadData()
unloadData
in class LateLoadingProxy
LateLoadingProxy.unloadData()
public String getGridFileName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |