org.shetline.astronomy
Class AstroEvent
java.lang.Object
org.shetline.astronomy.AstroEvent
- All Implemented Interfaces:
- Comparable
public class AstroEvent
- extends Object
- implements Comparable
Constructor Summary |
AstroEvent(double time_JDU,
int type,
double value,
SkyObserver observer)
|
AstroEvent(int year,
int month,
int day,
double hours,
int type,
double value,
SkyObserver observer)
|
AstroEvent(int year,
int month,
int day,
int type,
double value,
SkyObserver observer)
|
AstroEvent(int year,
int month,
int day,
int hour,
int minute,
int type,
double value)
|
Method Summary |
int |
compareTo(Object obj)
|
String |
format(int whichFormat)
|
static String |
format(int whichFormat,
double time_JDU)
|
static String |
format(int whichFormat,
int[] time)
|
static String |
format(int whichFormat,
int hour,
int minute)
|
static String |
format(int whichFormat,
int hour,
int minute,
boolean showDST,
int dstOffset,
int occurrence)
|
static String |
format(int whichFormat,
int year,
int month,
int day)
|
static String |
format(int whichFormat,
int year,
int month,
int day,
int hour,
int minute)
|
static String |
format(int whichFormat,
int year,
int month,
int day,
int hour,
int minute,
int dstOffset,
int occurrence)
|
static String |
format(int whichFormat,
int year,
int month,
int day,
int hour,
int minute,
int dstOffset,
int utOffset,
int occurrence)
|
int |
getDay()
|
int |
getDSTOffset()
|
int |
getHour()
|
long |
getJulianDayInt()
|
int |
getMinute()
|
Object |
getMiscInfo()
|
int |
getMonth()
|
String |
getName()
|
int |
getOccurrence()
|
int |
getType()
|
double |
getUT()
|
int |
getUTOffset()
|
double |
getValue()
|
int |
getYear()
|
boolean |
isJulianCalendarDate()
|
void |
setMiscInfo(Object miscInfo)
|
void |
setName(String name)
|
void |
setType(int type)
|
void |
setValue(double value)
|
String |
toString()
|
YYYY_MM_DD
public static final int YYYY_MM_DD
- See Also:
- Constant Field Values
YYYY_MM_DD_HH_mm
public static final int YYYY_MM_DD_HH_mm
- See Also:
- Constant Field Values
YYYY_MM_DD_HH_mm_DST
public static final int YYYY_MM_DD_HH_mm_DST
- See Also:
- Constant Field Values
HH_mm
public static final int HH_mm
- See Also:
- Constant Field Values
HH_mm_DST
public static final int HH_mm_DST
- See Also:
- Constant Field Values
MMM_DD_HH_mm
public static final int MMM_DD_HH_mm
- See Also:
- Constant Field Values
MMM_DD_HH_mm_DST
public static final int MMM_DD_HH_mm_DST
- See Also:
- Constant Field Values
hh_mm_AP
public static final int hh_mm_AP
- See Also:
- Constant Field Values
YYYY_MM_DD_ddddd
public static final int YYYY_MM_DD_ddddd
- See Also:
- Constant Field Values
UT_OFFSET
public static final int UT_OFFSET
- See Also:
- Constant Field Values
COMPACT_OFFSET_FORMAT
public static final int COMPACT_OFFSET_FORMAT
- See Also:
- Constant Field Values
OFFSET_NOT_ALIGNED
public static final int OFFSET_NOT_ALIGNED
- See Also:
- Constant Field Values
STANDARD_COMPACT
public static final int STANDARD_COMPACT
- See Also:
- Constant Field Values
STANDARD_WIDE
public static final int STANDARD_WIDE
- See Also:
- Constant Field Values
FORMAT_MASK
protected static final int FORMAT_MASK
- See Also:
- Constant Field Values
year
protected int year
month
protected int month
day
protected int day
hour
protected int hour
minute
protected int minute
occurrence
protected int occurrence
isJulian
protected boolean isJulian
type
protected int type
value
protected double value
utOffset
protected int utOffset
dstOffset
protected int dstOffset
name
protected String name
miscInfo
protected Object miscInfo
AstroEvent
public AstroEvent(int year,
int month,
int day,
int hour,
int minute,
int type,
double value)
AstroEvent
public AstroEvent(int year,
int month,
int day,
int type,
double value,
SkyObserver observer)
AstroEvent
public AstroEvent(double time_JDU,
int type,
double value,
SkyObserver observer)
AstroEvent
public AstroEvent(int year,
int month,
int day,
double hours,
int type,
double value,
SkyObserver observer)
getUT
public double getUT()
getJulianDayInt
public long getJulianDayInt()
isJulianCalendarDate
public boolean isJulianCalendarDate()
getYear
public int getYear()
getMonth
public int getMonth()
getDay
public int getDay()
getHour
public int getHour()
getMinute
public int getMinute()
getUTOffset
public int getUTOffset()
getDSTOffset
public int getDSTOffset()
getOccurrence
public int getOccurrence()
getType
public int getType()
setType
public void setType(int type)
getValue
public double getValue()
setValue
public void setValue(double value)
getName
public String getName()
setName
public void setName(String name)
getMiscInfo
public Object getMiscInfo()
setMiscInfo
public void setMiscInfo(Object miscInfo)
toString
public String toString()
- Overrides:
toString
in class Object
format
public String format(int whichFormat)
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
format
public static String format(int whichFormat,
int year,
int month,
int day)
format
public static String format(int whichFormat,
int hour,
int minute)
format
public static String format(int whichFormat,
int hour,
int minute,
boolean showDST,
int dstOffset,
int occurrence)
format
public static String format(int whichFormat,
int year,
int month,
int day,
int hour,
int minute)
format
public static String format(int whichFormat,
int year,
int month,
int day,
int hour,
int minute,
int dstOffset,
int occurrence)
format
public static String format(int whichFormat,
double time_JDU)
format
public static String format(int whichFormat,
int[] time)
format
public static String format(int whichFormat,
int year,
int month,
int day,
int hour,
int minute,
int dstOffset,
int utOffset,
int occurrence)