Class JourneySat.Tree
Object
|
+--JourneySat.Tree
- class
JourneySat.Tree
JourneySat.Tree manages a tree data structure of JourneySat.Node objects.
Defined in travel.js
See:
|
Method Summary |
<static> void
|
appendNode(<JourneySat.Node> newNode, <JournaySat.Node> node)
Adds newDayNode after dayNode.
|
<static> void
|
insertNode(<JourneySat.Node> newNode, <JournaySat.Node> node)
Inserts newDayNode before dayNode.
|
<static> void
|
swapNodes(node1, node2)
|
<static> void
|
unlinkNode(<JourneytSat.Node> node)
Removes a node from a tree.
|
JourneySat.Tree
JourneySat.Tree()
appendNode
<static> void appendNode(<JourneySat.Node> newNode, <JournaySat.Node> node)
Adds newDayNode after dayNode.
Parameters:
newNode - The node to insert
node - The node to add before of
insertNode
<static> void insertNode(<JourneySat.Node> newNode, <JournaySat.Node> node)
Inserts newDayNode before dayNode.
Parameters:
newNode - The node to insert
node - The node to add before of
swapNodes
<static> void swapNodes(node1, node2)
unlinkNode
<static> void unlinkNode(<JourneytSat.Node> node)
Removes a node from a tree. References to parent and siblings are
cleared. References to child nodes are preserved so this is potentially
a memory leak. If the node is unlinked and never used the client must
traverse the subtree and set to null all the references inside it.
Documentation generated by
JSDoc on Thu Oct 20 14:28:29 2005