Enum Class DeviceType

java.lang.Object
java.lang.Enum<DeviceType>
com.dsi.ant.plugins.antplus.pcc.defines.DeviceType
All Implemented Interfaces:
Serializable, Comparable<DeviceType>, Constable

public enum DeviceType extends Enum<DeviceType>
Enum representing the various ANT+ Device Types.
  • Enum Constant Details

    • BIKE_POWER

      public static final DeviceType BIKE_POWER
      Bike Power
    • CONTROLLABLE_DEVICE

      public static final DeviceType CONTROLLABLE_DEVICE
      Controllable Device - Controls Profile
    • FITNESS_EQUIPMENT

      public static final DeviceType FITNESS_EQUIPMENT
      Fitness Equipment
    • BLOOD_PRESSURE

      public static final DeviceType BLOOD_PRESSURE
      Blood Pressure
    • GEOCACHE

      public static final DeviceType GEOCACHE
      Geocache
    • ENVIRONMENT

      public static final DeviceType ENVIRONMENT
      Environment (TEMPE)
    • WEIGHT_SCALE

      public static final DeviceType WEIGHT_SCALE
      Weight Scale
    • HEARTRATE

      public static final DeviceType HEARTRATE
      Heart Rate
    • BIKE_SPDCAD

      public static final DeviceType BIKE_SPDCAD
      Bike Speed and Cadence Combined Sensor
    • BIKE_CADENCE

      public static final DeviceType BIKE_CADENCE
      Bike Cadence Sensor
    • BIKE_SPD

      public static final DeviceType BIKE_SPD
      Bike Speed Sensor
    • STRIDE_SDM

      public static final DeviceType STRIDE_SDM
      Stride Based Speed and Distance Monitor
    • UNKNOWN

      public static final DeviceType UNKNOWN
      The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
  • Method Details

    • values

      public static DeviceType[] 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 DeviceType 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
    • getIntValue

      public int getIntValue()
      Returns:
      The integer device type value as defined by the corresponding ANT+ profile.
    • getValueFromInt

      public static DeviceType getValueFromInt(int intValue)
      Parameters:
      intValue - An ANT device type value.
      Returns:
      The corresponding ANT+ device type, or UNKNOWN if the type is not recognized.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DeviceType>