org.globus.cog.gridshell.commands
Class AbstractProgram

java.lang.Object
  extended byorg.globus.cog.gridshell.commands.AbstractCommand
      extended byorg.globus.cog.gridshell.commands.AbstractProgram
All Implemented Interfaces:
Command, Comparable, EventListener, Program, PropertyChangeListener, PropertyChangeNotifier, Runnable

public abstract class AbstractProgram
extends AbstractCommand
implements Program


Field Summary
 
Fields inherited from class org.globus.cog.gridshell.commands.AbstractCommand
PROPERTY_STATUS_CODE
 
Constructor Summary
AbstractProgram()
           
 
Method Summary
 void addCommand(Command command)
          Adds a command to the commands submitted to this program
 Collection getCommands()
          Returns a collection of the commands submitted
 void removeCommand(Command command)
          Removes a command from the commands submitted to this program
 
Methods inherited from class org.globus.cog.gridshell.commands.AbstractCommand
addPropertyChangeListener, addPropertyChangeListener, arrayToMap, compareTo, getIdentity, getParent, getResult, getScope, getStatus, init, removePropertyChangeListener, setResult, setStatusCode, setStatusCompleted, setStatusFailed, setStatusFailed, unsupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.cog.gridshell.interfaces.Program
createAndExecuteCommand, createCommand, executeCommand
 
Methods inherited from interface org.globus.cog.gridshell.interfaces.Command
destroy, execute, getIdentity, getParent, getResult, getScope, getStatus, init, kill, resume, setStatusCode, suspend
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface org.globus.cog.gridshell.interfaces.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

AbstractProgram

public AbstractProgram()
Method Detail

getCommands

public Collection getCommands()
Description copied from interface: Program
Returns a collection of the commands submitted

Specified by:
getCommands in interface Program
Returns:

addCommand

public void addCommand(Command command)
Description copied from interface: Program
Adds a command to the commands submitted to this program

Specified by:
addCommand in interface Program
Parameters:
command -

removeCommand

public void removeCommand(Command command)
Description copied from interface: Program
Removes a command from the commands submitted to this program

Specified by:
removeCommand in interface Program
Parameters:
command -