Jeospace API

org.jeospace.measure.angle
Class DecimalAngleUnit

java.lang.Object
  extended byorg.jeospace.measure.angle.DecimalAngleUnit
All Implemented Interfaces:
AngleUnit

public class DecimalAngleUnit
extends java.lang.Object
implements AngleUnit

DecimalAngleUnit provides constant object identifiers for the commonly used decimal representations of Angle's.

The DecimalAngleUnits DEGREES and HOURS are distinguished from the cooresponding SexagesimalAngleUnits of the same names by their usage.

Angle constructors and methods that manipulate purely decimal quantities require a DecimalAngleUnit parameter.

Angle constructors and methods that manipulate a value of degrees or hours using sexigesimal sub-units require a SexagesimalAngleUnit parameter.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
Angle, DecimalAngle, SexagesimalAngle, SexagesimalAngleUnit

Field Summary
 java.lang.String abreviation
          The abreviated name of the unit of angle
 double degrees
          The value of a single unit in decimal degrees
static DecimalAngleUnit DEGREES
          Constant identifier for units of decimal degrees
static DecimalAngleUnit HOURS
          Constant identifier for units of decimal hours
 long micros
          The value of a single unit in microseconds of degree
 java.lang.String name
          The name of the unit of angle
static DecimalAngleUnit RADIANS
          Constant identifier for units radians
static DecimalAngleUnit REVOLUTIONS
          Constant identifier for units revolutions
 java.lang.String symbol
          The symbol of the unit of angle
 
Constructor Summary
protected DecimalAngleUnit(java.lang.String name, java.lang.String abreviation, java.lang.String symbol, double degrees, long micros)
          Construct a DecimalAngleUnit object.
 
Method Summary
static DecimalAngleUnit[] getDecimalAngleUnits()
          Return an array of the defined DecimalAngleUnit objects
 double getDegrees()
          Return the double value of the unit in degrees.
 long getMicros()
          Return the long value of the unit in microseconds of degree.
 java.lang.String toString()
          Return a String representation ( the name String ) of this DecimalAngleUnit object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEGREES

public static final DecimalAngleUnit DEGREES
Constant identifier for units of decimal degrees


HOURS

public static final DecimalAngleUnit HOURS
Constant identifier for units of decimal hours


RADIANS

public static final DecimalAngleUnit RADIANS
Constant identifier for units radians


REVOLUTIONS

public static final DecimalAngleUnit REVOLUTIONS
Constant identifier for units revolutions


name

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


abreviation

public final java.lang.String abreviation
The abreviated name of the unit of angle


symbol

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


degrees

public final double degrees
The value of a single unit in decimal degrees


micros

public final long micros
The value of a single unit in microseconds of degree

Constructor Detail

DecimalAngleUnit

protected DecimalAngleUnit(java.lang.String name,
                           java.lang.String abreviation,
                           java.lang.String symbol,
                           double degrees,
                           long micros)
Construct a DecimalAngleUnit object.

Parameters:
name - the unit of angle's identifier
symbol - the unit of angle's symbol
degrees - the double value of a single unit in decimal degrees
micros - the long value of a single unit in microseconds of degree
Method Detail

getDegrees

public double getDegrees()
Return the double value of the unit in degrees.

Specified by:
getDegrees in interface AngleUnit
Returns:
the double value of the unit in degrees.

getMicros

public long getMicros()
Return the long value of the unit in microseconds of degree.

Specified by:
getMicros in interface AngleUnit
Returns:
the long value of the unit in microseconds of degree.

getDecimalAngleUnits

public static DecimalAngleUnit[] getDecimalAngleUnits()
Return an array of the defined DecimalAngleUnit objects

Returns:
the array of the defined DecimalAngleUnit objects

toString

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

Returns:
a String representation of this DecimalAngleUnit object

Jeospace API

Copyright © 2006 - jeospace.org