edu.unh.sdb.lattice
Class ArrayCell

java.lang.Object
  extended by edu.unh.sdb.lattice.Cell
      extended by edu.unh.sdb.lattice.ArrayCell

public class ArrayCell
extends Cell

This class defines cells used with regular geometries and rectilinear topologies. Vertices are numbered using a bit pattern constructed as follows: bit 0 is 0 if the vertex is in the lower position of axis 0, 1 otherwise. bit 1 is 0 if the vertex is in the lower position of axis 1, 1 otherwise. bit 2 is 0 if the vertex is in the lower position of axis 2, 1 otherwise. : : bit n is 0 if the vertex is in the lower position of axis n, 1 otherwise.


Field Summary
 
Fields inherited from class edu.unh.sdb.lattice.Cell
coords, data, dimensionality, numVertices
 
Constructor Summary
ArrayCell(Point[] vertices, Datum[] data)
          Construct a array cell with the corners defined by the "vertices" with attribute values at those corners defined by "data".
ArrayCell(Point[] vertices, Datum[] data, int dimensionality)
          Deprecated. The dimensionality argument is superfluous.
 
Method Summary
 float[] getDimensions()
          return an array that represents the sizes of each dimension of the cell.
 boolean intersects(Cell c)
          determine if the argument Cell intersects with this Cell.
 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 edu.unh.sdb.lattice.Cell
datum, dim, getData, getNumVertices, getVertexCoords, setData, setDimensionality, setVertexCoords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayCell

public ArrayCell(Point[] vertices,
                 Datum[] data)
Construct a array cell with the corners defined by the "vertices" with attribute values at those corners defined by "data". An array cell is topologically rectilinear. The dimensionality of the cell is inferred from the dimensionality of the corner vertices. There is no test made here to insure that there are the correct number of vertices and data elements. This should be added.

Parameters:
vertices -
data -

ArrayCell

public ArrayCell(Point[] vertices,
                 Datum[] data,
                 int dimensionality)
Deprecated. The dimensionality argument is superfluous.

Construct an ArrayCell.

Method Detail

intersects

public boolean intersects(Cell c)
determine if the argument Cell intersects with this Cell.

Specified by:
intersects in class Cell

getDimensions

public float[] getDimensions()
return an array that represents the sizes of each dimension of the cell.


toString

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

Overrides:
toString in class Cell

toString

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

Overrides:
toString in class Cell