public class Float64AttributeAdapter extends NumericAttributeAdapter
Attribute.FLOAT64
attribute to
the VisAD data-import context.
Instances are immutable.
Modifier | Constructor and Description |
---|---|
protected |
Float64AttributeAdapter(String name,
dods.dap.Attribute attr)
Constructs from a name and an appropriate attribute.
|
Modifier and Type | Method and Description |
---|---|
protected double |
doubleValue(String spec)
Returns the numeric value corresponding to a floating-point
string specification.
|
protected Number |
number(String spec)
Returns the numeric value corresponding to a floating-point
string specification.
|
protected Set |
visadSet(List list)
Returns the VisAD
Set corresponding to the metadata of the
attribute used in constructing this instance and a list of numeric
values. |
data, getAttributeName, getRealType
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName
protected Float64AttributeAdapter(String name, dods.dap.Attribute attr) throws VisADException
name
- The name of the attribute.attr
- The attribute. Must have the appropriate type.VisADException
- VisAD failure. Probably the attribute has an
inappropriate type.protected Number number(String spec)
number
in class NumericAttributeAdapter
spec
- A floating-point string specification.protected double doubleValue(String spec)
spec
- A floating-point string specification.protected Set visadSet(List list) throws VisADException
Set
corresponding to the metadata of the
attribute used in constructing this instance and a list of numeric
values.visadSet
in class NumericAttributeAdapter
list
- A list of numeric values. Each element must
be of class Double
.Gridded1DDoubleSet
or List1DDoubleSet
-- depending on whether or not the list is
sorted.VisADException
- VisAD failure.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.