|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.data.netcdf.QuantityDB
visad.data.netcdf.in.NetcdfQuantityDB
public class NetcdfQuantityDB
Provides support for mapping netCDF elements to VisAD quantities by decorating a existing quantity database with methods specifically appropriate to netCDF variables.
| Constructor Summary | |
|---|---|
NetcdfQuantityDB(QuantityDB db)
Constructs from another quantity database. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String name,
Quantity quantity)
Adds a given Quantity to the database under a given name. |
Quantity |
get(java.lang.String name)
Returns the quantity in the database whose name matches a given name. |
Quantity[] |
get(Unit unit)
Returns all quantities in the database whose default unit is convertible with a given unit. |
Quantity |
getBest(java.lang.String longName,
java.lang.String name)
Return the VisAD quantity corresponding to the best combination of long name and name. |
java.util.Iterator |
nameIterator()
Returns an iterator of the names in the database. |
java.util.Iterator |
quantityIterator()
Returns an iterator of the quantities in the database. |
| Methods inherited from class visad.data.netcdf.QuantityDB |
|---|
add, get |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetcdfQuantityDB(QuantityDB db)
| Method Detail |
|---|
public void add(java.lang.String name,
Quantity quantity)
throws VisADException
add in class QuantityDBname - The name under which the quantity is to be
added. May be an alias.quantity - The quantity to be added.
VisADException - Couldn't create necessary VisAD object.
public Quantity getBest(java.lang.String longName,
java.lang.String name)
longName - The long name of the quantity. May be
null.name - The name of the quantity.
null if no such quantity exists.public java.util.Iterator nameIterator()
nameIterator in class QuantityDBpublic java.util.Iterator quantityIterator()
quantityIterator in class QuantityDBpublic Quantity[] get(Unit unit)
get in class QuantityDBunit - The unit of the quantity.
unit.public Quantity get(java.lang.String name)
get in class QuantityDBname - The name of the quantity.
name. Note that
RETURN_VALUE.getName().equals(name) can
be false due to aliasing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||