Package org.djunits.unit.unitsystem
Class UnitSystem
java.lang.Object
org.djunits.unit.unitsystem.UnitSystem
- All Implemented Interfaces:
Serializable
Systems of Units such as SI, including SI-derived; cgs (centimeter-gram-second).
Copyright (c) 2015-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
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AU
AU: Atomic Unit system.static final CGS
CGS: centimeter-gram-second system.static final CGS_EMU
CGS_EMU: centimeter-gram-second system, electromagnetic units.static final CGS_ESU
CGS_ESU: centimeter-gram-second system, electrostatic units.static final Imperial
Imperial system.static final MTS
MTS: meter-tonne-second system.static final Other
Other (or no) system.static final SIAccepted
SI units, accepted for use in addition to SI.static final SIBase
SI base units: temperature, time, length, mass, luminous intensity, amount of substance and electric current.static final SIDerived
SI derived units, by combining SI-base elements (and quantifiers such as milli or kilo).static final USCustomary
US additions to the Imperial system. -
Constructor Summary
ModifierConstructorDescriptionprotected
UnitSystem
(String abbreviationKey, String nameKey) Construct a new UnitSystem. -
Method Summary
-
Field Details
-
CGS
CGS: centimeter-gram-second system. -
CGS_ESU
CGS_ESU: centimeter-gram-second system, electrostatic units. -
CGS_EMU
CGS_EMU: centimeter-gram-second system, electromagnetic units. -
IMPERIAL
Imperial system. -
MTS
MTS: meter-tonne-second system. -
OTHER
Other (or no) system. -
SI_ACCEPTED
SI units, accepted for use in addition to SI. -
SI_BASE
SI base units: temperature, time, length, mass, luminous intensity, amount of substance and electric current. -
SI_DERIVED
SI derived units, by combining SI-base elements (and quantifiers such as milli or kilo). -
US_CUSTOMARY
US additions to the Imperial system. -
AU
AU: Atomic Unit system.
-
-
Constructor Details
-
UnitSystem
Construct a new UnitSystem.- Parameters:
abbreviationKey
- String; the abbreviation of the unit system, such as cgsnameKey
- String; the name of the unit system, such as centimeter-gram-second
-
-
Method Details
-
getName
Retrieve the name of this UnitSystem.- Returns:
- String; the name of this UnitSystem, e.g. centimeter-gram-second
-
getNameKey
Retrieve the name key of this UnitSystem.- Returns:
- String; the name key of this UnitSystem, e.g. CGS.centimeter-gram-second
-
getAbbreviation
Retrieve the abbreviation of this UnitSystem.- Returns:
- String; the abbreviation of this UnitSystem, e.g., CGS.cgs
-
getAbbreviationKey
Retrieve the abbreviation key of this UnitSystem.- Returns:
- String; the abbreviation key of this UnitSystem, e.g. cgs
-
toString
-