All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.GUI.CommThread

java.lang.Object
   |
   +----duckMachine.GUI.CommThread

public class CommThread
extends Object
implements Runnable
Creates a new thread to execute machine commands. Since machine commands can block waiting for input or can diverge, this allows the GUI to still accept user input while the machine command is running. For example, the GUI can stop a diverging command, or can accept input values in the standard input window to unblock a command waiting for input.


Constructor Index

 o CommThread(ShellCommand, MachineFrame)

Method Index

 o run()
The actions performed in the new thread are to execute the machine command, refresh the panel to reflect the new machine status, and notify the control panel that we are done.
 o toString()

Constructors

 o CommThread
 public CommThread(ShellCommand c,
                   MachineFrame pf)

Methods

 o run
 public void run()
The actions performed in the new thread are to execute the machine command, refresh the panel to reflect the new machine status, and notify the control panel that we are done.

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index