stella.util
Class SensorTest.Parser

java.lang.Object
  extended by util.CommandLineParser
      extended by stella.util.SensorTest.Parser
Enclosing class:
SensorTest

private static final class SensorTest.Parser
extends CommandLineParser

A command line parser class to allow direct parameter hand-over. Run the main command without arguments to see the options.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
(package private) static String BIAS
          The no-bias switch.
(package private) static String FOOT
          A footer message.
(package private) static SensorTest.Parser parse
          The parser instance.
(package private) static String SWITCHES
          The switches for adding properties.
(package private) static Map<String,String> USE
          Detailed use of switches.
 
Constructor Summary
protected SensorTest.Parser()
          Constructs the parser to the sensor tester.
 
Method Summary
(package private)  Map process(String[] arg)
          Reads the command line into a properties object.
 
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

parse

static SensorTest.Parser parse
The parser instance.


SWITCHES

static final String SWITCHES
The switches for adding properties.

See Also:
Constant Field Values

BIAS

static final String BIAS
The no-bias switch.

See Also:
Constant Field Values

USE

static final Map<String,String> USE
Detailed use of switches.


FOOT

static final String FOOT
A footer message.

See Also:
Constant Field Values
Constructor Detail

SensorTest.Parser

protected SensorTest.Parser()
Constructs the parser to the sensor tester. All known switches are registered.

Method Detail

process

Map process(String[] arg)
      throws ParseException
Reads the command line into a properties object. If no command is given, construction starts with an empty properties object, otherwise the command is read in as a properties file. After this initialization, the switches present are used to augment the properties. Switches overrule file presets.

Throws:
ParseException