stella.util
Class SolarHeightCalculator

java.lang.Object
  extended by util.CommandLineParser
      extended by stella.util.SolarHeightCalculator

public class SolarHeightCalculator
extends CommandLineParser

Testing mainly, but you can also use it as an command-line solar height calculator


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String SWITCHES
          The switches for adding properties.
private static Map USE
          The usage map.
 
Constructor Summary
SolarHeightCalculator()
          Constructs the parser to the sol height tester.
 
Method Summary
static void main(String[] arg)
          Parses a command line with date, jd, longitude and latitude and prints the solar height in degrees.
 double process(String[] arg)
          Reads the command line and parses date, longitude and latitude out of it
 
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 switches for adding properties.

See Also:
Constant Field Values

USE

private static final Map USE
The usage map.

Constructor Detail

SolarHeightCalculator

public SolarHeightCalculator()
Constructs the parser to the sol height tester. All known switches are registered.

Method Detail

process

public double process(String[] arg)
               throws ParseException
Reads the command line and parses date, longitude and latitude out of it

Throws:
ParseException

main

public static void main(String[] arg)
                 throws ParseException
Parses a command line with date, jd, longitude and latitude and prints the solar height in degrees.

Throws:
ParseException