Package com.dsi.ant.plugins.antplus.pcc
Enum Class AntPlusHeartRatePcc.RrFlag
java.lang.Object
java.lang.Enum<AntPlusHeartRatePcc.RrFlag>
com.dsi.ant.plugins.antplus.pcc.AntPlusHeartRatePcc.RrFlag
- All Implemented Interfaces:
Serializable
,Comparable<AntPlusHeartRatePcc.RrFlag>
,Constable
- Enclosing class:
- AntPlusHeartRatePcc
Describes how the RR Interval was calculated, and which source the data was derived from.
- Since:
- 2.1.7; requires Plugin Service 2.2.8+
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRR interval data has been calculated using an average of previously received and currently received data.RR interval data is derived from cached current timestamp data pulled of previous page 0s received from the heart rate sensor.RR interval data is derived from the previous heart beat event timestamp data pulled of page 4 received from the heart rate sensor.Heart rate of 0bpm has been detected.The value sent by the Plugin Service was unrecognized, indicating an upgrade of the PCC may be required to handle the value. -
Method Summary
Modifier and TypeMethodDescriptionint
Convert enum to equivalent int valuestatic AntPlusHeartRatePcc.RrFlag
getValueFromInt
(int intValue) Convert int to equivalent enum valuestatic AntPlusHeartRatePcc.RrFlag
Returns the enum constant of this class with the specified name.static AntPlusHeartRatePcc.RrFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATA_SOURCE_PAGE_4
RR interval data is derived from the previous heart beat event timestamp data pulled of page 4 received from the heart rate sensor. -
DATA_SOURCE_CACHED
RR interval data is derived from cached current timestamp data pulled of previous page 0s received from the heart rate sensor. -
DATA_SOURCE_AVERAGED
RR interval data has been calculated using an average of previously received and currently received data. This is likely because a heart beat event was missed and so no data, cached or through page 4, is available for the skipped beat. -
HEART_RATE_ZERO_DETECTED
Heart rate of 0bpm has been detected. No R-R interval can be provided. -
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
-