Class ProsperoConsole

java.lang.Object
  extended by ProsperoConsole

public class ProsperoConsole
extends java.lang.Object

ProsperoConsole is a text-based user interface for the application. All input/output with the user occurs here. No actual data manipulation happens here.


Constructor Summary
ProsperoConsole(java.io.Reader rdr, java.io.Writer wtr)
          Constructs the console view of the application.
 
Method Summary
 void run()
          Run the console user interface, obtaining commands from the specified Reader, and displaying results on the specified Writer until a "q" for quit is encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProsperoConsole

public ProsperoConsole(java.io.Reader rdr,
                       java.io.Writer wtr)
                throws java.io.IOException
Constructs the console view of the application.

Parameters:
rdr - a Reader from which to read the user's input, usually System.in
wtr - a Writer to which to display the output, usually System.out
Throws:
java.io.IOException
Method Detail

run

public void run()
Run the console user interface, obtaining commands from the specified Reader, and displaying results on the specified Writer until a "q" for quit is encountered. Refer to the assignment for details.