visad.data.dods
Class VariableAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VariableAdapter
-
- Direct Known Subclasses:
- ArrayVariableAdapter, BooleanVariableAdapter, ByteVariableAdapter, Float32VariableAdapter, Float64VariableAdapter, GridVariableAdapter, GridVariableMapAdapter, Int16VariableAdapter, Int32VariableAdapter, ListVariableAdapter, SequenceVariableAdapter, StringVariableAdapter, StructureVariableAdapter, UInt16VariableAdapter, UInt32VariableAdapter
public abstract class VariableAdapter extends Adapter
Provides support for adapting DODS objects to the VisAD data-import context.Instances are immutable.
-
-
Constructor Summary
Constructors Constructor and Description VariableAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description DataImpldata(dods.dap.BaseType baseType, boolean copy)Returns the VisADDataImplcorresponding to the data of a DODS variable and the metaData of the DODS variable used during construction of this instance.DataImpldata(dods.dap.DArray var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DBoolean var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DByte var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DFloat32 var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DFloat64 var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DGrid var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DInt16 var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DInt32 var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DList var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DSequence var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DString var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DStructure var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DUInt16 var, boolean copy)Throws aVisADException.DataImpldata(dods.dap.DUInt32 var, boolean copy)Throws aVisADException.abstract MathTypegetMathType()Returns the VisADMathTypeof this instance.SimpleSet[]getRepresentationalSets(boolean copy)
-
-
-
Method Detail
-
getMathType
public abstract MathType getMathType()
Returns the VisADMathTypeof this instance.- Returns:
- The MathType of this instance.
-
data
public DataImpl data(dods.dap.BaseType baseType, boolean copy) throws BadFormException, VisADException, java.rmi.RemoteException
Returns the VisADDataImplcorresponding to the data of a DODS variable and the metaData of the DODS variable used during construction of this instance.- Parameters:
baseType- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction. The class of the object will depend upon the DODS variable used during construction.
- Throws:
BadFormException- The DODS variable is corrupt.VisADException- VisAD failure. Possibly the variable wasn't compatible with the variable used to construct this instance.java.rmi.RemoteException- Java RMI failure.
-
data
public DataImpl data(dods.dap.DString var, boolean copy) throws VisADException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.
-
data
public DataImpl data(dods.dap.DBoolean var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DByte var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DUInt16 var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DInt16 var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DUInt32 var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DInt32 var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DFloat32 var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DFloat64 var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DStructure var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DList var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DArray var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DGrid var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
data
public DataImpl data(dods.dap.DSequence var, boolean copy) throws VisADException, java.rmi.RemoteException
Throws aVisADException. Override in subclasses where appropriate.- 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:
- A VisAD data object corresponding to the data of the DODS variable and the metadata of the DODS variable used during construction.
- Throws:
VisADException- Don't know how to create a VisAD data object from the given DODS variable.java.rmi.RemoteException
-
getRepresentationalSets
public SimpleSet[] getRepresentationalSets(boolean copy)
Returns the default VisADSets that will be used to represent this instances data values in the range of a VisADFlatField. Override this method in subclasses where appropriate.- Parameters:
copy- If true, then the array is cloned.- Returns:
- The default VisAD Sets used to represent the
data values in the range of a FlatField.
Will never be
null-- though an individual elements might be (e.g. forTextTypeobjects).
-
-
DMelt 3.0 © DataMelt by jWork.ORG