|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.Constants
public class Constants
Provides support for scientific constants.
| Constructor Summary | |
|---|---|
protected |
Constants(Constants parent)
Constructs from a parent constant table or null. |
| Method Summary | |
|---|---|
Real |
get(String name)
Returns the constant with a given name. |
static Constants |
instance()
Returns an instance of this class. |
Real |
put(String name,
Real value)
Stores a constant into the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Constants(Constants parent)
throws VisADException
null. Protected
to prevent use. The parent table will be searched if the constant is not
found in this instances's table.
parent - The parent constant table or null.
VisADException - if a core VisAD failure occurs.| Method Detail |
|---|
public static Constants instance()
public Real put(String name,
Real value)
name - The name of the constant.value - The value of the constant.
null.public Real get(String name)
name - The name of the constant.
null if not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||