Module navigation
Generic navigation algorithms for GUI-based apps
Class TransitionTree
| TransitionTree:add (name, forward, backward) | Add a node to the tree |
| TransitionTree:path_to_root () | Get the path from the current node to the root node |
| TransitionTree:path_to (name) | Get the path from the current node to the named node |
| TransitionTree:lca (name1, name2) | Least common ancestor of two nodes |
| TransitionTree:navigate (start, _end) | Navigate the tree calling forward and backward functions |
Class TransitionTree
Tree object
- TransitionTree:add (name, forward, backward)
-
Add a node to the tree
Parameters:
- name
- forward
- backward
- TransitionTree:path_to_root ()
- Get the path from the current node to the root node
- TransitionTree:path_to (name)
-
Get the path from the current node to the named node
Parameters:
- name
- TransitionTree:lca (name1, name2)
-
Least common ancestor of two nodes
Parameters:
- name1
- name2
- TransitionTree:navigate (start, _end)
-
Navigate the tree calling forward and backward functions
Parameters:
- start
- _end