|
mhuss utils 1.1.5ws | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mhuss.AstroLib.DarkCal
public class DarkCal
A command-line program to determine the darkest hours for a given location & month. This is meant to be an aid for planning your observing.
Constructor Summary | |
---|---|
DarkCal(boolean html)
Constructor (HTML switch only) |
|
DarkCal(java.io.PrintWriter pw,
boolean html)
Constructor (PrintWriter and HTML switch) |
|
DarkCal(java.io.PrintWriter pw,
boolean html,
boolean printable)
Constructor (PrintWriter, HTML switch, and printable switch) |
Method Summary | |
---|---|
void |
calcAndPrint(DarkCalInput dci)
Calculate the DarkCalData values and print them out. |
static void |
main(java.lang.String[] args)
The main program entry point. |
void |
print(DarkCalInput dci)
Read the DarkCalData values and print them out. |
void |
printData(DarkCalData dcd)
Print out the data |
void |
setOptLink(java.lang.String s)
Set the optional return link URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DarkCal(boolean html)
html
- true to produce HTML formatted output, plain text otherwisepublic DarkCal(java.io.PrintWriter pw, boolean html)
pw
- java.io.PrintWriter instance to use for outputhtml
- true to produce HTML formatted output, plain text otherwisepublic DarkCal(java.io.PrintWriter pw, boolean html, boolean printable)
pw
- java.io.PrintWriter instance to use for outputhtml
- true to produce HTML formatted output, plain text otherwiseprintable
- true to produce HTML in a more printer-friendly formatMethod Detail |
---|
public void setOptLink(java.lang.String s)
s
- The URL of the return link to insert into the HTMLpublic void printData(DarkCalData dcd)
dcd
- The DarkCalData instance to usepublic void calcAndPrint(DarkCalInput dci)
dci
- Month, year, and location to usepublic void print(DarkCalInput dci)
dci
- Month, year, and location to usepublic static void main(java.lang.String[] args)
usage: DarkCal <month> <year> [-d] [-h] [-t] [-u]
-d = ignore daylight savings time
-h = HTML table output
-t = tab-delimited output
-u = output time in UTC
Notes:
|
mhuss utils 1.1.5ws | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |