- All Implemented Interfaces:
Serializable,Comparable<SunMoonCalculator.TWILIGHT>,Constable
- Enclosing class:
- SunMoonCalculator
The set of twilights to calculate (types of rise/set events).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe standard value of 34' for the refraction at the local horizon.Event ID for calculation of rising and setting times for astronomical twilight.Event ID for calculation of rising and setting times for civil twilight.Event ID for calculation of rising and setting times for nautical twilight. -
Method Summary
Modifier and TypeMethodDescriptionstatic SunMoonCalculator.TWILIGHTReturns the enum constant of this class with the specified name.static SunMoonCalculator.TWILIGHT[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TWILIGHT_ASTRONOMICAL
Event ID for calculation of rising and setting times for astronomical twilight. In this case, the calculated time will be the time when the center of the object is at -18 degrees of geometrical elevation below the astronomical horizon. At this time astronomical observations are possible because the sky is dark enough. -
TWILIGHT_NAUTICAL
Event ID for calculation of rising and setting times for nautical twilight. In this case, the calculated time will be the time when the center of the object is at -12 degrees of geometric elevation below the astronomical horizon. -
TWILIGHT_CIVIL
Event ID for calculation of rising and setting times for civil twilight. In this case, the calculated time will be the time when the center of the object is at -6 degrees of geometric elevation below the astronomical horizon. -
BLUE_HOUR
The standard value of 34' for the refraction at the local horizon. -
HORIZON_34arcmin
-
GOLDEN_HOUR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-