Enum Class AntPlusBikePowerPcc.DataSource

java.lang.Object
java.lang.Enum<AntPlusBikePowerPcc.DataSource>
com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.DataSource
All Implemented Interfaces:
Serializable, Comparable<AntPlusBikePowerPcc.DataSource>, Constable
Enclosing class:
AntPlusBikePowerPcc

public static enum AntPlusBikePowerPcc.DataSource extends Enum<AntPlusBikePowerPcc.DataSource>
The data source code.
  • Enum Constant Details

    • POWER_ONLY_DATA

      public static final AntPlusBikePowerPcc.DataSource POWER_ONLY_DATA
      Data derived from power-only data.
    • WHEEL_TORQUE_DATA

      public static final AntPlusBikePowerPcc.DataSource WHEEL_TORQUE_DATA
      Data derived from wheel torque data.
    • CRANK_TORQUE_DATA

      public static final AntPlusBikePowerPcc.DataSource CRANK_TORQUE_DATA
      Data derived from crank torque data.
    • CTF_DATA

      public static final AntPlusBikePowerPcc.DataSource CTF_DATA
      Data derived from crank torque frequency data.
    • COAST_OR_STOP_DETECTED

      public static final AntPlusBikePowerPcc.DataSource COAST_OR_STOP_DETECTED
      A coast or stop condition detected by the ANT+ Plugin. This is automatically sent by the plugin after approximately 3 seconds of unchanging events. NOTE: This value should be ignored by apps which are archiving the data for accuracy. Please refer to the Bike Power Device Profile for additional information.
    • INITIAL_VALUE_POWER_ONLY_DATA

      public static final AntPlusBikePowerPcc.DataSource INITIAL_VALUE_POWER_ONLY_DATA
      New starting value derived from power-only data. The value sent here is a new value and is not an average of the previous time between messages. NOTE: Apps which are archiving the data must record this as a NEW starting point for accuracy. Please refer to the Bike Power Device Profile for additional information.
    • INITIAL_VALUE_WHEEL_TORQUE_DATA

      public static final AntPlusBikePowerPcc.DataSource INITIAL_VALUE_WHEEL_TORQUE_DATA
      New starting value derived from wheel torque data. The value sent here is a new value and is not an average of the previous time between messages. NOTE: Apps which are archiving the data must record this as a NEW starting point for accuracy. Please refer to the Bike Power Device Profile for additional information.
    • INITIAL_VALUE_CRANK_TORQUE_DATA

      public static final AntPlusBikePowerPcc.DataSource INITIAL_VALUE_CRANK_TORQUE_DATA
      New starting value derived from crank torque data. The value sent here is a new value and is not an average of the previous time between messages. NOTE: Apps which are archiving the data must record this as a NEW starting point for accuracy. Please refer to the Bike Power Device Profile for additional information.
    • INITIAL_VALUE_CTF_DATA

      public static final AntPlusBikePowerPcc.DataSource INITIAL_VALUE_CTF_DATA
      New starting value derived from crank torque frequency data. The value sent here is a new value and is not an average of the previous time between messages. NOTE: Apps which are archiving the data must record this as a NEW starting point for accuracy. Please refer to the Bike Power Device Profile for additional information.
    • INVALID

      public static final AntPlusBikePowerPcc.DataSource INVALID
      Invalid data source.
    • INVALID_CTF_CAL_REQ

      public static final AntPlusBikePowerPcc.DataSource INVALID_CTF_CAL_REQ
      Invalid value. CTF offset calibration is required before power can be calculated.
    • UNRECOGNIZED

      public static final AntPlusBikePowerPcc.DataSource UNRECOGNIZED
      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 AntPlusBikePowerPcc.DataSource[] 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 AntPlusBikePowerPcc.DataSource 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()
      Convert enum to equivalent int value
      Returns:
      integer value equivalent
    • getValueFromInt

      public static AntPlusBikePowerPcc.DataSource getValueFromInt(int intValue)
      Convert int to equivalent enum value
      Parameters:
      intValue - integer to convert
      Returns:
      enum value equivalent