Modifier and Type | Field and Description |
---|---|
protected int |
firstChildId |
protected int |
lastChildId |
protected short |
numChildren |
baseBounds, cellSource, nodeId, path, siblingId
Constructor and Description |
---|
ARRSInternalNode()
Constructor without argument
|
ARRSInternalNode(ARRSInternalNode src)
Copy constructor
|
ARRSInternalNode(ISBounds bounds)
Constructor takes a single ISBounds
|
ARRSInternalNode(ISBounds bounds,
CellIndexable cellSource)
Constructor takes a ISBounds and a CellIndexable
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(java.util.ArrayList treeNodes,
ARRSNode node)
Add a node as a child of this node.
|
boolean |
addNode(java.util.ArrayList<ARRSNode> treeNodes,
ARRSNode node,
int parentId,
int id,
int max_child_num)
Add a node as a child of this node.
|
ARRSNode |
getChild(java.util.ArrayList tree,
int i)
Get the specified child
|
int |
getChildID(java.util.ArrayList tree,
int i)
Get the id of the specified child
|
ARRSNode[] |
getChildren(java.util.ArrayList<ARRSNode> tree)
Get all the children
|
int |
getFirstChildID()
Get the first child's id
|
int |
getLastChildID()
Get the last child's id
|
int |
getNumChildren()
get number of children
|
abstract int |
maxChildren()
return maximum allowed number of children, determined by child class
|
void |
setFirstChildID(int eldest)
Set first child's id
|
void |
setLastChildID(int youngest)
Set last child's id
|
copy, getBaseBounds, getCellIndexable, getID, getPath, getSibling, getSiblingID, setBaseBounds, setCellIndexable, setID, setNodePath, setSibling
protected int firstChildId
protected int lastChildId
protected short numChildren
public ARRSInternalNode()
public ARRSInternalNode(ISBounds bounds)
public ARRSInternalNode(ISBounds bounds, CellIndexable cellSource)
public ARRSInternalNode(ARRSInternalNode src)
public abstract int maxChildren()
public void setFirstChildID(int eldest)
public int getFirstChildID()
public void setLastChildID(int youngest)
public int getNumChildren()
public int getLastChildID()
public boolean addChild(java.util.ArrayList treeNodes, ARRSNode node)
public boolean addNode(java.util.ArrayList<ARRSNode> treeNodes, ARRSNode node, int parentId, int id, int max_child_num)
public ARRSNode getChild(java.util.ArrayList tree, int i)
public int getChildID(java.util.ArrayList tree, int i)