Enum Class Fix

java.lang.Object
java.lang.Enum<Fix>
io.jenetics.jpx.Fix
All Implemented Interfaces:
Serializable, Comparable<Fix>, Constable

public enum Fix extends Enum<Fix>
Type of GPS fix. none means GPS had no fix. To signify "the fix info is unknown, leave out Fix entirely. pps = military signal used.
Since:
1.0
Version:
1.2
  • Enum Constant Details

    • NONE

      public static final Fix NONE
    • DIM_2

      public static final Fix DIM_2
    • DIM_3

      public static final Fix DIM_3
    • DGPS

      public static final Fix DGPS
    • PPS

      public static final Fix PPS
  • Method Details

    • values

      public static Fix[] 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 Fix 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
    • getValue

      public String getValue()
      Return the string representation of the GPS Fix. none, 2d. 3d, dgps or pps.
      Returns:
      the string representation of the GPS Fix
    • ofName

      public static Optional<Fix> ofName(String name)
      Return the Fix constant for the given fix value.
      Parameters:
      name - the GPS fix names
      Returns:
      the GPS fix for the given value, or Optional.empty() if the given name is invalid