public class Constants
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Constants(Constants parent)
Constructs from a parent constant table or
null. |
| Modifier and Type | Method and Description |
|---|---|
visad.Real |
get(java.lang.String name)
Returns the constant with a given name.
|
static Constants |
instance()
Returns an instance of this class.
|
visad.Real |
put(java.lang.String name,
visad.Real value)
Stores a constant into the table.
|
protected Constants(Constants parent) throws visad.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.visad.VisADException - if a core VisAD failure occurs.public static Constants instance()
public visad.Real put(java.lang.String name,
visad.Real value)
name - The name of the constant.value - The value of the constant.null.public visad.Real get(java.lang.String name)
name - The name of the constant.null if not found.