appl.parallel.data
Class WritableGridArrayPartition.Float

java.lang.Object
  extended by WritableGridArray.Float
      extended by appl.parallel.data.WritableGridArrayPartition.Float
All Implemented Interfaces:
DataPartition, WritableGridPartition
Enclosing class:
WritableGridArrayPartition

public static class WritableGridArrayPartition.Float
extends WritableGridArray.Float
implements WritableGridPartition

For Float data types

Author:
Dominik Appl
See Also:
WritableGridArray.Float

Constructor Summary
WritableGridArrayPartition.Float(RasterMetaData metaData, int rootID, Rectangle thisPartition)
           
 
Method Summary
 DataPartition getEmpty(int id)
          Creates an empty Object with the given id.
 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()
          Returns the id of the super data structure this partition is a part of.
 void setPartition(DataPartition partition, Rectangle partitionBounds)
          Overwrites the data at the location specified by the Rectangle with the given partition-data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WritableGridArrayPartition.Float

public WritableGridArrayPartition.Float(RasterMetaData metaData,
                                        int rootID,
                                        Rectangle thisPartition)
Method Detail

getPartitionBounds

public Rectangle getPartitionBounds()
Description copied from interface: DataPartition
Returns the bounds of the partition as a rectangle. The coordinates of the rectangle are global (which means relative to the root structure).

Specified by:
getPartitionBounds in interface DataPartition
Returns:
the bounds of the partition as a rectangle. The coordinates of the rectangle are global (which means relative to the root structure).

getPartition

public DataPartition getPartition(Rectangle partitionBounds)
Description copied from interface: DataPartition
Returns the partition specified by the given 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.

Specified by:
getPartition in interface DataPartition
Parameters:
partitionBounds - the bounds of the partition which are to be retrieved in global coordinates (the coordinates should be relative to the root-structure)

getRootID

public int getRootID()
Description copied from interface: DataPartition
Returns the id of the super data structure this partition is a part of.

Specified by:
getRootID in interface DataPartition
Returns:
the id of the super data structure this partition is a part of.

setPartition

public void setPartition(DataPartition partition,
                         Rectangle partitionBounds)
Description copied from interface: DataPartition
Overwrites the data at the location specified by the Rectangle with the given partition-data.

Specified by:
setPartition in interface DataPartition
Parameters:
partition - the new data
partitionBounds - the target location of the data (in coordinates of the root structure)

getEmpty

public DataPartition getEmpty(int id)
Description copied from interface: DataPartition
Creates an empty Object with the given id. (Used e.g. by Multi-Data-Objects)

Specified by:
getEmpty in interface DataPartition
Parameters:
id - the id of the new Object
Returns:
an Empty element with the same dimension as this element.