public abstract class NumericAttributeAdapter extends AttributeAdapter
Instances are immutable.
Modifier | Constructor and Description |
---|---|
protected |
NumericAttributeAdapter(String name,
dods.dap.Attribute attr)
Constructs from a name and an appropriate attribute.
|
Modifier and Type | Method and Description |
---|---|
DataImpl |
data(boolean copy)
Returns the VisAD data object corresponding to this instance.
|
String |
getAttributeName()
Returns the name of the attribute used during construction of this
instance.
|
RealType |
getRealType()
Returns the VisAD
RealType of this instance. |
protected abstract Number |
number(String spec)
Returns the numeric value corresponding to an appropriate string
specification.
|
protected abstract 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. |
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName
protected NumericAttributeAdapter(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.public RealType getRealType()
RealType
of this instance.public String getAttributeName()
protected abstract Number number(String spec)
spec
- A string specification approrpriate to this
instance.protected abstract 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.list
- A list of numeric values. Each element must
be of class Double
.VisADException
- VisAD failure.public DataImpl data(boolean copy)
data
in class AttributeAdapter
copy
- If true, then a copy is returned.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.