Enum Class BiobuzzClasses

java.lang.Object
java.lang.Enum<BiobuzzClasses>
org.hivevisionftc.vision.BiobuzzClasses
All Implemented Interfaces:
Serializable, Comparable<BiobuzzClasses>, Constable

public enum BiobuzzClasses extends Enum<BiobuzzClasses>
Game element classes the neural detector can report. The ids must match the class order the model was trained with.

For a new season, add a sibling enum with the new game elements.

  • Enum Constant Details

  • Method Details

    • values

      public static BiobuzzClasses[] 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 BiobuzzClasses 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
    • getId

      public int getId()
    • fromId

      public static BiobuzzClasses fromId(int id)
      Returns the class with the given detector id, or UNKNOWN if there is none.