public class NonSI
extends tec.uom.se.AbstractSystemOfUnits
This class contains units that are not part of the International System of Units, that is, they are outside the SI, but are important and widely used.
This class is not intended to be implemented by clients.
Modifier and Type | Field and Description |
---|---|
static javax.measure.Unit<javax.measure.quantity.Length> |
ANGSTROM
A unit of length equal to
1E-10 m (standard name
Ångström ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Area> |
ARE
A unit of area equal to
100 m² (standard name a
). |
static javax.measure.Unit<javax.measure.quantity.Length> |
ASTRONOMICAL_UNIT
A length unit accepted for use with SI units (standard name
UA ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Pressure> |
ATMOSPHERE
A unit of pressure equal to the average pressure of the Earth's
atmosphere at sea level (standard name
atm ). |
static javax.measure.Unit<javax.measure.quantity.AmountOfSubstance> |
ATOM
A unit of amount of substance equals to one atom (standard name
atom ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Mass> |
ATOMIC_MASS
A unit of mass equal to 1/12 the mass of the carbon-12 atom (standard
name
u ). |
private static double |
AVOGADRO_CONSTANT
Holds the Avogadro constant.
|
(package private) static int |
AVOIRDUPOIS_POUND_DIVIDEND
Holds the avoirdupois pound: 0.45359237 kg exact
|
(package private) static int |
AVOIRDUPOIS_POUND_DIVISOR |
static javax.measure.Unit<javax.measure.quantity.Pressure> |
BAR
A unit of pressure equal to
100 kPa (standard name
bar ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Speed> |
C
A unit of velocity relative to the speed of light (standard name
c ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Radioactivity> |
CURIE
A unit of radioctive activity equal to the activity of a gram of radium
(standard name
Ci ). |
static javax.measure.Unit<javax.measure.quantity.Time> |
DAY_SIDEREAL
A unit of duration equal to the time required for a complete rotation of
the earth in reference to any star or to the vernal equinox at the
meridian, equal to 23 hours, 56 minutes, 4.09 seconds (standard name
day_sidereal ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Dimensionless> |
DECIBEL
A logarithmic unit used to describe a ratio (standard name
dB ). |
static javax.measure.Unit<javax.measure.quantity.Angle> |
DEGREE_ANGLE
An angle unit accepted for use with SI units (standard name
deg ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Force> |
DYNE
A unit of force equal to
1E-5 N (standard name
dyn ). |
(package private) static javax.measure.Unit<javax.measure.quantity.ElectricCharge> |
E
A unit of electric charge equal to the charge on one electron (standard
name
e ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Mass> |
ELECTRON_MASS
A unit of mass equal to the mass of the electron (standard name
me ). |
static javax.measure.Unit<javax.measure.quantity.Energy> |
ELECTRON_VOLT
An energy unit accepted for use with SI units (standard name
eV ). |
private static double |
ELEMENTARY_CHARGE
Holds the electric charge of one electron.
|
(package private) static javax.measure.Unit<javax.measure.quantity.Energy> |
ERG
A unit of energy equal to
1E-7 J (standard name
erg ). |
(package private) static javax.measure.Unit<javax.measure.quantity.ElectricCharge> |
FARADAY
A unit of electric charge equal to equal to the product of Avogadro's
number (see
Units.MOLE ) and the charge (1 e) on a single electron
(standard name Fd ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Frequency> |
FRAMES_PER_SECOND
A unit used to measure the frequency (rate) at which an imaging device
produces unique consecutive images (standard name
fps ). |
(package private) static javax.measure.Unit<javax.measure.quantity.ElectricCharge> |
FRANKLIN
A unit of electric charge which exerts a force of one dyne on an equal
charge at a distance of one centimeter (standard name
Fr ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Acceleration> |
G
A unit of acceleration equal to the gravity at the earth's surface
(standard name
grav ). |
(package private) static javax.measure.Unit<javax.measure.quantity.MagneticFluxDensity> |
GAUSS
A unit of magnetic flux density equal
1000 A/m (standard
name G ). |
(package private) static javax.measure.Unit<javax.measure.quantity.ElectricCurrent> |
GILBERT
A unit of electric charge equal to the centimeter-gram-second
electromagnetic unit of magnetomotive force, equal to
10/4
πampere-turn (standard name Gi ). |
static javax.measure.Unit<javax.measure.quantity.Area> |
HECTARE
An angle unit accepted for use with SI units (standard name
ha ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Power> |
HORSEPOWER
A unit of power equal to the power required to raise a mass of 75
kilograms at a velocity of 1 meter per second (metric, standard name
hp ). |
static javax.measure.Unit<javax.measure.quantity.Pressure> |
INCH_OF_MERCURY
A unit of pressure equal to the pressure exerted at the Earth's surface
by a column of mercury 1 inch high (standard name
inHg ). |
private static NonSI |
INSTANCE |
(package private) static javax.measure.Unit<javax.measure.quantity.Force> |
KILOGRAM_FORCE
A unit of force equal to
9.80665 N (standard name
kgf ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Illuminance> |
LAMBERT
A unit of illuminance equal to
1E4 Lx (standard name
La ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Length> |
LIGHT_YEAR
A unit of length equal to the distance that light travels in one year
through a vacuum (standard name
ly ). |
(package private) static javax.measure.Unit<javax.measure.quantity.MagneticFlux> |
MAXWELL
A unit of magnetic flux equal
1E-8 Wb (standard name
Mx ). |
static javax.measure.Unit<javax.measure.quantity.Pressure> |
MILLIMETRE_OF_MERCURY
A unit of pressure equal to the pressure exerted at the Earth's surface
by a column of mercury 1 millimeter high (standard name
mmHg
). |
static javax.measure.Unit<javax.measure.quantity.Angle> |
MINUTE_ANGLE
An angle unit accepted for use with SI units (standard name
' ). |
static javax.measure.Unit<javax.measure.quantity.Length> |
PARSEC
A unit of length equal to the distance at which a star would appear to
shift its position by one arcsecond over the course the time (about 3
months) in which the Earth moves a distance of
ASTRONOMICAL_UNIT
in the direction perpendicular to the direction to the star (standard
name pc ). |
static javax.measure.Unit<javax.measure.quantity.Dimensionless> |
PI
A dimensionless unit equals to
pi (standard name
Ï€ ). |
(package private) static javax.measure.Unit<DynamicViscosity> |
POISE
A unit of dynamic viscosity equal to
1 g/(cm·s) (cgs unit). |
(package private) static javax.measure.Unit<javax.measure.quantity.Mass> |
POUND
A unit of mass equal to
453.59237 grams (avoirdupois pound,
standard name lb ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Force> |
POUND_FORCE
|
static javax.measure.Unit<javax.measure.quantity.RadiationDoseAbsorbed> |
RAD
A unit of radiation dose absorbed equal to a dose of 0.01 joule of energy
per kilogram of mass (J/kg) (standard name
rd ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Temperature> |
RANKINE
A unit of temperature equal to
5/9 °K (standard name
°R ). |
static javax.measure.Unit<javax.measure.quantity.RadiationDoseEffective> |
REM
A unit of radiation dose effective equal to
0.01 Sv
(standard name rem ). |
static javax.measure.Unit<javax.measure.quantity.Angle> |
REVOLUTION
A unit of angle equal to a full circle or
2π
(standard name rev ). |
static javax.measure.Unit<IonizingRadiation> |
ROENTGEN
A unit used to measure the ionizing ability of radiation (standard name
Roentgen ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Radioactivity> |
RUTHERFORD
A unit of radioctive activity equal to 1 million radioactive
disintegrations per second (standard name
Rd ). |
static javax.measure.Unit<javax.measure.quantity.Angle> |
SECOND_ANGLE
An angle unit accepted for use with SI units (standard name
'' ). |
(package private) static javax.measure.Unit<javax.measure.quantity.SolidAngle> |
SPHERE
A unit of solid angle equal to
4 π steradians
(standard name sphere ). |
private static int |
STANDARD_GRAVITY_DIVIDEND
Holds the standard gravity constant: 9.80665 m/s² exact.
|
private static int |
STANDARD_GRAVITY_DIVISOR |
(package private) static javax.measure.Unit<KinematicViscosity> |
STOKE
A unit of kinematic viscosity equal to
1 cm²/s (cgs unit). |
private static java.lang.String |
SYSTEM_NAME |
static javax.measure.Unit<javax.measure.quantity.Mass> |
TONNE
A mass unit accepted for use with SI units (standard name
t ). |
static javax.measure.Unit<javax.measure.quantity.Mass> |
UNIFIED_ATOMIC_MASS
A mass unit accepted for use with SI units (standard name
u ). |
static javax.measure.Unit<javax.measure.quantity.Time> |
YEAR_CALENDAR
A unit of duration equal to 365
#DAY (standard name
year ). |
static javax.measure.Unit<javax.measure.quantity.Time> |
YEAR_JULIEN
The Julian year, as used in astronomy and other sciences, is a time unit
defined as exactly 365.25 days.
|
static javax.measure.Unit<javax.measure.quantity.Time> |
YEAR_SIDEREAL
A unit of duration equal to one complete revolution of the earth about
the sun, relative to the fixed stars, or 365 days, 6 hours, 9 minutes,
9.54 seconds (standard name
year_sidereal ). |
Modifier | Constructor and Description |
---|---|
private |
NonSI()
Default constructor (prevents this class from being instantiated).
|
Modifier and Type | Method and Description |
---|---|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit)
Adds a new unit not mapped to any specified quantity type.
|
private static <U extends tec.uom.se.AbstractUnit<?>> |
addUnit(U unit,
java.lang.Class<? extends javax.measure.Quantity<?>> type)
Adds a new unit and maps it to the specified quantity type.
|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit,
java.lang.String name,
java.lang.String text)
Adds a new unit not mapped to any specified quantity type and puts a text
as symbol or label.
|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit,
java.lang.String name,
java.lang.String text,
boolean isLabel)
Adds a new unit not mapped to any specified quantity type and puts a text
as symbol or label.
|
static NonSI |
getInstance()
Returns the unique instance of this class.
|
java.lang.String |
getName() |
private static final java.lang.String SYSTEM_NAME
private static final int STANDARD_GRAVITY_DIVIDEND
private static final int STANDARD_GRAVITY_DIVISOR
static final int AVOIRDUPOIS_POUND_DIVIDEND
static final int AVOIRDUPOIS_POUND_DIVISOR
private static final double AVOGADRO_CONSTANT
private static final double ELEMENTARY_CHARGE
private static final NonSI INSTANCE
public static final javax.measure.Unit<javax.measure.quantity.Angle> DEGREE_ANGLE
deg
).public static final javax.measure.Unit<javax.measure.quantity.Angle> MINUTE_ANGLE
'
).public static final javax.measure.Unit<javax.measure.quantity.Angle> SECOND_ANGLE
''
).public static final javax.measure.Unit<javax.measure.quantity.Mass> TONNE
t
).public static final javax.measure.Unit<javax.measure.quantity.Energy> ELECTRON_VOLT
eV
). The electronvolt is the kinetic energy acquired by an
electron passing through a potential difference of 1 V in vacuum. The
value must be obtained by experiment, and is therefore not known exactly.public static final javax.measure.Unit<javax.measure.quantity.Mass> UNIFIED_ATOMIC_MASS
u
). The unified atomic mass unit is equal to 1/12 of the
mass of an unbound atom of the nuclide 12C, at rest and in its ground
state. The value must be obtained by experiment, and is therefore not
known exactly.public static final javax.measure.Unit<javax.measure.quantity.Length> ASTRONOMICAL_UNIT
UA
). The astronomical unit is a unit of length. Its value is
such that, when used to describe the motion of bodies in the solar
system, the heliocentric gravitation constant is (0.017 202 098 95)2
ua3·d-2. The value must be obtained by experiment, and is therefore not
known exactly.public static final javax.measure.Unit<javax.measure.quantity.Area> HECTARE
ha
).public static final javax.measure.Unit<javax.measure.quantity.Dimensionless> PI
pi
(standard name
Ï€
).static final javax.measure.Unit<javax.measure.quantity.Dimensionless> DECIBEL
dB
).public static final javax.measure.Unit<javax.measure.quantity.AmountOfSubstance> ATOM
atom
).public static final javax.measure.Unit<javax.measure.quantity.Length> ANGSTROM
1E-10 m
(standard name
Ångström
).static final javax.measure.Unit<javax.measure.quantity.Length> LIGHT_YEAR
ly
).public static final javax.measure.Unit<javax.measure.quantity.Length> PARSEC
ASTRONOMICAL_UNIT
in the direction perpendicular to the direction to the star (standard
name pc
).public static final javax.measure.Unit<javax.measure.quantity.Time> DAY_SIDEREAL
day_sidereal
).public static final javax.measure.Unit<javax.measure.quantity.Time> YEAR_CALENDAR
#DAY
(standard name
year
).public static final javax.measure.Unit<javax.measure.quantity.Time> YEAR_SIDEREAL
year_sidereal
).public static final javax.measure.Unit<javax.measure.quantity.Time> YEAR_JULIEN
static final javax.measure.Unit<javax.measure.quantity.Mass> ATOMIC_MASS
u
).static final javax.measure.Unit<javax.measure.quantity.Mass> ELECTRON_MASS
me
).static final javax.measure.Unit<javax.measure.quantity.Mass> POUND
453.59237 grams
(avoirdupois pound,
standard name lb
).static final javax.measure.Unit<javax.measure.quantity.ElectricCharge> E
e
).static final javax.measure.Unit<javax.measure.quantity.ElectricCharge> FARADAY
Units.MOLE
) and the charge (1 e) on a single electron
(standard name Fd
).static final javax.measure.Unit<javax.measure.quantity.ElectricCharge> FRANKLIN
Fr
).static final javax.measure.Unit<javax.measure.quantity.Temperature> RANKINE
5/9 °K
(standard name
°R
).public static final javax.measure.Unit<javax.measure.quantity.Angle> REVOLUTION
2π
Units.RADIAN
(standard name rev
).static final javax.measure.Unit<javax.measure.quantity.Speed> C
c
).static final javax.measure.Unit<javax.measure.quantity.Acceleration> G
grav
).static final javax.measure.Unit<javax.measure.quantity.Area> ARE
100 m²
(standard name a
).static final javax.measure.Unit<javax.measure.quantity.ElectricCurrent> GILBERT
10/4
πampere-turn
(standard name Gi
).static final javax.measure.Unit<javax.measure.quantity.Energy> ERG
1E-7 J
(standard name
erg
).static final javax.measure.Unit<javax.measure.quantity.Illuminance> LAMBERT
1E4 Lx
(standard name
La
).static final javax.measure.Unit<javax.measure.quantity.MagneticFlux> MAXWELL
1E-8 Wb
(standard name
Mx
).static final javax.measure.Unit<javax.measure.quantity.MagneticFluxDensity> GAUSS
1000 A/m
(standard
name G
).static final javax.measure.Unit<javax.measure.quantity.Force> DYNE
1E-5 N
(standard name
dyn
).static final javax.measure.Unit<javax.measure.quantity.Force> KILOGRAM_FORCE
9.80665 N
(standard name
kgf
).static final javax.measure.Unit<javax.measure.quantity.Force> POUND_FORCE
static final javax.measure.Unit<javax.measure.quantity.Power> HORSEPOWER
hp
).static final javax.measure.Unit<javax.measure.quantity.Pressure> ATMOSPHERE
atm
).public static final javax.measure.Unit<javax.measure.quantity.Pressure> BAR
100 kPa
(standard name
bar
).public static final javax.measure.Unit<javax.measure.quantity.Pressure> MILLIMETRE_OF_MERCURY
mmHg
).public static final javax.measure.Unit<javax.measure.quantity.Pressure> INCH_OF_MERCURY
inHg
).public static final javax.measure.Unit<javax.measure.quantity.RadiationDoseAbsorbed> RAD
rd
).public static final javax.measure.Unit<javax.measure.quantity.RadiationDoseEffective> REM
0.01 Sv
(standard name rem
).static final javax.measure.Unit<javax.measure.quantity.Radioactivity> CURIE
Ci
).static final javax.measure.Unit<javax.measure.quantity.Radioactivity> RUTHERFORD
Rd
).static final javax.measure.Unit<javax.measure.quantity.SolidAngle> SPHERE
4 π steradians
(standard name sphere
).static final javax.measure.Unit<DynamicViscosity> POISE
1 g/(cm·s)
(cgs unit).static final javax.measure.Unit<KinematicViscosity> STOKE
1 cm²/s
(cgs unit).static final javax.measure.Unit<javax.measure.quantity.Frequency> FRAMES_PER_SECOND
fps
).public static final javax.measure.Unit<IonizingRadiation> ROENTGEN
Roentgen
).private NonSI()
public static NonSI getInstance()
public java.lang.String getName()
getName
in interface javax.measure.spi.SystemOfUnits
getName
in interface tec.uom.lib.common.function.Nameable
getName
in class tec.uom.se.AbstractSystemOfUnits
private static <U extends javax.measure.Unit<?>> U addUnit(U unit)
unit
- the unit being added.unit
.private static <U extends tec.uom.se.AbstractUnit<?>> U addUnit(U unit, java.lang.Class<? extends javax.measure.Quantity<?>> type)
unit
- the unit being added.type
- the quantity type.unit
.private static <U extends javax.measure.Unit<?>> U addUnit(U unit, java.lang.String name, java.lang.String text, boolean isLabel)
unit
- the unit being added.name
- the string to use as nametext
- the string to use as label or symbolisLabel
- if the string should be used as a label or notunit
.private static <U extends javax.measure.Unit<?>> U addUnit(U unit, java.lang.String name, java.lang.String text)
unit
- the unit being added.name
- the string to use as nametext
- the string to use as labelunit
.