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