public abstract class Adapter extends Object
Instances are immutable.
Constructor and Description |
---|
Adapter() |
Modifier and Type | Method and Description |
---|---|
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. |
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.
|
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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.