| java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.Unit gnu.math.NamedUnit gnu.math.BaseUnit
BaseUnit | public class BaseUnit extends NamedUnit implements Externalizable(Code) | | A primitive Unit of measurement (such as a meter).
author: Per Bothner |
Field Summary | |
static int | base_count BaseUnits are numberd with globally unique indexes. | String | dimension The name of the "dimension" this is a base unit for. | int | index This is an index in the bases array.
The index may change if there are insertions in bases. |
base_count | static int base_count(Code) | | BaseUnits are numberd with globally unique indexes.
|
dimension | String dimension(Code) | | The name of the "dimension" this is a base unit for.
|
index | int index(Code) | | This is an index in the bases array.
The index may change if there are insertions in bases.
|
BaseUnit | public BaseUnit()(Code) | | Should only be used for serialization, and Unit.Empty.
|
hashCode | public int hashCode()(Code) | | |
init | protected void init()(Code) | | |
lookup | public static BaseUnit lookup(String name, String dimension)(Code) | | Look for an existing matching BaseUnit.
Parameters: name - name of desired BaseUnit, such as "m" Parameters: dimension - a name for what the unit measures, such as "Length". |
Methods inherited from gnu.math.Unit | public static Unit define(String name, DQuantity value)(Code)(Java Doc) public static Unit define(String name, double factor, Unit base)(Code)(Java Doc) final public Dimensions dimensions()(Code)(Java Doc) public static Unit divide(Unit unit1, Unit unit2)(Code)(Java Doc) final public double doubleValue()(Code)(Java Doc) public String getName()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isExact()(Code)(Java Doc) final public boolean isZero()(Code)(Java Doc) public static NamedUnit lookup(String name)(Code)(Java Doc) public static NamedUnit make(String name, Quantity value)(Code)(Java Doc) public Complex number()(Code)(Java Doc) public static Unit pow(Unit unit, int power)(Code)(Java Doc) public Numeric power(IntNum y)(Code)(Java Doc) public Unit sqrt()(Code)(Java Doc) static Unit times(Unit unit1, int power1, Unit unit2, int power2)(Code)(Java Doc) public static Unit times(Unit unit1, Unit unit2)(Code)(Java Doc) public String toString(double val)(Code)(Java Doc) public String toString(RealNum val)(Code)(Java Doc) public String toString()(Code)(Java Doc) public Unit unit()(Code)(Java Doc)
|
Methods inherited from gnu.math.Quantity | public Numeric abs()(Code)(Java Doc) public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc) public Numeric add(Object y, int k)(Code)(Java Doc) public Numeric addReversed(Numeric x, int k)(Code)(Java Doc) public static int compare(Quantity x, Quantity y)(Code)(Java Doc) public int compare(Object obj)(Code)(Java Doc) public int compareReversed(Numeric x)(Code)(Java Doc) public Dimensions dimensions()(Code)(Java Doc) public Numeric div(Object y)(Code)(Java Doc) public Numeric divReversed(Numeric x)(Code)(Java Doc) public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc) public double doubleImagValue()(Code)(Java Doc) public double doubleValue()(Code)(Java Doc) public RealNum im()(Code)(Java Doc) final public double imValue()(Code)(Java Doc) public static Quantity make(Complex x, Unit u)(Code)(Java Doc) public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc) public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc) public Numeric mul(Object y)(Code)(Java Doc) public Numeric mulReversed(Numeric x)(Code)(Java Doc) public Numeric neg()(Code)(Java Doc) abstract public Complex number()(Code)(Java Doc) public RealNum re()(Code)(Java Doc) final public double reValue()(Code)(Java Doc) public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc) public String toString(int radix)(Code)(Java Doc) public Unit unit()(Code)(Java Doc)
|
|
|