visad.data.dods
Class BooleanVariableAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VariableAdapter
-
- visad.data.dods.BooleanVariableAdapter
-
public class BooleanVariableAdapter extends VariableAdapter
Provides support for adapting DODS DBoolean 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 static BooleanVariableAdapterbooleanVariableAdapter(dods.dap.DBoolean var, dods.dap.DAS das)Returns an instance of this class corresponding to a DODS variable.DataImpldata(dods.dap.DBoolean var, boolean copy)Returns a VisAD data object corresponding to a DODSDBoolean.MathTypegetMathType()Returns the VisADMathTypeof this instance.SimpleSet[]getRepresentationalSets(boolean copy)
-
-
-
Method Detail
-
booleanVariableAdapter
public static BooleanVariableAdapter booleanVariableAdapter(dods.dap.DBoolean var, dods.dap.DAS das) throws VisADException
Returns an instance of this class corresponding to a DODS variable.- Parameters:
var- The DODS variable.das- The DODS DAS in which the attribute table for the DODS variable is embedded.- Returns:
- An instance of this class corresponding to the input arguments.
- Throws:
VisADException- VisAD 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 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.DBoolean var, boolean copy)
Returns a VisAD data object corresponding to a DODSDBoolean. The DBoolean must be compatible with the the DBoolean used to construct this instance. In particular, the name of the DBoolean 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