ucar.visad.quantities
Class VectorQuantity

java.lang.Object
  extended by ucar.visad.quantities.Quantity
      extended by ucar.visad.quantities.VectorQuantity
Direct Known Subclasses:
Wind

public abstract class VectorQuantity
extends Quantity

Provides support for vector quantities. A vector quantity has at least one component (and usually at least two components) and may have associated with it a default CoordinateSystem and default domain set.

Version:
$Id: VectorQuantity.java,v 1.12 2006/08/09 22:04:54 dmurray Exp $
Author:
Steven R. Emmerson

Constructor Summary
protected VectorQuantity(RealTupleType realTupleType)
          Constructs from an existing VisAD RealTupleType.
protected VectorQuantity(RealType[] realTypes)
          Constructs from an array of VisAD RealTypes.
protected VectorQuantity(RealType[] realTypes, CoordinateSystem coordinateSystem)
          Constructs from an array of VisAD RealTypes and a default coordinate system transformation.
protected VectorQuantity(RealType[] realTypes, CoordinateSystem coordinateSystem, Set set)
          Constructs from an array of VisAD RealTypes, a default coordinate system transformation, and a default sampling set.
 
Method Summary
protected  EarthVectorType earthVectorType()
          Returns the associated RealTupleType.
 
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
 

Constructor Detail

VectorQuantity

protected VectorQuantity(RealType[] realTypes)
                  throws VisADException
Constructs from an array of VisAD RealTypes.

Parameters:
realTypes - The array of RealTypes.
Throws:
VisADException - if a core VisAD failure occurs.

VectorQuantity

protected VectorQuantity(RealType[] realTypes,
                         CoordinateSystem coordinateSystem)
                  throws VisADException
Constructs from an array of VisAD RealTypes and a default coordinate system transformation.

Parameters:
realTypes - The array of RealTypes.
coordinateSystem - The default CoordinateSystem of this quantity. May be null.
Throws:
VisADException - if a core VisAD failure occurs.

VectorQuantity

protected VectorQuantity(RealType[] realTypes,
                         CoordinateSystem coordinateSystem,
                         Set set)
                  throws VisADException
Constructs from an array of VisAD RealTypes, a default coordinate system transformation, and a default sampling set.

Parameters:
realTypes - The array of RealTypes.
coordinateSystem - The default CoordinateSystem of this quantity. May be null.
set - The default domain set of this quantity. May be null.
Throws:
VisADException - if a core VisAD failure occurs.

VectorQuantity

protected VectorQuantity(RealTupleType realTupleType)
Constructs from an existing VisAD RealTupleType.

Parameters:
realTupleType - An existing RealTupleType.
Method Detail

earthVectorType

protected final EarthVectorType earthVectorType()
                                         throws VisADException
Returns the associated RealTupleType.

Returns:
The associated RealTupleType.
Throws:
VisADException - if a core VisAD failure occurs.