|
|||||||||
| 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.QuantityDBImpl
visad.data.netcdf.StandardQuantityDB
public final class StandardQuantityDB
The following class implements a database of standard quantities. It is implemented as a singleton. Instances of the class are modifiable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class visad.data.netcdf.QuantityDBImpl |
|---|
QuantityDBImpl.Iterator, QuantityDBImpl.NameIterator, QuantityDBImpl.NameKey, QuantityDBImpl.QuantityIterator, QuantityDBImpl.UnitKey |
| Method Summary | |
|---|---|
QuantityDB |
add(java.lang.String[] definitions,
java.lang.String[] aliases)
Adds the given quantities and aliases to the database. |
void |
add(java.lang.String name,
java.lang.String unitSpec)
Adds a quantity to the database given a name and a display unit specification. |
static StandardQuantityDB |
instance()
Returns an instance of this class. |
static void |
main(java.lang.String[] args)
Tests this class. |
| Methods inherited from class visad.data.netcdf.QuantityDBImpl |
|---|
add, add, get, get, nameIterator, quantityIterator |
| 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 |
| Method Detail |
|---|
public static StandardQuantityDB instance()
throws VisADException
VisADException - Couldn't instantiate.
public QuantityDB add(java.lang.String[] definitions,
java.lang.String[] aliases)
throws ParseException,
TypeException,
VisADException
add in class QuantityDBImpldefinitions - New quantities and their definitions.
definitions[2*i] contains the
name (e.g. "speed") of the quantity whose
preferred unit specification (e.g. "m/s") is
in definitions[2*i+1].aliases - Aliases for quantities. aliases[2*i]
contains the alias for the quantity
named in aliases[2*i+1].
ParseException - A unit specification couldn't be parsed.
TypeException - An incompatible version of the quantity already
exists.
VisADException - Couldn't create necessary VisAD object.
public void add(java.lang.String name,
java.lang.String unitSpec)
add in class QuantityDBImplname - The name of the quantity (e.g. "length").unitSpec - The preferred display unit for the
quantity (e.g. "feet").
UnsupportedOperationException - Always thrown because a standard database
must be unmodifiable.
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||