Jeospace API

org.jeospace.measure
Class LengthUnit

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

public class LengthUnit
extends java.lang.Object

Constant object identifiers for the units of linear measure as represented by Length 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:
Length

Field Summary
static LengthUnit AU
          Constant identifier for astronomical units.
static LengthUnit FOOT
          Constant identifier for units of feet.
static LengthUnit INCH
          Constant identifier for units of inches.
static LengthUnit LIGHTSECOND
          Constant identifier for units of lightseconds.
static LengthUnit LIGHTYEAR
          Constant identifier for units of lightyears.
static LengthUnit METER
          Constant identifier for units of meters.
 double meters
          The value of the unit of length in SI units (meters)
static LengthUnit MILE
          Constant identifier for units of miles.
 java.lang.String name
          The name of the unit of length
static LengthUnit NAUTICAL_MILE
          Constant identifier for units of nautical miles.
static LengthUnit PARSEC
          Constant identifier for units of parsecs.
 java.lang.String symbol
          The symbol of the unit of length
static LengthUnit YARD
          Constant identifier for units of yards.
 
Constructor Summary
protected LengthUnit(java.lang.String name, java.lang.String symbol, double meters)
          Construct a LengthUnit object.
 
Method Summary
static LengthUnit[] getLengthUnits()
          Return an array of the defined LengthUnit objects
 java.lang.String toString()
          Return a String representation ( the name String ) of this LengthUnit object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METER

public static final LengthUnit METER
Constant identifier for units of meters.


INCH

public static final LengthUnit INCH
Constant identifier for units of inches.


FOOT

public static final LengthUnit FOOT
Constant identifier for units of feet.
FOOT = 12 inches


YARD

public static final LengthUnit YARD
Constant identifier for units of yards.
YARD = 3 feet


MILE

public static final LengthUnit MILE
Constant identifier for units of miles.
MILE = 1760 yards


NAUTICAL_MILE

public static final LengthUnit NAUTICAL_MILE
Constant identifier for units of nautical miles.


LIGHTSECOND

public static final LengthUnit LIGHTSECOND
Constant identifier for units of lightseconds.
reference: http://physics.nist.gov/cgi-bin/cuu/Value?c|search_for=nonsi_in!
reference: http://en.wikipedia.org/wiki/Speed_of_light


LIGHTYEAR

public static final LengthUnit LIGHTYEAR
Constant identifier for units of lightyears.
LIGHTYEAR = LightSecond * 31556925.9747 (s/yr)
reference: http://www.unc.edu/~rowlett/units/index.html
reference: http://en.wikipedia.org/wiki/Light_year


AU

public static final LengthUnit AU
Constant identifier for astronomical units.
or: http://www.unc.edu/~rowlett/units/index.html
reference: http://en.wikipedia.org/wiki/Astronomical_unit


PARSEC

public static final LengthUnit PARSEC
Constant identifier for units of parsecs.
PARSEC = 3.261631 * LightYear
reference: http://www.unc.edu/~rowlett/units/index.html
reference: http://en.wikipedia.org/wiki/Parsec


name

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


symbol

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


meters

public final double meters
The value of the unit of length in SI units (meters)

Constructor Detail

LengthUnit

protected LengthUnit(java.lang.String name,
                     java.lang.String symbol,
                     double meters)
Construct a LengthUnit object.

Parameters:
name - the unit of length's identifier
symbol - the unit of length's symbol
meters - the unit of length's value in meters
Method Detail

getLengthUnits

public static LengthUnit[] getLengthUnits()
Return an array of the defined LengthUnit objects

Returns:
the array of the defined LengthUnit objects

toString

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

Returns:
a String representation of this LengthUnit object

Jeospace API

Copyright © 2006 - jeospace.org