edu.unh.sdb.datasource
Class ARRSNode

java.lang.Object
  extended by edu.unh.sdb.datasource.ARRSNode
Direct Known Subclasses:
ARRSInternalNode, ARRSLeafNode

public abstract class ARRSNode
extends java.lang.Object


Field Summary
protected  ISBounds baseBounds
           
protected  CellIndexable cellSource
           
protected  int nodeId
           
protected  int[] path
           
protected  int siblingId
           
 
Constructor Summary
ARRSNode()
          Constructor without argument
ARRSNode(ARRSNode src)
          Copy constructor
ARRSNode(ISBounds bounds)
          Constructor takes a single ISBounds
ARRSNode(ISBounds bounds, CellIndexable cellSource)
          Constructor takes a ISbounds and a ARR cell source
 
Method Summary
abstract  ARRSNode copy()
          Abstract clone method
 ISBounds getBaseBounds()
          get the bounds of this node
 CellIndexable getCellIndexable()
          Get the ARR cell source
 int getID()
          get the id of the current node
 int[] getPath()
          get the path of the current node
 ARRSNode getSibling(java.util.ArrayList tree)
          get the sibling of the current node
 int getSiblingID()
          get the the id of the sibling
 void setBaseBounds(ISBounds bounds)
          Set the base bound value
 void setCellIndexable(CellIndexable cellSource)
          Set an ARR cell source
 void setID(int nodeId)
          Set the node ID value for an ARRS node
 void setNodePath(int[] path)
          Set the path value for an ARRS node
 void setSibling(int sib)
          Set the sibling value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeId

protected int nodeId

siblingId

protected int siblingId

baseBounds

protected ISBounds baseBounds

path

protected int[] path

cellSource

protected CellIndexable cellSource
Constructor Detail

ARRSNode

public ARRSNode()
Constructor without argument


ARRSNode

public ARRSNode(ISBounds bounds)
Constructor takes a single ISBounds


ARRSNode

public ARRSNode(ISBounds bounds,
                CellIndexable cellSource)
Constructor takes a ISbounds and a ARR cell source


ARRSNode

public ARRSNode(ARRSNode src)
Copy constructor

Method Detail

copy

public abstract ARRSNode copy()
Abstract clone method


setID

public void setID(int nodeId)
Set the node ID value for an ARRS node


setNodePath

public void setNodePath(int[] path)
Set the path value for an ARRS node


setBaseBounds

public void setBaseBounds(ISBounds bounds)
Set the base bound value


setSibling

public void setSibling(int sib)
Set the sibling value


getSibling

public ARRSNode getSibling(java.util.ArrayList tree)
get the sibling of the current node


getID

public int getID()
get the id of the current node


getSiblingID

public int getSiblingID()
get the the id of the sibling


getBaseBounds

public ISBounds getBaseBounds()
get the bounds of this node


getPath

public int[] getPath()
get the path of the current node


setCellIndexable

public void setCellIndexable(CellIndexable cellSource)
Set an ARR cell source


getCellIndexable

public CellIndexable getCellIndexable()
Get the ARR cell source