visad.data.dods
Class ByteVariableAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VariableAdapter
-
- visad.data.dods.ByteVariableAdapter
-
public class ByteVariableAdapter extends VariableAdapter
Provides support for adapting DODS DByte variables to thevisad.data.incontext.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ByteVariableAdapterbyteVariableAdapter(dods.dap.DByte var, dods.dap.DAS das)DataImpldata(dods.dap.DByte var, boolean copy)Returns a VisAD data object corresponding to a DODSDByte.MathTypegetMathType()Returns the VisADMathTypeof this instance.SimpleSet[]getRepresentationalSets(boolean copy)
-
-
-
Method Detail
-
byteVariableAdapter
public static ByteVariableAdapter byteVariableAdapter(dods.dap.DByte var, dods.dap.DAS das) throws VisADException, java.rmi.RemoteException
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getMathType
public MathType getMathType()
Description copied from class:VariableAdapterReturns 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 data values are copied.- Returns:
- The VisAD Sets used to represent the data values in the range of a FlatField.
-
data
public DataImpl data(dods.dap.DByte var, boolean copy)
Returns a VisAD data object corresponding to a DODSDByte. The DByte must be compatible with the the DByte used to construct this instance. In particular, the name of the DByte used to construct this instance will be used in naming the returned VisADReal.- Overrides:
datain classVariableAdapter- Parameters:
var- The DODS variable. The variable must be compatible with the the variable used to construct this instance.copy- If true, then data values are copied.- Returns:
- A corresponding VisAD data object. The class of
the object will be
Real.
-
-
DMelt 3.0 © DataMelt by jWork.ORG