shell.app
Class kill

java.lang.Object
  |
  +--shell.Command
        |
        +--shell.ShellCommand
              |
              +--shell.app.kill
All Implemented Interfaces:
Executable, java.lang.Runnable, ShellExecutable

public class kill
extends ShellCommand
implements ShellExecutable


Field Summary
 
Fields inherited from class shell.Command
in, out
 
Constructor Summary
kill()
           
 
Method Summary
 void doRun()
           
 boolean getActive()
          Provides external access to the active boolean.
 void setActive(boolean active)
          Provides external access to the active boolean.
 void setArgs(java.util.Vector args)
           
 void setArgs(java.util.Vector args, java.io.PrintStream o)
           
 void stopThread(int id)
           
 void stopThread(java.lang.String id)
           
 
Methods inherited from class shell.Command
addActiveSwitch, addSwitch, addThreadListener, containsSwitch, equals, equals, getId, getLock, getName, getOutStream, getReader, getSwitch, isPipeable, lock, processSwitches, removeThreadListener, run, setArgs, setArgs, setId, setIncomming, setInputStream, setLock, setOutputStream, setOutStream, stillIncomming, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface shell.Executable
addActiveSwitch, addSwitch, addThreadListener, containsSwitch, equals, equals, getId, getName, getOutStream, getReader, getSwitch, isPipeable, lock, processSwitches, removeThreadListener, run, setId, setIncomming, setInputStream, setLock, setOutputStream, setOutStream, stillIncomming, unlock
 

Constructor Detail

kill

public kill()
Method Detail

setActive

public void setActive(boolean active)
Description copied from interface: Executable
Provides external access to the active boolean. This should be called when an app is first run, then set to false when finished. The application's process controller can use the getter and setter for the active variable to terminate a thread prematurely, or just to keep track of what is active and what is not.

Specified by:
setActive in interface Executable
Overrides:
setActive in class Command
Parameters:
active - - To set the state of the RuntimeCommand.
See Also:

getActive

public boolean getActive()
Description copied from interface: Executable
Provides external access to the active boolean. This should be called when an app is first run, then set to false when finished. The application's process controller can use the getter and setter for the active variable to terminate a thread prematurely, or just to keep track of what is active and what is not.

Specified by:
getActive in interface Executable
Overrides:
getActive in class Command
Returns:
The current state of the RuntimeCommand.
See Also:

setArgs

public void setArgs(java.util.Vector args)
Specified by:
setArgs in interface Executable

setArgs

public void setArgs(java.util.Vector args,
                    java.io.PrintStream o)
Specified by:
setArgs in interface Executable

doRun

public void doRun()
Specified by:
doRun in class Command

stopThread

public void stopThread(int id)

stopThread

public void stopThread(java.lang.String id)