|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Packages that use TreeNode | |
|---|---|
| airspace | Provides classes for handling the planes. |
| calculation | Provides classes for handling the graph and the calculation of the arrival tree. |
| graphics | Provides classes for showing the graphics. |
| Uses of TreeNode in airspace |
|---|
| Fields in airspace declared as TreeNode | |
|---|---|
private TreeNode |
Plane.currentNode
Current TreeNode of Plane. |
private TreeNode |
Plane.root
Root of Tree. |
| Fields in airspace with type parameters of type TreeNode | |
|---|---|
private java.util.ArrayList<TreeNode> |
Plane.path
Path of plane from current TreeNode to the airport. |
| Methods in airspace that return TreeNode | |
|---|---|
private TreeNode |
AirControl.closestMergePoint(Plane plane,
int arc)
Find the closest merge point to Plane. |
private TreeNode |
AirControl.closestTNToPlane(Plane plane)
Find closest TreeNode to Plane. |
TreeNode |
Plane.getCurrentNode()
Returns current TreeNode of Plane. |
TreeNode |
AirControl.testingclosestMergePoint(Plane plane,
int arc)
Created for testing closestMergePoint. |
TreeNode |
AirControl.testingClosestTNToPlane(Plane plane)
Created for testing closestTNToPlane. |
| Methods in airspace that return types with arguments of type TreeNode | |
|---|---|
java.util.ArrayList<TreeNode> |
Plane.getPath()
Returns the path of this Plane. |
| Methods in airspace with parameters of type TreeNode | |
|---|---|
void |
Plane.addToPath(java.util.ArrayList<TreeNode> pathToAdd,
TreeNode joinPoint)
Clears old path, sests new path that star from airport to joinPoint and adds pathToAdd. |
boolean |
Plane.isOnArrivalTree(TreeNode node,
int hashCode)
Checks if TreeNode is on current Tree. |
void |
Plane.setCurrentTreeNode(TreeNode node)
Sets new TreeNode for Plane. |
void |
Plane.setPath(TreeNode currentNode)
Sets new path starting from currentNode. |
| Method parameters in airspace with type arguments of type TreeNode | |
|---|---|
void |
Plane.addToPath(java.util.ArrayList<TreeNode> pathToAdd,
TreeNode joinPoint)
Clears old path, sests new path that star from airport to joinPoint and adds pathToAdd. |
private java.util.ArrayList[] |
AirControl.sort(java.util.ArrayList<TreeNode> al)
Sorts merge point ArrayList to ArrayList[] based on distance from airport. |
java.util.ArrayList[] |
AirControl.testingSorted(java.util.ArrayList<TreeNode> al)
Created for testing sort. |
| Constructors in airspace with parameters of type TreeNode | |
|---|---|
Plane(TreeNode startNode,
java.util.ArrayList[] arcPoints,
Parameters parameters,
TreeNode root)
Constructor of Plane class. |
|
| Uses of TreeNode in calculation |
|---|
| Fields in calculation declared as TreeNode | |
|---|---|
private TreeNode |
TreeNode.left
Left child of a tree node. |
private TreeNode |
TreeNode.parent
Parent node of a tree node. |
private TreeNode |
TreeNode.right
Right child of a tree node. |
private TreeNode |
Tree.root
The root of a tree. |
| Fields in calculation with type parameters of type TreeNode | |
|---|---|
private java.util.ArrayList<TreeNode> |
Tree.treeMergePoints
Merge points of the tree. |
private java.util.ArrayList<TreeNode> |
Tree.treeNodes
Collection of nodes. |
| Methods in calculation that return TreeNode | |
|---|---|
TreeNode |
TreeNode.getLeft()
Returns this.left. |
TreeNode |
TreeNode.getParent()
Returns this.parent. |
TreeNode |
TreeNode.getRight()
Returns this.right. |
TreeNode |
Tree.getRoot()
Returns this.root. |
| Methods in calculation that return types with arguments of type TreeNode | |
|---|---|
java.util.ArrayList<TreeNode> |
Tree.getLeaves()
Returns the leaves of a tree (=every node without children). |
java.util.ArrayList<TreeNode> |
Tree.getTree()
Returns this.treeNodes. |
java.util.ArrayList<TreeNode> |
Tree.getTreeMergePoints()
Returns merge points of the tree. |
java.util.ArrayList<TreeNode> |
Tree.treeNodePath(java.util.ArrayList<Vertex> path)
Makes a path containing tree nodes from path containing vertexes by creating new treenodes corresponding to vertexes and adding them, in same order as in parameter path, to a new ArrayList. |
| Methods in calculation with parameters of type TreeNode | |
|---|---|
boolean |
TreeNode.setChild(TreeNode child)
Sets child (left or right, first left) for node. |
void |
TreeNode.setParent(TreeNode parent)
Sets this.parent. |
| Uses of TreeNode in graphics |
|---|
| Methods in graphics with parameters of type TreeNode | |
|---|---|
private void |
GraphicsEngine.graphicsRenderArrivalTree(java.awt.Graphics2D g2,
TreeNode node)
Method uses pre-order traversal to draw arrival tree into offScreen -image. |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||