edu.unh.sdb.datasource
Class DSStencil

java.lang.Object
  extended by edu.unh.sdb.datasource.DSStencil
Direct Known Subclasses:
DSPartitionedStencil

public abstract class DSStencil
extends java.lang.Object


Field Summary
protected  int dimensionality
           
protected  ISBounds space
           
 
Constructor Summary
DSStencil(ISBounds space)
           
 
Method Summary
 int dim()
          Return the dimensionality of the stencil domain.
abstract  boolean get(IndexSpaceID id)
          Return true if the given id maps to an active stencil element, false otherwise.
 ISBounds getIndexedBounds(int index)
          Return a new ISBounds with shape equal to the indexed stencil element.
abstract  ISBounds getIndexedBounds(ISBounds stencilBounds, int index)
          sets the argument ISBounds to the bounds of the stencil element stored in this stencil list
 ISBounds getSpaceBounds()
          added by Sridhar
abstract  boolean set(IndexSpaceID id)
          Set the stencil element containing the id to "active".
abstract  boolean setElement(IndexSpaceID id)
          Set the stencil element with index corresponding to id to "active.
abstract  int size()
          return number of elements contained by this stencil
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

space

protected ISBounds space

dimensionality

protected int dimensionality
Constructor Detail

DSStencil

public DSStencil(ISBounds space)
Method Detail

getSpaceBounds

public ISBounds getSpaceBounds()
added by Sridhar


set

public abstract boolean set(IndexSpaceID id)
Set the stencil element containing the id to "active". If it is already active, then the method returns false. Returns true otherwise.


setElement

public abstract boolean setElement(IndexSpaceID id)
Set the stencil element with index corresponding to id to "active. id should already have been mapped to the partitioning space. If it is already active, then the method returns false. Returns true otherwise.


get

public abstract boolean get(IndexSpaceID id)
Return true if the given id maps to an active stencil element, false otherwise.


getIndexedBounds

public ISBounds getIndexedBounds(int index)
Return a new ISBounds with shape equal to the indexed stencil element.


getIndexedBounds

public abstract ISBounds getIndexedBounds(ISBounds stencilBounds,
                                          int index)
sets the argument ISBounds to the bounds of the stencil element stored in this stencil list


size

public abstract int size()
return number of elements contained by this stencil


dim

public final int dim()
Return the dimensionality of the stencil domain.