gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class ShellEvent
java.lang.Object
java.util.EventObject
gov.sandia.ccaffeine.dc.user_iface.MVC.event.ShellEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ShellEvent
- extends java.util.EventObject
An entity can use this event to request
an O.S. command be executed.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ShellEvent(java.lang.Object source,
int numberOfArguments,
java.lang.String command)
Create a ShellEvent. |
Method Summary |
java.lang.String |
getCommand()
Return the command that is to be executed. |
int |
getNumberOfArguments()
Retrieve the number of arguments in the "shell" command. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
numberOfArguments
protected int numberOfArguments
command
protected java.lang.String command
ShellEvent
public ShellEvent(java.lang.Object source,
int numberOfArguments,
java.lang.String command)
- Create a ShellEvent.
This ShellEvent can be used
to transport an O.S. command
to a listener.
- Parameters:
source
- The entity that created this event.numberOfArguments
- The number of arguments
in the "shell" command.command
- The command that is to be
executed.
getNumberOfArguments
public int getNumberOfArguments()
- Retrieve the number of arguments in the "shell" command.
- Returns:
- The number of arguments in the "shell" command.
getCommand
public java.lang.String getCommand()
- Return the command that is to be executed.
- Returns:
- The command that is to be executed.