edu.unh.sdb.lattice
Class Geometry

java.lang.Object
  extended by edu.unh.sdb.lattice.Geometry
Direct Known Subclasses:
RegularCellGeometry, RegularPointGeometry, UnstructuredGeometry

public abstract class Geometry
extends java.lang.Object

This public class is responsible for mapping a DataID to a location in the geometric space. For regular data, it can do this mapping with a simple calculation. For unstructured data, it must directly access the DataSet to retrieve the attributes being used as dimensions.


Field Summary
protected  GBounds bounds
           
protected  int dimensionality
           
protected  boolean isCellGeometry
           
protected  Partitioning partition
           
 
Constructor Summary
Geometry(GBounds bounds, Partitioning p, boolean isCellGeometry)
          This constructor creates a new domain appropriate for the dataset described by the argument.
 
Method Summary
 int dim()
          returns dimensionality of the geometry
 GBounds getBounds()
          returns the geometry bounds
 Partitioning getPartitioning()
           
 boolean isCellGeometry()
          returns true is this geometry is a cell geometry, false otherwise.
 IndexSpaceID map(Point p)
           
 java.lang.String toString()
          Return a String representing the object.
 java.lang.String toString(java.lang.String indent)
          Return a String representing the object indented by the argument string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dimensionality

protected int dimensionality

bounds

protected GBounds bounds

partition

protected Partitioning partition

isCellGeometry

protected boolean isCellGeometry
Constructor Detail

Geometry

public Geometry(GBounds bounds,
                Partitioning p,
                boolean isCellGeometry)
This constructor creates a new domain appropriate for the dataset described by the argument.

Method Detail

dim

public final int dim()
returns dimensionality of the geometry


isCellGeometry

public boolean isCellGeometry()
returns true is this geometry is a cell geometry, false otherwise.


getBounds

public final GBounds getBounds()
returns the geometry bounds


getPartitioning

public final Partitioning getPartitioning()

map

public IndexSpaceID map(Point p)

toString

public java.lang.String toString()
Return a String representing the object.

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String indent)
Return a String representing the object indented by the argument string.