Enum HealthUnitDimension
- All Implemented Interfaces:
Comparable<HealthUnitDimension>
The physical dimension of a
HealthUnit. Two units can be converted
into one another exactly when they share a dimension; a conversion
across dimensions is a programming error, not a runtime condition.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDimensionless tallies -- steps, flights climbed, repetitions.Energy burned or consumed.Counts per unit time -- heart rate, respiratory rate, cadence.Glucose concentration only. Deliberately not a generalCONCENTRATIONdimension: converting mg/dL to mmol/L divides by the molar mass of the analyte (18.0182 for glucose), so a shared concentration dimension would silently produce wrong numbers the first time another analyte -- cholesterol, creatinine -- is added in mg/dL.Height, distance travelled, elevation.Body mass, lean mass, bone mass, food mass.Maximal oxygen uptake.Ratios expressed as a percentage -- oxygen saturation, body fat.Instantaneous mechanical power.Blood pressure.Body and basal temperature.Elapsed durations and inter-beat intervals.Movement speed.Liquid volume -- hydration. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthUnitDimensionReturns the enum constant of this type with the specified name.static HealthUnitDimension[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
COUNT
Dimensionless tallies -- steps, flights climbed, repetitions. -
FREQUENCY
Counts per unit time -- heart rate, respiratory rate, cadence. -
MASS
Body mass, lean mass, bone mass, food mass. -
LENGTH
Height, distance travelled, elevation. -
ENERGY
Energy burned or consumed. -
TIME
Elapsed durations and inter-beat intervals. -
PRESSURE
Blood pressure. -
TEMPERATURE
Body and basal temperature. -
VOLUME
Liquid volume -- hydration. -
POWER
Instantaneous mechanical power. -
VELOCITY
Movement speed. -
OXYGEN_UPTAKE
Maximal oxygen uptake. -
PERCENT
Ratios expressed as a percentage -- oxygen saturation, body fat. -
GLUCOSE_CONCENTRATION
Glucose concentration only. Deliberately not a generalCONCENTRATIONdimension: converting mg/dL to mmol/L divides by the molar mass of the analyte (18.0182 for glucose), so a shared concentration dimension would silently produce wrong numbers the first time another analyte -- cholesterol, creatinine -- is added in mg/dL. If such a type is ever introduced it must get its own dimension rather than reuse this one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-