visad.data.dods
Class Float64VariableAdapter

java.lang.Object
  extended by visad.data.dods.Adapter
      extended by visad.data.dods.VariableAdapter
          extended by visad.data.dods.Float64VariableAdapter

public class Float64VariableAdapter
extends VariableAdapter

Provides support for adapting DODS DFloat64 variables to the VisAD data-import context.

Instances are immutable.

Author:
Steven R. Emmerson

Method Summary
 DataImpl data(dods.dap.DFloat64 var, boolean copy)
          Returns the VisAD DataImpl corresponding to a DODS DFloat64.
static Float64VariableAdapter float64VariableAdapter(dods.dap.DFloat64 var, dods.dap.DAS das)
          Returns an instance of this class corresponding to a DODS DFloat64.
 MathType getMathType()
          Returns the VisAD MathType of this instance.
 SimpleSet[] getRepresentationalSets(boolean copy)
          Returns the VisAD Sets that will be used to represent this instances data values in the range of a VisAD FlatField.
 
Methods inherited from class visad.data.dods.VariableAdapter
data, data, data, data, data, data, data, data, data, data, data, data, data, data, mathType
 
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
 

Method Detail

float64VariableAdapter

public static Float64VariableAdapter float64VariableAdapter(dods.dap.DFloat64 var,
                                                            dods.dap.DAS das)
                                                     throws VisADException,
                                                            RemoteException
Returns an instance of this class corresponding to a DODS DFloat64.

Parameters:
var - The DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
A instance of this class corresponding to the input.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getMathType

public MathType getMathType()
Returns the VisAD MathType of this instance.

Specified by:
getMathType in class VariableAdapter
Returns:
The MathType of this instance.

getRepresentationalSets

public SimpleSet[] getRepresentationalSets(boolean copy)
Returns the VisAD Sets that will be used to represent this instances data values in the range of a VisAD FlatField.

Overrides:
getRepresentationalSets in class VariableAdapter
Parameters:
copy - If true, then the array is cloned.
Returns:
The VisAD Sets used to represent the data values in the range of a FlatField. WARNING: Modify only under duress.

data

public DataImpl data(dods.dap.DFloat64 var,
                     boolean copy)
Returns the VisAD DataImpl corresponding to a DODS DFloat64.

Overrides:
data in class VariableAdapter
Parameters:
var - The DODS variable to have the corresponding VisAD data object returned. The variable must be compatible with the variable used to construct this instance.
copy - If true, then data values are copied.
Returns:
The VisAD data object of this instance. The class of the object will be Real.