|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.dods.Adapter
visad.data.dods.AttributeAdapter
visad.data.dods.NumericAttributeAdapter
visad.data.dods.FloatAttributeAdapter
public abstract class FloatAttributeAdapter
Provides support for adapting DODS floating-point attributes to the VisAD data-import context.
Instances are immutable.
| Constructor Summary | |
|---|---|
protected |
FloatAttributeAdapter(String name,
dods.dap.Attribute attr)
Constructs from a name and an appropriate attribute. |
| Method Summary | |
|---|---|
protected abstract float |
floatValue(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. |
| Methods inherited from class visad.data.dods.NumericAttributeAdapter |
|---|
data, getAttributeName, getRealType |
| 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 |
| Constructor Detail |
|---|
protected FloatAttributeAdapter(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.| Method Detail |
|---|
protected Number number(String spec)
number in class NumericAttributeAdapterspec - A floating-point string specification.
protected abstract float floatValue(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 NumericAttributeAdapterlist - A list of numeric values. Each element must
be of class Float.
Gridded1DSet or List1DSet
-- depending on whether or not the list is
sorted.
VisADException - VisAD failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||