visad.data.dods
Class GridVariableAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VariableAdapter
-
- visad.data.dods.GridVariableAdapter
-
public class GridVariableAdapter extends VariableAdapter
Provides support for adapting DODSDGridvariables 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.DGrid grid, boolean copy)Returns the VisADDataImplcorresponding to a DODSDGrid.MathTypegetMathType()Returns the VisADMathTypeof this instance.SimpleSet[]getRepresentationalSets(boolean copy)Returns the VisADSets that will be used to represent this instances data values in the range of a VisADFileFlatField.static GridVariableAdaptergridVariableAdapter(dods.dap.DGrid grid, dods.dap.DAS das, VariableAdapterFactory factory)Returns an instance of this class corresponding to a DODSDGrid.
-
-
-
Method Detail
-
gridVariableAdapter
public static GridVariableAdapter gridVariableAdapter(dods.dap.DGrid grid, dods.dap.DAS das, VariableAdapterFactory factory) throws VisADException, java.rmi.RemoteException
Returns an instance of this class corresponding to a DODSDGrid.- Parameters:
grid- The DODS variable. Only the DODS metadata is used: the variable needn't have any actual data.das- The DODS DAS in which the attribute table for the DODS variable is embedded.factory- A factory for creating variable adapters.- Returns:
- An instance of this class corresponding to the input arguments.
- 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 VisADFileFlatField.- 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. WARNING: Modify only under duress.
-
data
public DataImpl data(dods.dap.DGrid grid, boolean copy) throws VisADException, java.rmi.RemoteException
Returns the VisADDataImplcorresponding to a DODSDGrid.- Overrides:
datain classVariableAdapter- Parameters:
grid- 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
FileFlatField,FlatField, orFieldImpl. - Throws:
VisADException- VisAD failure. Possibly the variable wasn't compatible with the variable used to construct this instance.java.rmi.RemoteException- Java RMI failure.
-
-
DMelt 3.0 © DataMelt by jWork.ORG