Jeospace API

org.jeospace.measure
Class Mult

java.lang.Object
  extended byorg.jeospace.measure.Mult
All Implemented Interfaces:
java.lang.Comparable

public class Mult
extends java.lang.Object
implements java.lang.Comparable

An immutable object that provides exponents, values, symbols and prefixes of multipliers as defined in the International System ( SI ). [reference: http://physics.nist.gov/cuu/Units/prefixes.html]

SI ( International System ) Multipliers

	Prefix	Symbol	Multiplier

	yotta	Y	x10^24
	zeta	Z	x10^21
	exa	E	x10^18
	peta 	P	x10^15
	tera	T	x10^12
	giga	G	x10^9
	mega	M	x10^6
	kilo	k	x10^3
	hecto 	h	x10^2
	deka	da	x10

	deci	d	x10^-1
	centi	c	x10^-2
	milli	m	x10^-3
	micro	u	x10^-6
	nano	n	x10^-9
	pico	p	x10^-12
	femto	f	x10^-15
	atto	a	x10^-18
	zepto	z	x10^-21
	yocto	y	x10^-24
 

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

Field Summary
static Mult ATTO
          Constant - atto (a) = 10^-18
static Mult CENTI
          Constant - centi (c) = 10^-2
static Mult DECI
          Constant - deci (d) = 10^-1
static Mult DEKA
          Constant - deka (da) = 10
static Mult EXA
          Constant - exa (E) = 10^18
 int exponent
          The exponent of the multiplier
static Mult FEMTO
          Constant - femto (f) = 10^-15
static Mult GIGA
          Constant - giga (G) = 10^9
static Mult HECTO
          Constant - hecto (h) = 10^2
static Mult KILO
          Constant - kilo (k) = 10^3
static Mult MEGA
          Constant - mega (M) = 10^6
static Mult MICRO
          Constant - micro (µ) = 10^-6
static Mult MILLI
          Constant - milli (m) = 10^-3
static Mult NANO
          Constant - nano (n) = 10^-9
static Mult NONE
          Constant - no multiplier, = 1
static Mult PETA
          Constant - peta (P) = 10^15
static Mult PICO
          Constant - pico (p) = 10^-12
 java.lang.String prefix
          The prefix of the multiplier
 java.lang.String symbol
          The symbol of the multiplier
static Mult TERA
          Constant - tera (T) = 10^12
 double value
          The value of the multiplier
static Mult YOCTO
          Constant - yocto (y) = 10^-24
static Mult YOTTA
          Constant - yotta (Y) = 10^24
static Mult ZEPTO
          Constant - zepto (z) = 10^-21
static Mult ZETA
          Constant - zeta (Z) = 10^21
 
Constructor Summary
protected Mult(int exponent, java.lang.String symbol, java.lang.String prefix)
          Construct an Mult object.
 
Method Summary
 int compareTo(Mult that)
          Compare this object with the argument for order.
 int compareTo(java.lang.Object obj)
          Compare this object with the argument for order.
static Mult[] getSIMultipliers()
          Return an array of the defined Mult objects
 java.lang.String toString()
          Return a String representation ( the prefix String ) of this Mult object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exponent

public final int exponent
The exponent of the multiplier


value

public final double value
The value of the multiplier


symbol

public final java.lang.String symbol
The symbol of the multiplier


prefix

public final java.lang.String prefix
The prefix of the multiplier


YOTTA

public static final Mult YOTTA
Constant - yotta (Y) = 10^24


ZETA

public static final Mult ZETA
Constant - zeta (Z) = 10^21


EXA

public static final Mult EXA
Constant - exa (E) = 10^18


PETA

public static final Mult PETA
Constant - peta (P) = 10^15


TERA

public static final Mult TERA
Constant - tera (T) = 10^12


GIGA

public static final Mult GIGA
Constant - giga (G) = 10^9


MEGA

public static final Mult MEGA
Constant - mega (M) = 10^6


KILO

public static final Mult KILO
Constant - kilo (k) = 10^3


HECTO

public static final Mult HECTO
Constant - hecto (h) = 10^2


DEKA

public static final Mult DEKA
Constant - deka (da) = 10


NONE

public static final Mult NONE
Constant - no multiplier, = 1


DECI

public static final Mult DECI
Constant - deci (d) = 10^-1


CENTI

public static final Mult CENTI
Constant - centi (c) = 10^-2


MILLI

public static final Mult MILLI
Constant - milli (m) = 10^-3


MICRO

public static final Mult MICRO
Constant - micro (µ) = 10^-6


NANO

public static final Mult NANO
Constant - nano (n) = 10^-9


PICO

public static final Mult PICO
Constant - pico (p) = 10^-12


FEMTO

public static final Mult FEMTO
Constant - femto (f) = 10^-15


ATTO

public static final Mult ATTO
Constant - atto (a) = 10^-18


ZEPTO

public static final Mult ZEPTO
Constant - zepto (z) = 10^-21


YOCTO

public static final Mult YOCTO
Constant - yocto (y) = 10^-24

Constructor Detail

Mult

protected Mult(int exponent,
               java.lang.String symbol,
               java.lang.String prefix)
Construct an Mult object.

Parameters:
exponent - The multiplier's exponent value
symbol - The multiplier's symbol
prefix - The multiplier's prefix
Method Detail

getSIMultipliers

public static Mult[] getSIMultipliers()
Return an array of the defined Mult objects

Returns:
the array of the defined Mult objects

toString

public java.lang.String toString()
Return a String representation ( the prefix String ) of this Mult object.

Returns:
a String representation of this Mult object

compareTo

public int compareTo(Mult that)
Compare this object with the argument for order.

Parameters:
that - The Mult to compare
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

compareTo

public int compareTo(java.lang.Object obj)
Compare this object with the argument for order.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - The Object to compare
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
ClassCastException - if the argument is not an Mult.

Jeospace API

Copyright © 2006 - jeospace.org