org.globus.cog.gridshell.interfaces
Interface Program

All Superinterfaces:
Command, Comparable, PropertyChangeNotifier, Runnable
All Known Subinterfaces:
GridShell
All Known Implementing Classes:
AbstractProgram, Gsh

public interface Program
extends Command


Method Summary
 void addCommand(Command command)
          Adds a command to the commands submitted to this program
 void createAndExecuteCommand(Map args)
          Calls createCommand(Map args).execute()
 Command createCommand(Map args)
          Creates a command
 void executeCommand(Command command)
          To run a command (ie calls command.execute change states while it runs)
 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 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
 

Method Detail

getCommands

public Collection getCommands()
Returns a collection of the commands submitted

Returns:

addCommand

public void addCommand(Command command)
Adds a command to the commands submitted to this program

Parameters:
command -

removeCommand

public void removeCommand(Command command)
Removes a command from the commands submitted to this program

Parameters:
command -

createCommand

public Command createCommand(Map args)
                      throws Exception
Creates a command

Parameters:
args -
Throws:
Exception

executeCommand

public void executeCommand(Command command)
To run a command (ie calls command.execute change states while it runs)

Parameters:
command -

createAndExecuteCommand

public void createAndExecuteCommand(Map args)
Calls createCommand(Map args).execute()

Throws:
Exception