|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.dods.Adapter
visad.data.dods.VariableAdapter
Provides support for adapting DODS objects to the VisAD data-import context.
Instances are immutable.
| Constructor Summary | |
VariableAdapter()
|
|
| Method Summary | |
DataImpl |
data(BaseType baseType,
boolean copy)
Returns the VisAD DataImpl corresponding to the data of a DODS
variable and the metaData of the DODS variable used during construction
of this instance. |
DataImpl |
data(DArray var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DBoolean var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DByte var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DFloat32 var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DFloat64 var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DGrid var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DInt16 var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DInt32 var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DList var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DSequence var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DString var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DStructure var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DUInt16 var,
boolean copy)
Throws a VisADException. |
DataImpl |
data(DUInt32 var,
boolean copy)
Throws a VisADException. |
abstract MathType |
getMathType()
Returns the VisAD MathType of this instance. |
SimpleSet[] |
getRepresentationalSets(boolean copy)
Returns the default VisAD Sets that will be used to represent
this instances data values in the range of a VisAD FlatField. |
protected static MathType |
mathType(VariableAdapter[] adapters)
Returns the VisAD MathType corresponding to an array of adapters
of DODS variables. |
| Methods inherited from class visad.data.dods.Adapter |
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VariableAdapter()
| Method Detail |
public abstract MathType getMathType()
MathType of this instance.
public DataImpl data(BaseType baseType,
boolean copy)
throws BadFormException,
VisADException,
RemoteException
DataImpl corresponding to the data of a DODS
variable and the metaData of the DODS variable used during construction
of this instance.
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.
BadFormException - The DODS variable is corrupt.
VisADException - VisAD failure. Possibly the variable wasn't
compatible with the variable used to construct
this instance.
RemoteException - Java RMI failure.
public DataImpl data(DString var,
boolean copy)
throws VisADException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
public DataImpl data(DBoolean var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DByte var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DUInt16 var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DInt16 var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DUInt32 var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DInt32 var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DFloat32 var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DFloat64 var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DStructure var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DList var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DArray var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DGrid var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteException
public DataImpl data(DSequence var,
boolean copy)
throws VisADException,
RemoteException
VisADException. Override in subclasses where
appropriate.
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.
VisADException - Don't know how to create a VisAD data object
from the given DODS variable.
RemoteExceptionpublic SimpleSet[] getRepresentationalSets(boolean copy)
Sets that will be used to represent
this instances data values in the range of a VisAD FlatField.
Override this method in subclasses where appropriate.
copy - If true, then the array is cloned.
null -- though an
individual elements might be (e.g. for TextType objects).
protected static MathType mathType(VariableAdapter[] adapters)
throws VisADException,
RemoteException
MathType corresponding to an array of adapters
of DODS variables. If the array has zero length, then the returned
MathType will be null; otherwise, if the array has a single
element, then a MathType corresponding to the element will be returned;
otherwise, the returned MathType will be a RealTupleType or a
TupleType as appropriate.
adapters - An array of adapters of DODS variables. May
not be null, nor may any element
be null. May have zero length.
VisADException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||