public interface TreeNode
extends java.lang.Cloneable, java.io.Serializable, java.lang.Comparable
Modifier and Type | Method and Description |
---|---|
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
|
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()