stella.util
Class SolarHeightCalculator
java.lang.Object
util.CommandLineParser
stella.util.SolarHeightCalculator
public class SolarHeightCalculator
- extends CommandLineParser
Testing mainly, but you can also use it as an command-line solar height
calculator
|
Field Summary |
private static String |
SWITCHES
The switches for adding properties. |
private static Map |
USE
The usage map. |
|
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 |
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.
SolarHeightCalculator
public SolarHeightCalculator()
- Constructs the parser to the sol height tester. All known switches
are registered.
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