Ampere, Angstrom, Bar, Barye, BohrRadius, Calorie, Candela, CompoundUnit, Coulomb, Count, CubicCentimeter, CubicMeter, Dalton, Debye, Decimal, Degree, Dyne, Electron, ElectronVolt, Erg, Gram, Hartree, Hertz, Joule, Kelvin, Liter, LJ.LJUnit, Meter, Mole, Newton, Pascal, Percent, Picosecond, Pixel, Poise, PrefixedUnit, Radian, Second, SimpleUnit, Statcoulomb, UnitRatio, Volt, Wattpublic interface Unit
| Modifier and Type | Method | Description |
|---|---|---|
Dimension |
dimension() |
Returns the dimension of the unit.
|
double |
fromSim(double x) |
Takes the given value in simulation units and converts it to class units (considering prefix).
|
boolean |
prefixAllowed() |
Indicates if the unit is appropriate for use with a prefix.
|
java.lang.String |
symbol() |
Returns the symbol of unit, such as "g" for grams.
|
double |
toSim(double x) |
Takes the given value in class units (considering prefix) and converts it to simulation units.
|
Dimension dimension()
double toSim(double x)
x - a value in units of the classdouble fromSim(double x)
x - a value in simulation unitsjava.lang.String symbol()
boolean prefixAllowed()