Package org.djunits.unit.util
Interface UNITS
@Generated(value="org.djunits.generator.GenerateStaticUNITS",
date="2021-02-01T10:50:00.000+0100")
public interface UNITS
Easy access methods for many units. Can be used to create DoubleScalar, DoubleVector, DoubleMatrix classes and their Float
equivalents. Instead of
DoubleScalar.Rel<LengthUnit> margin = new DoubleScalar.Rel<LengthUnit>(0.2, LengthUnit.METER);
we can now write
Length margin = new Length(0.2, METER);
The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.
DoubleScalar.Rel<LengthUnit> margin = new DoubleScalar.Rel<LengthUnit>(0.2, LengthUnit.METER);
we can now write
Length margin = new Length(0.2, METER);
The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.
To use these easy access methods, put a implements UNITS
at the end of your class
line.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final ElectricalResistanceUnit
static final ElectricalPotentialUnit
static final AreaUnit
static final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final LengthUnit
static final PositionUnit
static final AngleUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final AngleUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final AreaUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final PressureUnit
static final ElectricalChargeUnit
static final PressureUnit
static final PressureUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final RadioActivityUnit
static final EnergyUnit
static final EnergyUnit
static final EnergyUnit
static final EnergyUnit
static final LuminousIntensityUnit
static final AngleUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final AngleUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final AreaUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final ElectricalChargeUnit
static final VolumeUnit
static final VolumeUnit
static final VolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final VolumeUnit
static final VolumeUnit
static final VolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final VolumeUnit
static final VolumeUnit
static final VolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final VolumeUnit
static final VolumeUnit
static final VolumeUnit
static final VolumeUnit
static final VolumeUnit
static final RadioActivityUnit
static final MassUnit
static final DurationUnit
static final LengthUnit
static final PositionUnit
static final LengthUnit
static final PositionUnit
static final AngleUnit
static final TemperatureUnit
static final AbsoluteTemperatureUnit
static final TemperatureUnit
static final AbsoluteTemperatureUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final TemperatureUnit
static final AbsoluteTemperatureUnit
static final TemperatureUnit
static final AbsoluteTemperatureUnit
static final ForceUnit
static final DirectionUnit
static final DirectionUnit
static final ElectricalChargeUnit
static final EnergyUnit
static final EnergyUnit
static final EnergyUnit
static final EnergyUnit
static final EnergyUnit
static final EnergyUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final TimeUnit
static final EnergyUnit
static final AbsorbedDoseUnit
static final PowerUnit
static final ElectricalChargeUnit
static final ElectricalCapacitanceUnit
static final ElectricalChargeUnit
static final VolumeUnit
static final VolumeUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final SpeedUnit
static final SpeedUnit
static final SpeedUnit
static final AccelerationUnit
static final EnergyUnit
static final PowerUnit
static final PowerUnit
static final PowerUnit
static final ElectricalChargeUnit
static final AccelerationUnit
static final VolumeUnit
static final VolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final MagneticFluxDensityUnit
static final RadioActivityUnit
static final FrequencyUnit
static final EnergyUnit
static final ElectricalResistanceUnit
static final ElectricalPotentialUnit
static final PowerUnit
static final EnergyUnit
static final AngleUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final MassUnit
static final DensityUnit
static final AbsorbedDoseUnit
static final AreaUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final ElectricalInductanceUnit
static final FrequencyUnit
static final PowerUnit
static final DurationUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final SpeedUnit
static final SpeedUnit
static final SpeedUnit
static final AccelerationUnit
static final EnergyUnit
static final EnergyUnit
static final CatalyticActivityUnit
static final TemperatureUnit
static final AbsoluteTemperatureUnit
static final DensityUnit
static final PressureUnit
static final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final RadioActivityUnit
static final EnergyUnit
static final MassUnit
static final ForceUnit
static final MomentumUnit
static final FlowMassUnit
static final FrequencyUnit
static final EnergyUnit
static final IlluminanceUnit
static final LengthUnit
static final PositionUnit
static final ElectricalResistanceUnit
static final PressureUnit
static final ElectricalPotentialUnit
static final PowerUnit
static final EnergyUnit
static final SpeedUnit
static final AccelerationUnit
static final SpeedUnit
static final SpeedUnit
static final AccelerationUnit
static final LengthUnit
static final PositionUnit
static final VolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final FlowVolumeUnit
static final LuminousFluxUnit
static final IlluminanceUnit
static final MassUnit
static final MassUnit
static final MassUnit
static final MassUnit
static final MassUnit
static final MassUnit
static final MagneticFluxUnit
static final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final RadioActivityUnit
static final FrequencyUnit
static final EnergyUnit
static final ElectricalResistanceUnit
static final ElectricalPotentialUnit
static final PowerUnit
static final EnergyUnit
static final LengthUnit
static final PositionUnit
static final TorqueUnit
static final SpeedUnit
static final SpeedUnit
static final AccelerationUnit
static final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final RadioActivityUnit
static final ElectricalCapacitanceUnit
static final MassUnit
static final AbsorbedDoseUnit
static final ElectricalInductanceUnit
static final EnergyUnit
static final CatalyticActivityUnit
static final IlluminanceUnit
static final LengthUnit
static final PositionUnit
static final AmountOfSubstanceUnit
static final ElectricalResistanceUnit
static final DurationUnit
static final ElectricalConductanceUnit
static final EquivalentDoseUnit
static final MagneticFluxDensityUnit
static final ElectricalPotentialUnit
static final PowerUnit
static final EnergyUnit
static final MagneticFluxUnit
static final LengthUnit
static final PositionUnit
static final SpeedUnit
static final AccelerationUnit
static final AccelerationUnit
static final SpeedUnit
static final SpeedUnit
static final AccelerationUnit
static final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final ElectricalChargeUnit
static final PressureUnit
static final ElectricalChargeUnit
static final RadioActivityUnit
static final ElectricalCapacitanceUnit
static final MassUnit
static final AbsorbedDoseUnit
static final ElectricalInductanceUnit
static final EnergyUnit
static final CatalyticActivityUnit
static final IlluminanceUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final AmountOfSubstanceUnit
static final ElectricalResistanceUnit
static final DurationUnit
static final ElectricalConductanceUnit
static final EquivalentDoseUnit
static final MagneticFluxDensityUnit
static final ElectricalPotentialUnit
static final PowerUnit
static final EnergyUnit
static final MagneticFluxUnit
static final DurationUnit
static final AmountOfSubstanceUnit
static final RadioActivityUnit
static final ElectricalCapacitanceUnit
static final ElectricalInductanceUnit
static final CatalyticActivityUnit
static final LengthUnit
static final PositionUnit
static final AmountOfSubstanceUnit
static final ElectricalConductanceUnit
static final MagneticFluxDensityUnit
static final MagneticFluxUnit
static final LengthUnit
static final PositionUnit
static final ForceUnit
static final TorqueUnit
static final DirectionUnit
static final DirectionUnit
static final IlluminanceUnit
static final ElectricalResistanceUnit
static final MassUnit
static final ForceUnit
static final LengthUnit
static final PositionUnit
static final PressureUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final FrequencyUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final FrequencyUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final FrequencyUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final FrequencyUnit
static final FrequencyUnit
static final LinearDensityUnit
static final LinearDensityUnit
static final FrequencyUnit
static final FrequencyUnit
static final LinearDensityUnit
static final AngleUnit
static final RadioActivityUnit
static final EnergyUnit
static final PowerUnit
static final EnergyUnit
static final IlluminanceUnit
static final ElectricalCapacitanceUnit
static final PressureUnit
static final VolumeUnit
static final VolumeUnit
static final MassUnit
static final TorqueUnit
static final ForceUnit
static final TorqueUnit
static final FlowMassUnit
static final PressureUnit
static final PressureUnit
static final VolumeUnit
static final VolumeUnit
static final AbsorbedDoseUnit
static final AngleUnit
static final AngularVelocityUnit
static final AngularAccelerationUnit
static final EquivalentDoseUnit
static final FrequencyUnit
static final RadioActivityUnit
static final DurationUnit
static final ElectricalConductanceUnit
static final EquivalentDoseUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final SolidAngleUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AreaUnit
static final AccelerationUnit
static final ElectricalCurrentUnit
static final ElectricalChargeUnit
static final ElectricalResistanceUnit
static final ElectricalPotentialUnit
static final SolidAngleUnit
static final ForceUnit
static final EnergyUnit
static final PowerUnit
static final RadioActivityUnit
static final FrequencyUnit
static final EnergyUnit
static final PowerUnit
static final EnergyUnit
static final MagneticFluxDensityUnit
static final ForceUnit
static final MassUnit
static final MassUnit
static final MassUnit
static final MassUnit
static final PressureUnit
static final DimensionlessUnit
static final ElectricalPotentialUnit
static final PowerUnit
static final EnergyUnit
static final MagneticFluxUnit
static final DurationUnit
static final LengthUnit
static final PositionUnit
-
Field Details
-
KELVIN_ABS
-
DEGREE_CELSIUS_ABS
-
DEGREE_FAHRENHEIT_ABS
-
DEGREE_RANKINE_ABS
-
DEGREE_REAUMUR_ABS
-
METER_PER_SECOND_2
-
KM_PER_HOUR_2
-
FOOT_PER_SECOND_2
-
INCH_PER_SECOND_2
-
MILE_PER_HOUR_2
-
MILE_PER_SECOND_2
-
KNOT_PER_SECOND
-
MILE_PER_HOUR_PER_SECOND
-
STANDARD_GRAVITY
-
GAL
-
RADIAN
-
PERCENT
-
DEGREE
-
ARCMINUTE
-
ARCSECOND
-
GRAD
-
CENTESIMAL_ARCMINUTE
-
CENTESIMAL_ARCSECOND
-
RADIAN_PER_SECOND_SQUARED
-
DEGREE_PER_SECOND_SQUARED
-
ARCMINUTE_PER_SECOND_SQUARED
-
ARCSECOND_PER_SECOND_SQUARED
-
GRAD_PER_SECOND_SQUARED
-
CENTESIMAL_ARCMINUTE_SQUARED
-
CENTESIMAL_ARCSECOND_PER_SECOND_SQUARED
-
RADIAN_PER_SECOND
-
DEGREE_PER_SECOND
-
ARCMINUTE_PER_SECOND
-
ARCSECOND_PER_SECOND
-
GRAD_PER_SECOND
-
CENTESIMAL_ARCMINUTE_PER_SECOND
-
CENTESIMAL_ARCSECOND_PER_SECOND
-
SQUARE_METER
-
SQUARE_MILLIMETER
-
SQUARE_CENTIMETER
-
SQUARE_DECIMETER
-
SQUARE_DECAMETER
-
SQUARE_HECTOMETER
-
SQUARE_KILOMETER
-
CENTIARE
-
ARE
-
HECTARE
-
SQUARE_MILE
-
SQUARE_NAUTICAL_MILE
-
SQUARE_FOOT
-
SQUARE_INCH
-
SQUARE_YARD
-
ACRE
-
KG_PER_METER_3
-
GRAM_PER_CENTIMETER_3
-
UNIT
-
EAST_RADIAN
-
EAST_DEGREE
-
NORTH_RADIAN
-
NORTH_DEGREE
-
SECOND
-
MICROSECOND
-
MILLISECOND
-
MINUTE
-
HOUR
-
DAY
-
WEEK
-
COULOMB
-
MICROCOULOMB
-
MILLICOULOMB
-
AMPERE_HOUR
-
MILLIAMPERE_HOUR
-
MILLIAMPERE_SECOND
-
KILOAMPERE_HOUR
-
MEGAAMPERE_HOUR
-
FARADAY
-
ATOMIC_UNIT
-
STATCOULOMB
-
FRANKLIN
-
ESU
-
ABCOULOMB
-
EMU
-
AMPERE
-
MICROAMPERE
-
MILLIAMPERE
-
KILOAMPERE
-
MEGAAMPERE
-
STATAMPERE
-
ABAMPERE
-
VOLT
-
MICROVOLT
-
MILLIVOLT
-
KILOVOLT
-
MEGAVOLT
-
GIGAVOLT
-
STATVOLT
-
ABVOLT
-
OHM
-
MICROOHM
-
MILLIOHM
-
KILOOHM
-
MEGAOHM
-
GIGAOHM
-
ABOHM
-
STATOHM
-
JOULE
-
MICROJOULE
-
MILLIJOULE
-
KILOJOULE
-
MEGAJOULE
-
GIGAJOULE
-
TERAJOULE
-
PETAJOULE
-
FOOT_POUND_FORCE
-
INCH_POUND_FORCE
-
BTU_ISO
-
BTU_IT
-
CALORIE_IT
-
CALORIE
-
KILOCALORIE
-
WATT_HOUR
-
MICROWATT_HOUR
-
MILLIWATT_HOUR
-
KILOWATT_HOUR
-
MEGAWATT_HOUR
-
GIGAWATT_HOUR
-
TERAWATT_HOUR
-
PETAWATT_HOUR
-
ENERGY_ELECTRONVOLT
-
ENERGY_MICROELECTRONVOLT
-
ENERGY_MILLIELECTRONVOLT
-
ENERGY_KILOELECTRONVOLT
-
ENERGY_MEGAELECTRONVOLT
-
ENERGY_GIGAELECTRONVOLT
-
STHENE_METER
-
ERG
-
KILOGRAM_PER_SECOND
-
POUND_PER_SECOND
-
CUBIC_METER_PER_SECOND
-
CUBIC_METER_PER_MINUTE
-
CUBIC_METER_PER_HOUR
-
CUBIC_METER_PER_DAY
-
LITER_PER_SECOND
-
LITER_PER_MINUTE
-
LITER_PER_HOUR
-
LITER_PER_DAY
-
CUBIC_FEET_PER_SECOND
-
CUBIC_FEET_PER_MINUTE
-
CUBIC_INCH_PER_SECOND
-
CUBIC_INCH_PER_MINUTE
-
GALLON_US_PER_SECOND
-
GALLON_US_PER_MINUTE
-
GALLON_US_PER_HOUR
-
GALLON_US_PER_DAY
-
NEWTON
-
DYNE
-
KILOGRAM_FORCE
-
OUNCE_FORCE
-
POUND_FORCE
-
TON_FORCE
-
STHENE
-
HERTZ
-
KILOHERTZ
-
MEGAHERTZ
-
GIGAHERTZ
-
TERAHERTZ
-
RPM
-
PER_SECOND
-
PER_MICROSECOND
-
PER_MILLISECOND
-
PER_MINUTE
-
PER_HOUR
-
PER_DAY
-
PER_WEEK
-
METER
-
NANOMETER
-
MICROMETER
-
MILLIMETER
-
CENTIMETER
-
DECIMETER
-
DECAMETER
-
HECTOMETER
-
KILOMETER
-
FOOT
-
INCH
-
YARD
-
MILE
-
NAUTICAL_MILE
-
ASTRONOMICAL_UNIT
-
LIGHTYEAR
-
PARSEC
-
ANGSTROM
-
PER_METER
-
PER_MICROMETER
-
PER_MILLIMETER
-
PER_CENTIMETER
-
PER_DECIMETER
-
PER_DECAMETER
-
PER_HECTOMETER
-
PER_KILOMETER
-
PER_FOOT
-
PER_INCH
-
PER_YARD
-
PER_MILE
-
PER_NAUTICAL_MILE
-
PER_ASTRONOMICAL_UNIT
-
PER_LIGHTYEAR
-
PER_PARSEC
-
PER_ANGSTROM
-
KILOGRAM
-
GRAM
-
MICROGRAM
-
MILLIGRAM
-
POUND
-
OUNCE
-
TON_LONG
-
TON_SHORT
-
TON_METRIC
-
TONNE
-
DALTON
-
MASS_ELECTRONVOLT
-
MASS_MICROELECTRONVOLT
-
MASS_MILLIELECTRONVOLT
-
MASS_KILOELECTRONVOLT
-
MASS_MEGAELECTRONVOLT
-
MASS_GIGAELECTRONVOLT
-
KILOGRAM_METER_PER_SECOND
-
METER_ABS
-
NANOMETER_ABS
-
MICROMETER_ABS
-
MILLIMETER_ABS
-
CENTIMETER_ABS
-
DECIMETER_ABS
-
DECAMETER_ABS
-
HECTOMETER_ABS
-
KILOMETER_ABS
-
FOOT_ABS
-
INCH_ABS
-
YARD_ABS
-
MILE_ABS
-
NAUTICAL_MILE_ABS
-
ASTRONOMICAL_UNIT_ABS
-
LIGHTYEAR_ABS
-
PARSEC_ABS
-
ANGSTROM_ABS
-
WATT
-
MICROWATT
-
MILLIWATT
-
KILOWATT
-
MEGAWATT
-
GIGAWATT
-
TERAWATT
-
PETAWATT
-
FOOT_POUND_FORCE_PER_HOUR
-
FOOT_POUND_FORCE_PER_MINUTE
-
FOOT_POUND_FORCE_PER_SECOND
-
HORSEPOWER_METRIC
-
STHENE_METER_PER_SECOND
-
ERG_PER_SECOND
-
PASCAL
-
HECTOPASCAL
-
KILOPASCAL
-
ATMOSPHERE_STANDARD
-
TORR
-
ATMOSPHERE_TECHNICAL
-
BARYE
-
BAR
-
MILLIBAR
-
CENTIMETER_MERCURY
-
MILLIMETER_MERCURY
-
FOOT_MERCURY
-
INCH_MERCURY
-
KGF_PER_SQUARE_MM
-
POUND_PER_SQUARE_FOOT
-
POUND_PER_SQUARE_INCH
-
PIEZE
-
STERADIAN
-
SQUARE_DEGREE
-
METER_PER_SECOND
-
METER_PER_HOUR
-
KM_PER_SECOND
-
KM_PER_HOUR
-
INCH_PER_SECOND
-
INCH_PER_MINUTE
-
INCH_PER_HOUR
-
FOOT_PER_SECOND
-
FOOT_PER_MINUTE
-
FOOT_PER_HOUR
-
MILE_PER_SECOND
-
MILE_PER_MINUTE
-
MILE_PER_HOUR
-
KNOT
-
KELVIN
-
DEGREE_CELSIUS
-
DEGREE_FAHRENHEIT
-
DEGREE_RANKINE
-
DEGREE_REAUMUR
-
BASE_SECOND
-
BASE_MICROSECOND
-
BASE_MILLISECOND
-
BASE_MINUTE
-
BASE_HOUR
-
BASE_DAY
-
BASE_WEEK
-
EPOCH_SECOND
-
EPOCH_MICROSECOND
-
EPOCH_MILLISECOND
-
EPOCH_MINUTE
-
EPOCH_HOUR
-
EPOCH_DAY
-
EPOCH_WEEK
-
EPOCH_YEAR1_SECOND
-
EPOCH_J2000_SECOND
-
NEWTON_METER
-
METER_KILOGRAM_FORCE
-
POUND_FOOT
-
POUND_INCH
-
CUBIC_METER
-
CUBIC_MILLIMETER
-
CUBIC_CENTIMETER
-
CUBIC_DECIMETER
-
CUBIC_DECAMETER
-
CUBIC_HECTOMETER
-
CUBIC_KILOMETER
-
CUBIC_MILE
-
CUBIC_NAUTICAL_MILE
-
CUBIC_FOOT
-
CUBIC_INCH
-
CUBIC_YARD
-
LITER
-
GALLON_US
-
GALLON_IMP
-
QUART_US
-
QUART_IMP
-
PINT_US
-
PINT_IMP
-
FLUID_OUNCE_US
-
FLUID_OUNCE_IMP
-
CUBIC_LIGHTYEAR
-
CUBIC_PARSEC
-
GRAY
-
MILLIGRAY
-
MICROGRAY
-
ERG_PER_GRAM
-
RAD
-
MOLE
-
MILLIMOLE
-
MICROMOLE
-
NANOMOLE
-
KATAL
-
MILLIKATAL
-
MICROKATAL
-
NANOKATAL
-
FARAD
-
MILLIFARAD
-
MICROFARAD
-
NANOFARAD
-
PICOFARAD
-
SIEMENS
-
MILLISIEMENS
-
MICROSIEMENS
-
NANOSIEMENS
-
HENRY
-
MILLIHENRY
-
MICROHENRY
-
NANOHENRY
-
SIEVERT
-
MILLISIEVERT
-
MICROSIEVERT
-
REM
-
LUX
-
MILLILUX
-
MICROLUX
-
KILOLUX
-
PHOT
-
NOX
-
LUMEN
-
CANDELA
-
TESLA
-
MILLITESLA
-
MICROTESLA
-
NANOTESLA
-
GAUSS
-
WEBER
-
MILLIWEBER
-
MICROWEBER
-
NANOWEBER
-
MAXWELL
-
BECQUEREL
-
KILOBECQUEREL
-
MEGABECQUEREL
-
GIGABECQUEREL
-
TERABECQUEREL
-
PETABECQUEREL
-
CURIE
-
MILLICURIE
-
MICROCURIE
-
NANOCURIE
-
RUTHERFORD
-