public enum HealthUnitDimension

  1. Object
  2. Enum<HealthUnitDimension>
  3. 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

COUNTDimensionless tallies – steps, flights climbed, repetitions.
FREQUENCYCounts per unit time – heart rate, respiratory rate, cadence.
MASSBody mass, lean mass, bone mass, food mass.
LENGTHHeight, distance travelled, elevation.
ENERGYEnergy burned or consumed.
TIMEElapsed durations and inter-beat intervals.
PRESSUREBlood pressure.
TEMPERATUREBody and basal temperature.
VOLUMELiquid volume – hydration.
POWERInstantaneous mechanical power.
VELOCITYMovement speed.
OXYGEN_UPTAKEMaximal oxygen uptake.
PERCENTRatios expressed as a percentage – oxygen saturation, body fat.
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.

Methods

public static HealthUnitDimension[] values()
public static HealthUnitDimension valueOf(String name)

Inherited methods

Enum constant details

COUNT

COUNT
Dimensionless tallies – steps, flights climbed, repetitions.

FREQUENCY

FREQUENCY
Counts per unit time – heart rate, respiratory rate, cadence.

MASS

MASS
Body mass, lean mass, bone mass, food mass.

LENGTH

LENGTH
Height, distance travelled, elevation.

ENERGY

ENERGY
Energy burned or consumed.

TIME

TIME
Elapsed durations and inter-beat intervals.

PRESSURE

PRESSURE
Blood pressure.

TEMPERATURE

TEMPERATURE
Body and basal temperature.

VOLUME

VOLUME
Liquid volume – hydration.

POWER

POWER
Instantaneous mechanical power.

VELOCITY

VELOCITY
Movement speed.

OXYGEN_UPTAKE

OXYGEN_UPTAKE
Maximal oxygen uptake.

PERCENT

PERCENT
Ratios expressed as a percentage – oxygen saturation, body fat.

GLUCOSE_CONCENTRATION

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. 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)