public enum HealthUnitDimension
- Object
- Enum<HealthUnitDimension>
- HealthUnitDimension
ImplementsComparable<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 constants
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 general CONCENTRATION dimension: 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. |
Methods
public static HealthUnitDimension[] values() | |
public static HealthUnitDimension valueOf(String name) |
Inherited methods
Enum constant details
COUNT
COUNTDimensionless tallies – steps, flights climbed, repetitions.
FREQUENCY
FREQUENCYCounts per unit time – heart rate, respiratory rate, cadence.
MASS
MASSBody mass, lean mass, bone mass, food mass.
LENGTH
LENGTHHeight, distance travelled, elevation.
ENERGY
ENERGYEnergy burned or consumed.
TIME
TIMEElapsed durations and inter-beat intervals.
PRESSURE
PRESSUREBlood pressure.
TEMPERATURE
TEMPERATUREBody and basal temperature.
VOLUME
VOLUMELiquid volume – hydration.
POWER
POWERInstantaneous mechanical power.
VELOCITY
VELOCITYMovement speed.
OXYGEN_UPTAKE
OXYGEN_UPTAKEMaximal oxygen uptake.
PERCENT
PERCENTRatios expressed as a percentage – oxygen saturation, body fat.
GLUCOSE_CONCENTRATION
GLUCOSE_CONCENTRATIONGlucose concentration only. Deliberately not a general
CONCENTRATION dimension: 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
public static HealthUnitDimension[] values()valueOf
public static HealthUnitDimension valueOf(String name)