visad.data.dods
Class UInt32VectorAdapter

java.lang.Object
  extended by visad.data.dods.Adapter
      extended by visad.data.dods.VectorAdapter
          extended by visad.data.dods.NumericVectorAdapter
              extended by visad.data.dods.FloatVectorAdapter
                  extended by visad.data.dods.UInt32VectorAdapter

public final class UInt32VectorAdapter
extends FloatVectorAdapter

Provides support for adapting a DODS UInt32PrimitiveVector to the VisAD data-import context.

Instances are immutable.

Author:
Steven R. Emmerson

Constructor Summary
UInt32VectorAdapter(dods.dap.UInt32PrimitiveVector vector, dods.dap.DAS das, VariableAdapterFactory factory)
          Constructs from a DODS vector and a factory for creating DODS variable adapters.
 
Method Summary
 float[] getFloats(dods.dap.PrimitiveVector vec, boolean copy)
          Returns the numeric values of a compatible DODS primitive vector.
 
Methods inherited from class visad.data.dods.FloatVectorAdapter
griddedSet, setField
 
Methods inherited from class visad.data.dods.VectorAdapter
getMathType, getRepresentationalSets, getVariableAdapter, isFlat, setField, setField, setField, setField, setField, setField, setField, setField, setField
 
Methods inherited from class visad.data.dods.Adapter
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UInt32VectorAdapter

public UInt32VectorAdapter(dods.dap.UInt32PrimitiveVector vector,
                           dods.dap.DAS das,
                           VariableAdapterFactory factory)
                    throws VisADException,
                           RemoteException
Constructs from a DODS vector and a factory for creating DODS variable adapters.

Parameters:
vector - A DODS vector to be adapted.
das - The DODS DAS in which the attribute table for the DODS vector is embedded.
factory - A factory for creating adapters of DODS variables.
Throws:
BadFormException - The DODS information is corrupt.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

getFloats

public float[] getFloats(dods.dap.PrimitiveVector vec,
                         boolean copy)
Returns the numeric values of a compatible DODS primitive vector.

Specified by:
getFloats in class FloatVectorAdapter
Parameters:
vec - A DODS primitive vector that is compatible with the primitive vector used to construct this instance.
copy - If true, then a copy is returned.
Returns:
The numeric values of the primitive vector.