JNISpice
version 2.0.0

spice.basic
Class DistanceUnits

java.lang.Object
  extended by spice.basic.Units
      extended by spice.basic.DistanceUnits

public class DistanceUnits
extends Units

Class DistanceUnits represents distance units and supports conversion between them.

Version 1.0.0 21-DEC-2009 (NJB)


Field Summary
static DistanceUnits AU
          AU represents astronomical units.
static DistanceUnits KM
          KM represents kilometers
static DistanceUnits METERS
          METERS represents meters.
 
Method Summary
 double toKm()
          Return the magnitude of this unit in km.
 java.lang.String toString()
          Return the name of this unit as a String.
 
Methods inherited from class spice.basic.Units
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AU

public static final DistanceUnits AU
AU represents astronomical units.


KM

public static final DistanceUnits KM
KM represents kilometers


METERS

public static final DistanceUnits METERS
METERS represents meters.

Method Detail

toString

public java.lang.String toString()
Return the name of this unit as a String.

Specified by:
toString in class Units

toKm

public double toKm()
            throws SpiceException
Return the magnitude of this unit in km.

Throws:
SpiceException

JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)