ucar.units
Interface DerivedUnit

All Superinterfaces:
Unit
All Known Implementing Classes:
BaseUnit, DerivedUnitImpl, UnknownUnit

public interface DerivedUnit
extends Unit

Interface for derived units.

Version:
$Id: DerivedUnit.java 64 2006-07-12 22:30:50Z edavis $
Author:
Steven R. Emmerson

Method Summary
 UnitDimension getDimension()
          Returns the unit dimension of this derived unit.
 QuantityDimension getQuantityDimension()
          Return the quantity dimension of this derived unit.
 boolean isReciprocalOf(DerivedUnit that)
          Indicates if this derived unit is the reciprocal of another derived unit (e.g.
 
Methods inherited from interface ucar.units.Unit
clone, convertTo, convertTo, convertTo, convertTo, convertTo, convertTo, divideBy, divideInto, equals, getCanonicalString, getConverterTo, getDerivedUnit, getName, getPlural, getSymbol, getUnitName, isCompatible, isDimensionless, log, makeLabel, multiplyBy, multiplyBy, raiseTo, shiftTo, shiftTo, toString
 

Method Detail

isReciprocalOf

boolean isReciprocalOf(DerivedUnit that)
Indicates if this derived unit is the reciprocal of another derived unit (e.g. "second" and "hertz").

Parameters:
that - The other, derived unit.

getDimension

UnitDimension getDimension()
Returns the unit dimension of this derived unit. For example, the unit "newton" has the unit dimension "kg.m.s-2".

Returns:
The unit dimension of this derived unit.

getQuantityDimension

QuantityDimension getQuantityDimension()
Return the quantity dimension of this derived unit. For example, the unit "newton" has the quantity dimension "M.L.t-2").

Returns:
The quantity dimension of this derived unit.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.