Package org.djunits.unit.util
Interface UNITS
@Generated(value="org.djunits.generator.GenerateStaticUNITS", date="2019-10-22T09:30:00.000+0200") 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-2019 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
-
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
-
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
-
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
-