public class SolarHeightCalculator extends CommandLineParser
CommandLineParser.Template, CommandLineParser.Test| Modifier and Type | Field and Description |
|---|---|
private static String |
SWITCHES
The switches for adding properties.
|
private static Map |
USE
The usage map.
|
HELPSWITCHES| Constructor and Description |
|---|
SolarHeightCalculator()
Constructs the parser to the sol height tester.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
addHelpSwitches, getArguments, getCallerName, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasHelpSwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usageprivate static final String SWITCHES
private static final Map USE
public SolarHeightCalculator()
public double process(String[] arg) throws ParseException
ParseExceptionpublic static void main(String[] arg) throws ParseException
ParseException