stella.util
Class TelescopeAxis.Randomize

java.lang.Object
  extended by util.CommandLineParser
      extended by stella.util.TelescopeAxis.Randomize
Enclosing class:
TelescopeAxis

public static final class TelescopeAxis.Randomize
extends CommandLineParser

Tests the axis movement by a randomized offset. The following command line switches are understood:

If a properties file is given it is used, otherwise the default properties are applied.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String FOOT
          A footer message.
private static String SWITCHES
          The single-argument switches.
private static Map USE
          Detailed use of switches.
 
Constructor Summary
TelescopeAxis.Randomize()
          Constructs the parser to the axis tester.
 
Method Summary
static void main(String[] arg)
          Parses command line switches and prints time vs.
 void process(String[] arg)
          Reads the command line and parses all required parameters.
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWITCHES

private static final String SWITCHES
The single-argument switches.

See Also:
Constant Field Values

USE

private static final Map USE
Detailed use of switches.


FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values
Constructor Detail

TelescopeAxis.Randomize

public TelescopeAxis.Randomize()
Constructs the parser to the axis tester. All known switches are registered.

Method Detail

process

public void process(String[] arg)
             throws ParseException
Reads the command line and parses all required parameters. If sufficient parameters are given, the simulation is started.

Throws:
ParseException

main

public static void main(String[] arg)
                 throws ParseException
Parses command line switches and prints time vs. axis position to a file, if specified, or to sysout. If issued without command line switches, display usage message, but nevertheless continue as no command line argument is mandatory.

Throws:
ParseException