fr.cnes.sitools.units.astronomy
Class AstronomicUnit<Q extends javax.measure.quantity.Quantity<Q>>

java.lang.Object
  extended by javax.measure.unit.Unit<Q>
      extended by javax.measure.unit.TransformedUnit<Q>
          extended by fr.cnes.sitools.units.astronomy.AstronomicUnit<Q>
Type Parameters:
Q -
All Implemented Interfaces:
java.io.Serializable

public class AstronomicUnit<Q extends javax.measure.quantity.Quantity<Q>>
extends javax.measure.unit.TransformedUnit<Q>

Class to define a unit used in astronomy

Author:
m.marseille
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.measure.unit.Unit
ONE
 
Constructor Summary
AstronomicUnit(java.lang.String symbol, javax.measure.unit.Unit<Q> parent, javax.measure.unit.UnitConverter converter)
          Constructor with symbol
 
Method Summary
 java.lang.String getSymbol()
          Get the symbol
 
Methods inherited from class javax.measure.unit.TransformedUnit
equals, getConverterToMetric, getParentUnit, hashCode, toMetric, toParentUnit
 
Methods inherited from class javax.measure.unit.Unit
add, alternate, asType, divide, divide, divide, getConverterTo, getConverterToAny, getDimension, getProductUnits, inverse, isCompatible, multiply, multiply, multiply, pow, root, toString, transform, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AstronomicUnit

public AstronomicUnit(java.lang.String symbol,
                      javax.measure.unit.Unit<Q> parent,
                      javax.measure.unit.UnitConverter converter)
Constructor with symbol

Parameters:
symbol - the symbol used for the unit
parent - the base unit definition
converter - the converter to the parent
Method Detail

getSymbol

public final java.lang.String getSymbol()
Get the symbol

Overrides:
getSymbol in class javax.measure.unit.Unit<Q extends javax.measure.quantity.Quantity<Q>>
Returns:
the symbol


Copyright © 2010-2013 CNES. All Rights Reserved.