Package frc.lib.util

Enum Class ScoringLocation.Height

java.lang.Object
java.lang.Enum<ScoringLocation.Height>
frc.lib.util.ScoringLocation.Height
All Implemented Interfaces:
Serializable, Comparable<ScoringLocation.Height>, Constable
Enclosing class:
ScoringLocation

public static enum ScoringLocation.Height extends Enum<ScoringLocation.Height>
set of height modes
  • Enum Constant Details

  • Field Details

    • displayName

      public final String displayName
    • height

      public final Distance height
    • isAlgae

      public final boolean isAlgae
    • currentState

      public static ScoringLocation.Height currentState
  • Method Details

    • values

      public static ScoringLocation.Height[] 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 ScoringLocation.Height 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
    • toInt

      public int toInt()
      Serialize to an integer
    • fromInt

      public static ScoringLocation.Height fromInt(int value)
      Deserialize from integer
    • increment

      public ScoringLocation.Height increment()
      Returns:
      increments coral state
    • decrement

      public ScoringLocation.Height decrement()
      Returns:
      decrements coral state
    • getCurrentState

      public static ScoringLocation.Height getCurrentState()
      Get currently tracked state.
    • incrementState

      public static void incrementState()
      Advance state forward by one.
    • decrementState

      public static void decrementState()
      Advance state backwards by one.