ucar.visad.quantities
Class MassicVolume

java.lang.Object
  extended by ucar.visad.quantities.Quantity
      extended by ucar.visad.quantities.ScalarQuantity
          extended by ucar.visad.quantities.MassicVolume

public final class MassicVolume
extends ScalarQuantity

Provides support for the quantity of massic volume (alias "specific volume" or "volume per mass").

Version:
$Id: MassicVolume.java,v 1.4 2005/05/13 18:35:41 jeffmc Exp $
Author:
Steven R. Emmerson

Method Summary
static Data createFromDensity(Data density)
          Creates an MassicVolume data object from a density data object.
static RealTupleType getRealTupleType()
          Obtains the RealTupleType associated with this class.
static RealType getRealType()
          Obtains the RealType associated with this class.
 
Methods inherited from class ucar.visad.quantities.ScalarQuantity
getRealType, getRealType, realType
 
Methods inherited from class ucar.visad.quantities.Quantity
realTupleType, setRealTupleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRealType

public static RealType getRealType()
                            throws VisADException
Obtains the RealType associated with this class.

Returns:
The RealType associated with this class.
Throws:
VisADException - Couldn't perform necessary VisAD operation.

getRealTupleType

public static RealTupleType getRealTupleType()
                                      throws VisADException
Obtains the RealTupleType associated with this class.

Returns:
The RealTupleType associated with this class.
Throws:
VisADException - Couldn't perform necessary VisAD operation.

createFromDensity

public static Data createFromDensity(Data density)
                              throws TypeException,
                                     VisADException,
                                     RemoteException
Creates an MassicVolume data object from a density data object.

Parameters:
density - A Density data object.
Returns:
The MassicVolume data object computed from the density. The type of the object will be that of the arguments after standard promotion.
Throws:
TypeException - At least one argument has wrong type.
VisADException - Couldn't create necessary VisAD object.
RemoteException - Java RMI failure.
See Also:
VisADMath