Class Test68

java.lang.Object
  extended by java.lang.Thread
      extended by TestSkeleton
          extended by UISkeleton
              extended by Test68
All Implemented Interfaces:
java.lang.Runnable, RemoteSourceListener, CmdlineConsumer

public class Test68
extends UISkeleton


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Test68()
           
Test68(java.lang.String[] args)
           
 
Method Summary
 int checkKeyword(java.lang.String testName, int argc, java.lang.String[] args)
          Handle subclass-specific command line options and their arguments.
 int checkOption(java.lang.String progName, char ch, java.lang.String arg)
          Handle subclass-specific command line options and their arguments.

If -abc -d efg -h -1 -i is specified, this method will be called a maximum of 5 times: checkOption(mainName, 'a', "bc"); checkOption(mainName, 'd', "efg"); checkOption(mainName, 'h', "-1"); checkOption(mainName, '1', "-i"); checkOption(mainName, 'i', null);
Note that either of the last two method calls may not happen if the preceeding method call claims to have used the following argument (by returning 2.

For example, if the third call (where ch is set to 'h') returns 0 or 1, the next call will contain '1' and "-i".
 void initializeArgs()
          Method used to initialize any instance variables which may be changed by a cmdline option.

This is needed when arguments are processed inside the constructor.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class TestSkeleton
collabSourceLost, dataSourceLost, finalizeArgs, keywordUsage, optionUsage, startThreads
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Test68

public Test68()

Test68

public Test68(java.lang.String[] args)
       throws java.rmi.RemoteException,
              VisADException
Throws:
java.rmi.RemoteException
VisADException
Method Detail

initializeArgs

public void initializeArgs()
Description copied from interface: CmdlineConsumer
Method used to initialize any instance variables which may be changed by a cmdline option.

This is needed when arguments are processed inside the constructor. If the first line in the constructor in a class which extends this class is super(args), CmdlineParser will be run before any instance variables for the extending class are initialized.

To ensure all instance variables are properly initialized, place the initialization code in the initializeArgs() method.

Specified by:
initializeArgs in interface CmdlineConsumer
Overrides:
initializeArgs in class TestSkeleton

checkOption

public int checkOption(java.lang.String progName,
                       char ch,
                       java.lang.String arg)
Description copied from interface: CmdlineConsumer
Handle subclass-specific command line options and their arguments.

If -abc -d efg -h -1 -i is specified, this method will be called a maximum of 5 times:
Note that either of the last two method calls may not happen if the preceeding method call claims to have used the following argument (by returning 2.

For example, if the third call (where ch is set to 'h') returns 0 or 1, the next call will contain '1' and "-i". If, however, the third call returns 2, the next call will contain 'i' and null.

Specified by:
checkOption in interface CmdlineConsumer
Overrides:
checkOption in class TestSkeleton
Parameters:
progName - The name of the main class (useful for error messages.)
ch - Option character. If -a is specified on the command line, 'a' would be passed to this method.)
arg - The argument associated with this option.
Returns:
less than 0 to indicate an error
0 to indicate that this option is not used by this class
1 to indicate that only the option was used
2 or greater to indicate that both the option and the argument were used

checkKeyword

public int checkKeyword(java.lang.String testName,
                        int argc,
                        java.lang.String[] args)
Description copied from interface: CmdlineConsumer
Handle subclass-specific command line options and their arguments.

Specified by:
checkKeyword in interface CmdlineConsumer
Overrides:
checkKeyword in class TestSkeleton
Parameters:
testName - The name of the main class (useful for error messages.)
argc - The index of the current keyword.
args - The full list of arguments.
Returns:
less than 0 to indicate an error
0 to indicate that this argument is not used by this class
1 or more to indicate the number of arguments used

toString

public java.lang.String toString()
Overrides:
toString in class TestSkeleton

main

public static void main(java.lang.String[] args)
                 throws java.rmi.RemoteException,
                        VisADException
Throws:
java.rmi.RemoteException
VisADException