public interface Tree
extends java.lang.Cloneable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
TreeNode[] |
bestFirstSearch()
Best First Search based on cost
|
TreeNode[] |
breadthFirstSearch()
Breadth First Search
|
void |
clear()
Clears the tree structure
|
boolean |
containsPartialLinks()
Does the tree contain particial links?
|
TreeNode[] |
depthFirstSearch()
Depth First Search
|
TreeNode |
get(Node node)
Returns the tree node that contains the given network node
|
TreeNode[] |
getLeafNodeArray()
Returns leaf nodes in an array
|
TreeNode |
getRootNode()
Returns the root node
|
SubPath |
getSubPath(TreeNode treeNode)
Returns the subpath between the given tree node and the root node
|
boolean |
isForward()
Returns the traverse direction
|
boolean |
isLogical()
Checks if the tree is logical
|
int |
size()
Returns number of tree nodes
|
TreeNode getRootNode()
boolean containsPartialLinks()
void clear()
TreeNode[] depthFirstSearch()
TreeNode[] breadthFirstSearch()
TreeNode[] bestFirstSearch()
TreeNode[] getLeafNodeArray()
boolean isLogical()
TreeNode get(Node node)
node
- given network nodeint size()
boolean isForward()
SubPath getSubPath(TreeNode treeNode) throws NetworkDataException
treeNode
- the given tree node in the treeNetworkDataException