public class VarInfo
extends java.lang.Object
Constructor and Description |
---|
VarInfo(java.lang.String name,
java.lang.String units)
ctor
|
VarInfo(java.lang.String name,
java.lang.String desc,
java.lang.String units)
ctor
|
VarInfo(java.lang.String name,
java.lang.String desc,
java.lang.String category,
visad.Unit unit)
ctor
|
VarInfo(java.lang.String name,
java.lang.String desc,
java.lang.String category,
visad.Unit unit,
double missingValue)
ctor
|
VarInfo(java.lang.String name,
java.lang.String desc,
visad.Unit unit)
ctor
|
VarInfo(java.lang.String name,
visad.Unit unit)
ctor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
Get the Category property.
|
java.lang.String |
getDescription()
get desc
|
boolean |
getIsNumeric()
Get the IsNumeric property.
|
double |
getMissingValue()
Get the MissingValue property.
|
java.lang.String |
getName()
get the name
|
visad.RealType |
getRealType()
Get the RealType property.
|
java.lang.String |
getShortName()
get the name
|
visad.Unit |
getUnit()
Get the Unit property.
|
static VarInfo |
getVarInfo(java.lang.String variableName,
java.util.List<VarInfo> variables)
Utility to find the variable with the given name
|
void |
setCategory(java.lang.String value)
Set the Category property.
|
void |
setIsNumeric(boolean value)
Set the IsNumeric property.
|
void |
setMissingValue(double value)
Set the MissingValue property.
|
void |
setRealType(visad.RealType value)
Set the RealType property.
|
void |
setUnit(visad.Unit value)
Set the Unit property.
|
java.lang.String |
toString()
to string
|
public VarInfo(java.lang.String name, java.lang.String desc, visad.Unit unit)
name
- namedesc
- descunit
- unitpublic VarInfo(java.lang.String name, java.lang.String desc, java.lang.String category, visad.Unit unit)
name
- namedesc
- desccategory
- the category of the varunit
- unitpublic VarInfo(java.lang.String name, java.lang.String desc, java.lang.String category, visad.Unit unit, double missingValue)
name
- namedesc
- desccategory
- the category of the varunit
- unitmissingValue
- missing valuepublic VarInfo(java.lang.String name, visad.Unit unit)
name
- nameunit
- unitpublic VarInfo(java.lang.String name, java.lang.String units)
name
- nameunits
- unit stringpublic VarInfo(java.lang.String name, java.lang.String desc, java.lang.String units)
name
- namedesc
- descriptionunits
- unit stringpublic static VarInfo getVarInfo(java.lang.String variableName, java.util.List<VarInfo> variables)
variableName
- The namevariables
- List of variables to look intopublic java.lang.String getName()
public java.lang.String getShortName()
public java.lang.String getDescription()
public void setCategory(java.lang.String value)
value
- The new value for Categorypublic java.lang.String getCategory()
public java.lang.String toString()
toString
in class java.lang.Object
public void setIsNumeric(boolean value)
value
- The new value for IsNumericpublic boolean getIsNumeric()
public void setRealType(visad.RealType value)
value
- The new value for RealTypepublic visad.RealType getRealType()
public void setUnit(visad.Unit value)
value
- The new value for Unitpublic visad.Unit getUnit()
public void setMissingValue(double value)
value
- The new value for MissingValuepublic double getMissingValue()