|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.dods.Adapter
public abstract class Adapter
Provides support for adapting DODS objects to the VisAD data-import context.
Instances are immutable.
Constructor Summary | |
---|---|
Adapter()
|
Method Summary | |
---|---|
protected static dods.dap.AttributeTable |
attributeTable(dods.dap.DAS das,
dods.dap.BaseType baseType)
Returns the attribute table corresponding to a DODS variable. |
protected static dods.dap.AttributeTable |
attributeTable(dods.dap.DAS das,
String name)
Returns the attribute table corresponding to a name. |
protected CacheStrategy |
getCacheStrategy()
Returns the FileFlatField cacheing strategy for DODS
adapters. |
protected static boolean |
isFlat(MathType mathType)
Indicates if a given VisAD MathType is "flat" (i.e. comprises a
Real , a RealTuple , or a Tuple of Real s
and RealTuple s. |
protected static MathType |
mathType(MathType[] mathTypes)
Returns the VisAD MathType corresponding to an array of
MathTypes. |
protected static RealType |
realType(dods.dap.BaseType variable,
dods.dap.AttributeTable table)
Returns the VisAD RealType corresponding to a DODS variable. |
protected static RealType |
realType(dods.dap.BaseType variable,
dods.dap.DAS das)
Returns the VisAD RealType corresponding to a DODS variable. |
protected static RealType |
realType(String name,
dods.dap.AttributeTable table)
Returns the VisAD RealType corresponding to a name. |
protected static RealType |
realType(String name,
dods.dap.DAS das)
Returns the VisAD RealType corresponding to a name. |
protected static String |
scalarName(String name)
Returns the VisAD scalar-name equivalent to a DODS name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Adapter()
Method Detail |
---|
protected static String scalarName(String name)
name
- The DODS name.
ScalarType
protected static boolean isFlat(MathType mathType)
MathType
is "flat" (i.e. comprises a
Real
, a RealTuple
, or a Tuple
of Real
s
and RealTuple
s.
mathType
- The VisAD mathtype to be investigated.
true
if and only if the given
mathtype is "flat".protected static RealType realType(dods.dap.BaseType variable, dods.dap.DAS das)
RealType
corresponding to a DODS variable.
variable
- The DODS variable. Must be one for which a
RealType is possible.das
- The DODS DAS in which the attribute
table for the DODS variable is embedded.
protected static RealType realType(dods.dap.BaseType variable, dods.dap.AttributeTable table)
RealType
corresponding to a DODS variable.
variable
- The DODS variable. Must be one for which a
RealType is possible.table
- The DODS attribute table for the variable.
May be null
.
protected static RealType realType(String name, dods.dap.DAS das)
RealType
corresponding to a name.
name
- The name.das
- The DODS DAS in which the information on the
name is embedded.
protected static RealType realType(String name, dods.dap.AttributeTable table)
RealType
corresponding to a name.
name
- The name.table
- The DODS attribute table for the name.
May be null
.
protected static dods.dap.AttributeTable attributeTable(dods.dap.DAS das, dods.dap.BaseType baseType)
das
- The DODS DAS in which the attribute
table for the DODS variable is embedded.baseType
- The type of the sub-component. May not be
null
.
null
if no such
table exists.protected static dods.dap.AttributeTable attributeTable(dods.dap.DAS das, String name)
das
- The DODS DAS in which information on the name
is embedded.name
- The name to lookup in the DAS.
null
if no such
table exists.protected static MathType mathType(MathType[] mathTypes) throws VisADException
MathType
corresponding to an array of
MathTypes.
mathTypes
- The array of mathTypes.
null
if the array has zero length.
Will be the first element of a one-element
array. Will be either a RealTuple
or a
Tuple
-- as appropriate -- for a
multi-element array.
VisADException
- VisAD failure.protected CacheStrategy getCacheStrategy()
FileFlatField
cacheing strategy for DODS
adapters. This may be used by DODS adapters during the creation of
FileFlatField-s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |