gui
Class CommandLineInterpreter

java.lang.Object
  |
  +--gui.CommandLineInterpreter
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class CommandLineInterpreter
extends java.lang.Object
implements java.awt.event.ActionListener


Constructor Summary
CommandLineInterpreter(java.lang.Object o)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void commandLine()
          commandLine - this should be improved using a queue of commands that are executed in a thread.
 void processCommand(java.lang.String line)
           
 void setInputStream(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineInterpreter

public CommandLineInterpreter(java.lang.Object o)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

commandLine

public void commandLine()
commandLine - this should be improved using a queue of commands that are executed in a thread. Thus the commandLine reader could just enqueue the commands for execution at a later time (when free cycles are available). As it is, a prompt does not appear until the command is finished. Worse, input is not accepted from the user, so no type-ahead is possible. Type-ahead should be possible, but I am not sure how to implement it. Suggestions? - DL

processCommand

public void processCommand(java.lang.String line)

setInputStream

public void setInputStream(java.io.InputStream is)