appl.parallel.spmd.split
Interface SplittableResource

All Superinterfaces:
DataPartition
All Known Subinterfaces:
SplittableGrid
All Known Implementing Classes:
SplittableLLProxyGrid, XuluWritableGridFile

public interface SplittableResource
extends DataPartition

A resource that is splittable must provide some information to work with SplitMaps. Important is the with and the height of the resource to be splitted.

Author:
Dominik Appl

Method Summary
 DataLoader getLocalLoader()
          Returns the loader which is responible for loading the data.
 int getRootID()
          Should return a unique ID for this resource.
 int getSplitHeight()
           
 int getSplitWidth()
           
 
Methods inherited from interface appl.parallel.spmd.split.DataPartition
getEmpty, getPartition, getPartitionBounds, setPartition
 

Method Detail

getRootID

int getRootID()
Should return a unique ID for this resource. Standard implementation would be returning the hashcode of the object.

Specified by:
getRootID in interface DataPartition
Returns:
a ID which is unique for this client

getLocalLoader

DataLoader getLocalLoader()
Returns the loader which is responible for loading the data. This loader should be independet from the current system. This means that, e.g. for a loader which loads a grid from filesystem, that all paths should be relative (and not absolute), so that a possibly remote resource can load the data from its local filesystem, if the data is stored in the same position relative to the home directory.

Returns:
a loader for this resource.

getSplitHeight

int getSplitHeight()
Returns:
the splittable is splitted according to its splitHeight (example: the height of a raster)

getSplitWidth

int getSplitWidth()
Returns:
the splittable is splitted according to its splitWidth (example: the width of a raster or the length of an array)