edu.unh.sdb.ARRSTreeBuilder
Class ARRSBuilder
java.lang.Object
edu.unh.sdb.ARRSTreeBuilder.ARRSBuilder
- Direct Known Subclasses:
- ARRSCopyModelBuilder
public abstract class ARRSBuilder
- extends java.lang.Object
Method Summary |
boolean |
addKdNode(int parent,
int[] bounds)
|
abstract boolean |
addLeaf(int parent,
int[] bounds,
int[] size)
Abstract method to create a leaf node with data. |
boolean |
addNtreeNode(int parent,
int[] bounds)
|
ARRSTree |
getARRSTree()
Get the ARRS tree |
boolean |
isDim(int i)
|
protected ISBounds |
makeBaseBounds(int[] bounds)
Return an ISBounds representing the base bounds for this AR Tree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dim
protected int dim
nodeNum
protected int nodeNum
arrSource
protected CellIndexable arrSource
inFile
protected java.io.InputStreamReader inFile
tree
protected ARRSTree tree
parser
protected ARCellParser parser
ARRSBuilder
public ARRSBuilder(java.lang.String command,
CellIndexable arrSource)
isDim
public boolean isDim(int i)
addKdNode
public boolean addKdNode(int parent,
int[] bounds)
addNtreeNode
public boolean addNtreeNode(int parent,
int[] bounds)
addLeaf
public abstract boolean addLeaf(int parent,
int[] bounds,
int[] size)
- Abstract method to create a leaf node with data. Children classes must define
this method since this is what distinguishes the child implementations.
- Parameters:
parent
- parent node for this leafbounds
- 2*dim array; 1st dim are lower bounds of leaf block in base space
2nd dim are upper bounds of leaf block in base spacesize
- array of length dim defining size of leaf block in points (?)
makeBaseBounds
protected ISBounds makeBaseBounds(int[] bounds)
- Return an ISBounds representing the base bounds for this AR Tree
- Parameters:
bounds
- is a 2*dim array where 1st dim entries are lower bounds,
and last dim entries are upper bounds.
- Returns:
getARRSTree
public ARRSTree getARRSTree()
- Get the ARRS tree