|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TreeNode
This interface defines a tree node for trace-out. The nodes of the tree can either be network nodes or virtual nodes on network links.
| Method Summary | |
|---|---|
void |
addChildNode(TreeLink tLink, TreeNode tNode)Adds a child tree node to current tree node |
TreeNode[] |
getChildNodeArray()Returns the child tree node in an array |
double |
getCost()Returns the cost from root node |
int |
getDepth()Returns the depth of the node form root. |
double |
getDuration()Returns the sum of duration from root to this tree node |
JGeometry |
getGeometry()Returns the geometry of the tree node |
Link |
getLink()Returns the link and percentage on the link if the tree node is a node on the link isNodeOnLink() == true |
Node |
getNode()If the node is a regular node (not a node on a link) |
TreeNode |
getParentNode()Returns the parent tree node |
double |
getPercentage()Returns the link and percentage on the link if the tree node is a node on the link isNodeOnLink() == true |
TreeLink |
getTreeLink()Returns the tree link that leads to this tree node |
boolean |
isLeafNode()Returns the tree link array that leads to the child nodes i-th tree link leads to i-th child tree node public TreeLink getTreeLink() ; /** Is the node a leaf node? |
boolean |
isNodeOnLink()Check whether this node is on a link. |
boolean |
isRegularNode()Returns the regular node if the tree node is a regular node isNodeOnLink() == false |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
TreeNode getParentNode()
TreeNode[] getChildNodeArray()
boolean isLeafNode()
boolean isNodeOnLink()
boolean isRegularNode()
Node getNode()
Link getLink()
double getPercentage()
void addChildNode(TreeLink tLink,
TreeNode tNode)
int getDepth()
double getCost()
TreeLink getTreeLink()
JGeometry getGeometry()
double getDuration()
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||