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
-
CommandLineInterpreter(Object)
-
-
actionPerformed(ActionEvent)
-
-
commandLine()
- commandLine - this should be
improved using a queue of commands that
are executed in a thread.
-
processCommand(String)
-
-
setInputStream(InputStream)
-
CommandLineInterpreter
public CommandLineInterpreter(java.lang.Object o)
setInputStream
public void setInputStream(java.io.InputStream is)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
processCommand
public void processCommand(java.lang.String line)
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