public class Controller
extends java.lang.Object
Constructor and Description |
---|
Controller()
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
GetUserInput()
Acquire user input.
|
protected java.lang.String |
GetUserInput(java.lang.String promptString)
Prompt for and acquire user input.
|
protected void |
ParseLine(java.lang.String inputLine)
Parses individual input lines by tab character.
|
protected void |
PrintMaxHeap()
Prints all traversals of Max Heap.
|
protected void |
PrintMinHeap()
Prints all traversals of Min Heap.
|
protected void |
PrintNodeInfoMaxHeap(ImplicitTreeNode node)
Prints info of provided node.
|
protected void |
PrintNodeInfoMinHeap(ExplicitTreeNode node)
Prints info of provided node.
|
protected void |
PrintNodeInfoSearchTree(ExplicitTreeNode node)
Prints info of provided node.
|
protected void |
PrintSearchTree()
Prints all traversals of Binary Search Tree.
|
protected void |
PrintTimeInfo() |
protected void |
PrintTreeData(java.lang.String firstName,
java.lang.String lastName) |
public Controller() throws java.io.IOException
java.io.IOException
- Read error for file reader stream.protected void ParseLine(java.lang.String inputLine)
inputLine
- Line to parse. Should be first and last name, separated by tabs.protected void PrintTreeData(java.lang.String firstName, java.lang.String lastName)
protected void PrintMinHeap()
protected void PrintMaxHeap()
protected void PrintSearchTree()
protected void PrintNodeInfoMinHeap(ExplicitTreeNode node)
node
- Node from min heap.protected void PrintNodeInfoMaxHeap(ImplicitTreeNode node)
node
- Node from max heap.protected void PrintNodeInfoSearchTree(ExplicitTreeNode node)
node
- Node from search tree.protected void PrintTimeInfo()
protected java.lang.String GetUserInput()
protected java.lang.String GetUserInput(java.lang.String promptString)
promptString
- String to show user.