Package com.dsi.ant.plugins.antplus.pcc
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
The data source code.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA coast or stop condition detected by the ANT+ Plugin.Data derived from crank torque data.Data derived from crank torque frequency data.New starting value derived from crank torque data.New starting value derived from crank torque frequency data.New starting value derived from power-only data.New starting value derived from wheel torque data.Invalid data source.Invalid value.Data derived from power-only data.The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.Data derived from wheel torque data. -
Method Summary
Modifier and TypeMethodDescriptionint
Convert enum to equivalent int valuegetValueFromInt
(int intValue) Convert int to equivalent enum valueReturns the enum constant of this class with the specified name.static AntPlusBikePowerPcc.DataSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POWER_ONLY_DATA
Data derived from power-only data. -
WHEEL_TORQUE_DATA
Data derived from wheel torque data. -
CRANK_TORQUE_DATA
Data derived from crank torque data. -
CTF_DATA
Data derived from crank torque frequency data. -
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
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
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
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
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
Invalid data source. -
INVALID_CTF_CAL_REQ
Invalid value. CTF offset calibration is required before power can be calculated. -
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
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
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 nameNullPointerException
- if the argument is null
-
getIntValue
public int getIntValue()Convert enum to equivalent int value- Returns:
- integer value equivalent
-
getValueFromInt
Convert int to equivalent enum value- Parameters:
intValue
- integer to convert- Returns:
- enum value equivalent
-