Package com.dsi.ant.plugins.antplus.pcc
Enum Class AntPlusFitnessEquipmentPcc.TrainerStatusFlag
java.lang.Object
java.lang.Enum<AntPlusFitnessEquipmentPcc.TrainerStatusFlag>
com.dsi.ant.plugins.antplus.pcc.AntPlusFitnessEquipmentPcc.TrainerStatusFlag
- All Implemented Interfaces:
Serializable
,Comparable<AntPlusFitnessEquipmentPcc.TrainerStatusFlag>
,Constable
- Enclosing class:
- AntPlusFitnessEquipmentPcc
public static enum AntPlusFitnessEquipmentPcc.TrainerStatusFlag
extends Enum<AntPlusFitnessEquipmentPcc.TrainerStatusFlag>
Status flag from trainers which indicate possible required user intervention.
- Since:
- 2.1.8
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBicycle power measurement (i.e.Users cycling speed is too low to achieve target power.Users cycling speed is too high to achieve target power.Resistance calibration (i.e.The value sent by the plugin service was at least partially unrecognized indicating an upgrade of the PCC may be required to handle the value.User configuration required. -
Method Summary
Modifier and TypeMethodDescriptiongetEnumSet
(long longValue) Gets the set of flags contained in the given valuestatic long
getLong
(EnumSet<AntPlusFitnessEquipmentPcc.TrainerStatusFlag> trainerStatusFlags) Converts a set of flags to the equivalent raw long valuelong
Convert enum to equivalent long value.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNRECOGNIZED_FLAG_PRESENT
The value sent by the plugin service was at least partially unrecognized indicating an upgrade of the PCC may be required to handle the value. -
BICYCLE_POWER_CALIBRATION_REQUIRED
Bicycle power measurement (i.e. Zero Offset) calibration required. -
RESISTANCE_CALIBRATION_REQUIRED
Resistance calibration (i.e. Spin-Down Time) required. -
USER_CONFIGURATION_REQUIRED
User configuration required. -
MAXIMUM_POWER_LIMIT_REACHED
Users cycling speed is too low to achieve target power. -
MINIMUM_POWER_LIMIT_REACHED
Users cycling speed is too high to achieve target power.
-
-
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
-
getLongValue
public long getLongValue()Convert enum to equivalent long value.- Returns:
- long value equivalent
-
getEnumSet
Gets the set of flags contained in the given value- Parameters:
longValue
- raw long value containing flags- Returns:
- set of flags contained in the given value
-
getLong
public static long getLong(EnumSet<AntPlusFitnessEquipmentPcc.TrainerStatusFlag> trainerStatusFlags) Converts a set of flags to the equivalent raw long value- Parameters:
trainerStatusFlags
- set of flags to convert- Returns:
- equivalent raw long value
-