Enum Class SPA.Horizon

java.lang.Object
java.lang.Enum<SPA.Horizon>
net.e175.klaus.solarpositioning.SPA.Horizon
All Implemented Interfaces:
Serializable, Comparable<SPA.Horizon>, Constable
Enclosing class:
SPA

public static enum SPA.Horizon extends Enum<SPA.Horizon>
Predefined elevation angles to use in sunrise-sunset calculation. This allows to get twilight times as well as standard sunrise and sunset.
  • Enum Constant Details

    • SUNRISE_SUNSET

      public static final SPA.Horizon SUNRISE_SUNSET
    • CIVIL_TWILIGHT

      public static final SPA.Horizon CIVIL_TWILIGHT
    • NAUTICAL_TWILIGHT

      public static final SPA.Horizon NAUTICAL_TWILIGHT
    • ASTRONOMICAL_TWILIGHT

      public static final SPA.Horizon ASTRONOMICAL_TWILIGHT
  • Method Details

    • values

      public static SPA.Horizon[] 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

      public static SPA.Horizon valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • elevation

      public double elevation()