public final class CGS
extends tec.uom.se.AbstractSystemOfUnits
This class contains the centimetre–gram–second system of units.
This class is not intended to be implemented by clients.
Modifier and Type | Field and Description |
---|---|
(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> |
BARYE
The barye (symbol:
Ba ), or sometimes barad, barrie, bary,
baryd, baryed, or barie, is the centimetre–gram–second (CGS) unit of
pressure. |
static javax.measure.Unit<javax.measure.quantity.Length> |
CENTIMETRE
A unit of length equal to
1/100 of metre (standard name
cm ). |
static javax.measure.Unit<javax.measure.quantity.Speed> |
CENTIMETRE_PER_SECOND
A unit of velocity (cgs unit, standard name
cm/s ). |
static javax.measure.Unit<javax.measure.quantity.Force> |
DYNE
A unit of force equal to
1E-5 N (standard name
dyn ). |
static javax.measure.Unit<javax.measure.quantity.Energy> |
ERG
A unit of energy equal to
1E-7 J (standard name
erg ). |
static javax.measure.Unit<javax.measure.quantity.Power> |
ERG_PER_SECOND
A unit of power (cgs unit, standard name
erg/s ). |
static javax.measure.Unit<javax.measure.quantity.Acceleration> |
GAL
A unit of acceleration (cgs unit, standard name
Gal ). |
static javax.measure.Unit<javax.measure.quantity.Mass> |
GRAM
A unit of mass equal to 1/12 the mass of the carbon-12 atom (standard
name
g ). |
private static CGS |
INSTANCE |
static javax.measure.Unit<si.uom.quantity.KinematicViscosity> |
KAYSER
A unit of wavenumber equal to
1/cm (cgs unit,
standard name cm⁻¹ ). |
static javax.measure.Unit<si.uom.quantity.DynamicViscosity> |
POISE
A unit of dynamic viscosity equal to
1 g/(cm·s) (cgs unit
standard name P . |
static javax.measure.Unit<javax.measure.quantity.Time> |
SECOND
The SI base unit for duration quantities (standard name
s ). |
static javax.measure.Unit<si.uom.quantity.KinematicViscosity> |
STOKES
A unit of kinematic viscosity equal to
1 cm²/s (cgs unit,
standard name St ). |
private static java.lang.String |
SYSTEM_NAME |
Modifier | Constructor and Description |
---|---|
private |
CGS()
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 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 CGS |
getInstance()
Returns the unique instance of this class.
|
java.lang.String |
getName() |
private static final java.lang.String SYSTEM_NAME
static final int AVOIRDUPOIS_POUND_DIVIDEND
static final int AVOIRDUPOIS_POUND_DIVISOR
private static final CGS INSTANCE
public static final javax.measure.Unit<javax.measure.quantity.Length> CENTIMETRE
1/100 of metre
(standard name
cm
).public static final javax.measure.Unit<javax.measure.quantity.Mass> GRAM
g
).public static final javax.measure.Unit<javax.measure.quantity.Time> SECOND
s
).
It is defined as the duration of 9,192,631,770 cycles of radiation
corresponding to the transition between two hyperfine levels of the
ground state of cesium (1967 Standard).public static final javax.measure.Unit<javax.measure.quantity.Speed> CENTIMETRE_PER_SECOND
cm/s
).public static final javax.measure.Unit<javax.measure.quantity.Acceleration> GAL
Gal
).public static final javax.measure.Unit<javax.measure.quantity.Energy> ERG
1E-7 J
(standard name
erg
).public static final javax.measure.Unit<javax.measure.quantity.Force> DYNE
1E-5 N
(standard name
dyn
).public static final javax.measure.Unit<javax.measure.quantity.Power> ERG_PER_SECOND
erg/s
).public static final javax.measure.Unit<javax.measure.quantity.Pressure> BARYE
Ba
), or sometimes barad, barrie, bary,
baryd, baryed, or barie, is the centimetre–gram–second (CGS) unit of
pressure. It is equal to 1 dyne per square centimetre.
1 Ba = 0.1 Pa = 1×10−6 bar = 1×10−4 pieze = 0.1 N/m2 = 1 g⋅cm−1⋅s−2
public static final javax.measure.Unit<si.uom.quantity.DynamicViscosity> POISE
1 g/(cm·s)
(cgs unit
standard name P
.public static final javax.measure.Unit<si.uom.quantity.KinematicViscosity> STOKES
1 cm²/s
(cgs unit,
standard name St
).public static final javax.measure.Unit<si.uom.quantity.KinematicViscosity> KAYSER
1/cm
(cgs unit,
standard name cm⁻¹
).private CGS()
public static CGS 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 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
.