visad.data.dods
Class Float32VariableAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VariableAdapter
-
- visad.data.dods.Float32VariableAdapter
-
public class Float32VariableAdapter extends VariableAdapter
Provides support for adapting DODS DFloat32 variables to the VisAD data-import context.Instances are immutable.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataImpldata(dods.dap.DFloat32 var, boolean copy)Returns the VisADDataImplcorresponding to a DODSDFloat32.static Float32VariableAdapterfloat32VariableAdapter(dods.dap.DFloat32 var, dods.dap.DAS das)Returns an instance of this class corresponding to a DODSDFloat32.MathTypegetMathType()Returns the VisADMathTypeof this instance.SimpleSet[]getRepresentationalSets(boolean copy)
-
-
-
Method Detail
-
float32VariableAdapter
public static Float32VariableAdapter float32VariableAdapter(dods.dap.DFloat32 var, dods.dap.DAS das) throws VisADException, java.rmi.RemoteException
Returns an instance of this class corresponding to a DODSDFloat32.- 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.java.rmi.RemoteException- Java RMI failure.
-
getMathType
public MathType getMathType()
Returns the VisADMathTypeof this instance.- Specified by:
getMathTypein classVariableAdapter- Returns:
- The MathType of this instance.
-
getRepresentationalSets
public SimpleSet[] getRepresentationalSets(boolean copy)
Returns the VisADSets that will be used to represent this instances data values in the range of a VisADFlatField.- Overrides:
getRepresentationalSetsin classVariableAdapter- 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.
-
data
public DataImpl data(dods.dap.DFloat32 var, boolean copy)
Returns the VisADDataImplcorresponding to a DODSDFloat32.- Overrides:
datain classVariableAdapter- 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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG