|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.dods.Adapter visad.data.dods.VariableAdapter visad.data.dods.ArrayVariableAdapter
public class ArrayVariableAdapter
Provides support for adapting DODS DArray
variables to the
VisAD data-import context.
Instances are immutable.
Method Summary | |
---|---|
static ArrayVariableAdapter |
arrayVariableAdapter(dods.dap.DArray array,
dods.dap.DAS das,
VariableAdapterFactory factory)
Returns an instance corresponding to a DODS DArray . |
DataImpl |
data(dods.dap.DArray array,
boolean copy)
Returns the VisAD DataImpl corresponding to a DODS DArray . |
FunctionType |
getFunctionType()
Returns the VisAD FunctionType of this instance. |
MathType |
getMathType()
Returns the VisAD MathType of this instance. |
SimpleSet[] |
getRepresentationalSets(boolean copy)
Returns the VisAD Set s that will be used to represent the data
values in the range of a VisAD FlatField . |
void |
setField(dods.dap.DArray array,
FieldImpl field,
boolean copy)
Sets a compatible VisAD Field . |
Methods inherited from class visad.data.dods.VariableAdapter |
---|
data, data, data, data, data, data, data, data, data, data, data, data, data, data, mathType |
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 |
Method Detail |
---|
public static ArrayVariableAdapter arrayVariableAdapter(dods.dap.DArray array, dods.dap.DAS das, VariableAdapterFactory factory) throws VisADException, RemoteException
DArray
.
array
- The DODS DArray. Only the DODS metadata is
used: the array 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.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.public MathType getMathType()
MathType
of this instance.
getMathType
in class VariableAdapter
public FunctionType getFunctionType()
FunctionType
of this instance.
public SimpleSet[] getRepresentationalSets(boolean copy)
Set
s that will be used to represent the data
values in the range of a VisAD FlatField
.
getRepresentationalSets
in class VariableAdapter
copy
- If true, then the array is copied.
public DataImpl data(dods.dap.DArray array, boolean copy) throws VisADException, RemoteException
DataImpl
corresponding to a DODS DArray
.
data
in class VariableAdapter
array
- The DODS DArray
to have the
corresponding VisAD data object returned.
The array must be compatible with the array
used to construct this instance.copy
- If true, then data values are copied.
FieldImpl
and may be
a FlatField
or FileFlatField
.
VisADException
- VisAD failure. Possible the array wasn't
compatible with the array used to construct this
instance.
RemoteException
- Java RMI failure.public void setField(dods.dap.DArray array, FieldImpl field, boolean copy) throws VisADException, RemoteException
Field
. This method is used by GridVariableAdapter
for the DArray portion of a DODS DGrid.
array
- The DODS DArray
to be used to set a
compatible VisAD Field. The array must be
compatible with the array used to construct this
instance.copy
- If true, then the data values are copied.field
- The VisAD Field to be set. The field must be
compatible with the array.
VisADException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |