All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gui.CommandLineInterpreter

java.lang.Object
   |
   +----gui.CommandLineInterpreter

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

Constructor Index

 o CommandLineInterpreter(Object)

Method Index

 o actionPerformed(ActionEvent)
 o commandLine()
commandLine - this should be improved using a queue of commands that are executed in a thread.
 o processCommand(String)
 o setInputStream(InputStream)

Constructors

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

Methods

 o setInputStream
 public void setInputStream(java.io.InputStream is)
 o actionPerformed
 public void actionPerformed(java.awt.event.ActionEvent e)
 o processCommand
 public void processCommand(java.lang.String line)
 o 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


All Packages  Class Hierarchy  This Package  Previous  Next  Index