org.griphyn.vdl.invocation
Class Arguments

java.lang.Object
  extended by org.griphyn.vdl.Chimera
      extended by org.griphyn.vdl.invocation.Invocation
          extended by org.griphyn.vdl.invocation.Arguments
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArgString, ArgVector

public abstract class Arguments
extends Invocation

This class maintains the application that was run, and the arguments to the commandline that were actually passed on to the application.

Version:
$Revision: 50 $
Author:
Jens-S. V??ckler, Yong Zhao
See Also:
Job, Serialized Form

Field Summary
protected  String m_executable
          This is the executable that was run.
 
Constructor Summary
Arguments()
          Default c'tor: Construct a hollow shell and allow further information to be added later.
Arguments(String executable)
          Constructs an applications without arguments.
 
Method Summary
 String getExecutable()
          Accessor
abstract  String getValue()
          This abstract method is called by higher-level functions to obtain a single string representation of the arguments.
 void setExecutable(String executable)
          Accessor.
 void toString(Writer stream)
          Converts the active state into something meant for human consumption.
 
Methods inherited from class org.griphyn.vdl.Chimera
escape, quote, toString, toXML, toXML, toXML, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_executable

protected String m_executable
This is the executable that was run.

Constructor Detail

Arguments

public Arguments()
Default c'tor: Construct a hollow shell and allow further information to be added later.


Arguments

public Arguments(String executable)
Constructs an applications without arguments.

Parameters:
executable - is the name of the application.
Method Detail

getValue

public abstract String getValue()
This abstract method is called by higher-level functions to obtain a single string representation of the arguments.

Returns:
string representing arguments, or null if there is no such string. The empty string is also possible.

getExecutable

public String getExecutable()
Accessor

See Also:
setExecutable(String)

setExecutable

public void setExecutable(String executable)
Accessor.

Parameters:
executable -
See Also:
getExecutable()

toString

public void toString(Writer stream)
              throws IOException
Converts the active state into something meant for human consumption. The method will be called when recursively traversing the instance tree.

Specified by:
toString in class Chimera
Parameters:
stream - is a stream opened and ready for writing. This can also be a string stream for efficient output.
Throws:
IOException - if something fishy happens to the stream.


Copyright © 2007 The University of Southern California. All Rights Reserved.