public class SimpleUnit
implements Unit, java.io.Serializable
Superclass for all base unit classes. These classes provide a means for
indicating the physical units of a given quantity, and present methods for
converting between units. A BaseUnit can be used as is, or combined with a
Prefix to form a PrefixedUnit. Units are employed by I/O classes (usually a
Device or Display) to handle unit conversions and labeling of graphic
By convention, each subclass of any base unit will contain a static field
named UNIT, which is a handle to an instance of that unit. One can access an
instance of any unit class through this static member.
Each general base unit type (i.e., dimension) is defined as an abstract
class. Each of these abstract classes contains an inner static subclass
(named Sim) that defines the unit as derived from the basic simulation units
(Dalton-A-ps) Thus an instance of the base simulation units for any
dimensioned quantity can be accessed by the handle BaseUnit.Energy.Sim.UNIT
(e.g. for the energy unit).
Returns flag indicating whether a prefix is allowed with this unit. Some
units (such as Angstroms) are not normally defined with a prefix
attached, and for such units this flag can be set to false to prohibit
the application of a prefix. This indication is usually made in the
constructor of the base unit class.