Jeospace API

org.jeospace.measure
Class MassUnit

java.lang.Object
  extended byorg.jeospace.measure.MassUnit

public class MassUnit
extends java.lang.Object

Constant object identifiers for the units of mass as represented by Mass objects.

For reference see:
http://ts.nist.gov/ts/htdocs/230/235/h4402/appenc.pdf
which contains values and conversion factors for many non-SI forms of measurement.

http://www.unc.edu/~rowlett/units/index.html
which contains values and anecdotal information on many forms of measurement

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
Mass

Field Summary
static MassUnit APOTHECARY_DRAM
          Unit identifier - APOTHECARY_DRAM = 3 Scruples
static MassUnit APOTHECARY_OUNCE
          Unit identifier - APOTHECARY_OUNCE = 8 Drams
static MassUnit APOTHECARY_POUND
          Unit identifier - APOTHECARY_POUND = 12 Ounces
static MassUnit APOTHECARY_SCRUPLE
          Unit identifier - APOTHECARY_SCRUPLE = 20 Grains
static MassUnit AVOIRDUPOIS_DRAM
          Unit identifier - AVOIRDUPOIS_DRAM = 27.34375 Grains
static MassUnit AVOIRDUPOIS_OUNCE
          Unit identifier - AVOIRDUPOIS_OUNCE = 16 Drams = 437.5 Grains
static MassUnit AVOIRDUPOIS_POUND
          Unit identifier - AVOIRDUPOIS_POUND = 16 Ounces = 7000 Grains
static MassUnit CARAT
          Unit identifier - CARAT = 0.2 Grams
static MassUnit GRAIN
          Unit identifier - GRAIN
static MassUnit GRAM
          Unit identifier - GRAM
 double grams
          The value of the unit of mass in SI units (grams)
static MassUnit LONG_HUNDREDWEIGHT
          Unit identifier - LONG_HUNDREDWEIGHT = 4 Quarters = 8 Stone = 112 Pounds
static MassUnit LONG_TON
          Unit identifier - LONG_TON = 20 Long Hundredweights = 2240 Pounds
 java.lang.String name
          The name of the unit of mass
static MassUnit QUARTER
          Unit identifier - QUARTER = 2 Stone
static MassUnit SHORT_HUNDREDWEIGHT
          Unit identifier - SHORT_HUNDREDWEIGHT = 100 Pounds
static MassUnit SHORT_TON
          Unit identifier - SHORT_TON = 20 Hundredweights = 2000 Pounds
static MassUnit SLUG
          Unit identifier - SLUG
static MassUnit STONE
          Unit identifier - STONE = 14 Pounds
 java.lang.String symbol
          The symbol of the unit of mass
static MassUnit TONNE
          Unit identifier - TONNE = 1000 kilograms
static MassUnit TROY_OUNCE
          Unit identifier - TROY_OUNCE = 20 Pennyweights = APOTHECARY_OUNCE
static MassUnit TROY_PENNYWEIGHT
          Unit identifier - TROY_PENNYWEIGHT = 24 Grains
static MassUnit TROY_POUND
          Unit identifier - TROY_POUND = 12 Ounces = APOTHECARY_POUND
 
Constructor Summary
protected MassUnit(java.lang.String name, java.lang.String symbol, double grams)
          Construct a MassUnit object.
 
Method Summary
static MassUnit[] getMassUnits()
          Return an array of the defined MassUnit objects
 java.lang.String toString()
          Return a String representation ( the name String ) of this MassUnit object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRAM

public static final MassUnit GRAM
Unit identifier - GRAM


TONNE

public static final MassUnit TONNE
Unit identifier - TONNE = 1000 kilograms


SLUG

public static final MassUnit SLUG
Unit identifier - SLUG


GRAIN

public static final MassUnit GRAIN
Unit identifier - GRAIN


AVOIRDUPOIS_DRAM

public static final MassUnit AVOIRDUPOIS_DRAM
Unit identifier - AVOIRDUPOIS_DRAM = 27.34375 Grains


AVOIRDUPOIS_OUNCE

public static final MassUnit AVOIRDUPOIS_OUNCE
Unit identifier - AVOIRDUPOIS_OUNCE = 16 Drams = 437.5 Grains


AVOIRDUPOIS_POUND

public static final MassUnit AVOIRDUPOIS_POUND
Unit identifier - AVOIRDUPOIS_POUND = 16 Ounces = 7000 Grains


SHORT_HUNDREDWEIGHT

public static final MassUnit SHORT_HUNDREDWEIGHT
Unit identifier - SHORT_HUNDREDWEIGHT = 100 Pounds


SHORT_TON

public static final MassUnit SHORT_TON
Unit identifier - SHORT_TON = 20 Hundredweights = 2000 Pounds


STONE

public static final MassUnit STONE
Unit identifier - STONE = 14 Pounds


QUARTER

public static final MassUnit QUARTER
Unit identifier - QUARTER = 2 Stone


LONG_HUNDREDWEIGHT

public static final MassUnit LONG_HUNDREDWEIGHT
Unit identifier - LONG_HUNDREDWEIGHT = 4 Quarters = 8 Stone = 112 Pounds


LONG_TON

public static final MassUnit LONG_TON
Unit identifier - LONG_TON = 20 Long Hundredweights = 2240 Pounds


APOTHECARY_SCRUPLE

public static final MassUnit APOTHECARY_SCRUPLE
Unit identifier - APOTHECARY_SCRUPLE = 20 Grains


APOTHECARY_DRAM

public static final MassUnit APOTHECARY_DRAM
Unit identifier - APOTHECARY_DRAM = 3 Scruples


APOTHECARY_OUNCE

public static final MassUnit APOTHECARY_OUNCE
Unit identifier - APOTHECARY_OUNCE = 8 Drams


APOTHECARY_POUND

public static final MassUnit APOTHECARY_POUND
Unit identifier - APOTHECARY_POUND = 12 Ounces


TROY_PENNYWEIGHT

public static final MassUnit TROY_PENNYWEIGHT
Unit identifier - TROY_PENNYWEIGHT = 24 Grains


TROY_OUNCE

public static final MassUnit TROY_OUNCE
Unit identifier - TROY_OUNCE = 20 Pennyweights = APOTHECARY_OUNCE


TROY_POUND

public static final MassUnit TROY_POUND
Unit identifier - TROY_POUND = 12 Ounces = APOTHECARY_POUND


CARAT

public static final MassUnit CARAT
Unit identifier - CARAT = 0.2 Grams


name

public final java.lang.String name
The name of the unit of mass


symbol

public final java.lang.String symbol
The symbol of the unit of mass


grams

public final double grams
The value of the unit of mass in SI units (grams)

Constructor Detail

MassUnit

protected MassUnit(java.lang.String name,
                   java.lang.String symbol,
                   double grams)
Construct a MassUnit object.

Parameters:
name - the unit of mass's identifier
symbol - the unit of mass's symbol
grams - the unit of mass's value in grams
Method Detail

getMassUnits

public static MassUnit[] getMassUnits()
Return an array of the defined MassUnit objects

Returns:
the array of the defined MassUnit objects

toString

public java.lang.String toString()
Return a String representation ( the name String ) of this MassUnit object.

Returns:
a String representation of this MassUnit object

Jeospace API

Copyright © 2006 - jeospace.org