All Packages Class Hierarchy This Package Previous Next Index
Class units.UnitAtom
java.lang.Object
|
+----units.Unit
|
+----units.UnitAtom
- public class UnitAtom
- extends Unit
This class is a specialization of class Unit
. Every
instance of this class is stored in a static table or
database. Definition and retreival of unit atoms are performed by
static member functions. This class is rarely used directly by the
programmer but is essential for the unit parser.
- Version:
- $Id: UnitAtom.java,v 1.3 1998/09/02 17:30:11 schadow Exp $
- Author:
- Gunther Schadow
-
METRIC
-
-
NONMETRIC
-
-
UnitAtom(String)
- Instantiate a known UnitAtom from its name;.
-
UnitAtom(String, double, Dimension)
-
-
UnitAtom(String, double, Dimension, boolean)
-
-
UnitAtom(String, double, Dimension, Function, double)
-
-
UnitAtom(String, Unit)
- Define a new UnitAtom name as <nu, u_vec>.
-
UnitAtom(String, Unit, Function, double)
-
-
UnitAtom(String, Unit, Function, double, boolean)
-
-
assign(Unit)
- Sets this unit to be equal to another unit u.
-
clone()
-
-
dump()
-
-
forDimension(Dimension)
- Get a coherent Unit for dimension d
-
isDefined(String)
- Tests if the units atom name is defined.
-
isMetric()
- Tests if the units atom is metric.
METRIC
public static final boolean METRIC
NONMETRIC
public static final boolean NONMETRIC
UnitAtom
public UnitAtom(String _name,
double _nu,
Dimension _u_vec,
Function _cnv,
double _cnv_pfx)
UnitAtom
public UnitAtom(String _name,
double _nu,
Dimension _u_vec,
boolean _metric)
UnitAtom
public UnitAtom(String _name,
double _nu,
Dimension _u_vec)
UnitAtom
public UnitAtom(String _name,
Unit u)
- Define a new UnitAtom name as <nu, u_vec>.
UnitAtom
public UnitAtom(String _name,
Unit u,
Function _cnv,
double _cnv_pfx)
UnitAtom
public UnitAtom(String _name,
Unit u,
Function _cnv,
double _cnv_pfx,
boolean _metric)
UnitAtom
public UnitAtom(String s)
- Instantiate a known UnitAtom from its name;.
assign
public Unit assign(Unit u)
- Sets this unit to be equal to another unit u.
- Overrides:
- assign in class Unit
clone
public Object clone()
- Overrides:
- clone in class Unit
isDefined
public static boolean isDefined(String s)
- Tests if the units atom name is defined.
isMetric
public boolean isMetric()
- Tests if the units atom is metric.
forDimension
public static UnitAtom forDimension(Dimension d)
- Get a coherent Unit for dimension d
- Returns:
- the unit atom or null if no such atom defined
dump
public void dump()
- Overrides:
- dump in class Unit
All Packages Class Hierarchy This Package Previous Next Index