edu.unh.sdb.datasource
Class Cell

java.lang.Object
  extended by edu.unh.sdb.datasource.Cell
Direct Known Subclasses:
RectilinearCell

public abstract class Cell
extends java.lang.Object


Field Summary
protected  CellID cellID
           
protected  Datum[] data
           
protected  int dimensionality
           
protected  Point[] vertices
           
 
Constructor Summary
Cell()
          Constructor without argument
Cell(CellID cellid)
          Constructor takes a single CellID
Cell(CellID cellid, int dim)
          Constructor takes a CellID and the dimensionality
 
Method Summary
 int dim()
          Get the dimensionality of a cell
 CellID getCellID()
          Get the cell id of a cell
 Datum[] getData()
          Get the data contained in a cell
 int getDimensionality()
          Deprecated. use dim()
 Point[] getVertices()
          Get the corners of a cell
 void setCellData(Datum[] data)
          Set the data of a cell
 void setCellDim(int dim)
          Set the dimension of a cell
 void setCellID(CellID cellid)
          Set the cell id of a cell
 void setCellVertices(Point[] vertices)
          Set the vertice values of a cell
 java.lang.String toString()
          Return a String representing the object.
abstract  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

cellID

protected CellID cellID

dimensionality

protected int dimensionality

data

protected Datum[] data

vertices

protected Point[] vertices
Constructor Detail

Cell

public Cell()
Constructor without argument


Cell

public Cell(CellID cellid)
Constructor takes a single CellID


Cell

public Cell(CellID cellid,
            int dim)
Constructor takes a CellID and the dimensionality

Method Detail

setCellID

public void setCellID(CellID cellid)
Set the cell id of a cell


setCellDim

public void setCellDim(int dim)
Set the dimension of a cell


setCellData

public void setCellData(Datum[] data)
Set the data of a cell


setCellVertices

public void setCellVertices(Point[] vertices)
Set the vertice values of a cell


getCellID

public CellID getCellID()
Get the cell id of a cell


getDimensionality

public int getDimensionality()
Deprecated. use dim()

Get the dimensionality of a cell


dim

public int dim()
Get the dimensionality of a cell


getData

public Datum[] getData()
Get the data contained in a cell


getVertices

public Point[] getVertices()
Get the corners of a cell


toString

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

Overrides:
toString in class java.lang.Object

toString

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