Class VarInfo

java.lang.Object
ucar.unidata.data.VarInfo

public class VarInfo extends Object
Class Variable Holds info about track variables
Version:
$Revision: 1.4 $
Author:
IDV Development Team
  • Constructor Details

    • VarInfo

      public VarInfo(String name, String desc, Unit unit)
      ctor
      Parameters:
      name - name
      desc - desc
      unit - unit
    • VarInfo

      public VarInfo(String name, String desc, String category, Unit unit)
      ctor
      Parameters:
      name - name
      desc - desc
      category - the category of the var
      unit - unit
    • VarInfo

      public VarInfo(String name, String desc, String category, Unit unit, double missingValue)
      ctor
      Parameters:
      name - name
      desc - desc
      category - the category of the var
      unit - unit
      missingValue - missing value
    • VarInfo

      public VarInfo(String name, Unit unit)
      ctor
      Parameters:
      name - name
      unit - unit
    • VarInfo

      public VarInfo(String name, String units)
      ctor
      Parameters:
      name - name
      units - unit string
    • VarInfo

      public VarInfo(String name, String desc, String units)
      ctor
      Parameters:
      name - name
      desc - description
      units - unit string
  • Method Details

    • getVarInfo

      public static VarInfo getVarInfo(String variableName, List<VarInfo> variables)
      Utility to find the variable with the given name
      Parameters:
      variableName - The name
      variables - List of variables to look into
      Returns:
      The variable.
    • getName

      public String getName()
      get the name
      Returns:
      name
    • getShortName

      public String getShortName()
      get the name
      Returns:
      name
    • getDescription

      public String getDescription()
      get desc
      Returns:
      desc
    • setCategory

      public void setCategory(String value)
      Set the Category property.
      Parameters:
      value - The new value for Category
    • getCategory

      public String getCategory()
      Get the Category property.
      Returns:
      The Category
    • toString

      public String toString()
      to string
      Overrides:
      toString in class Object
      Returns:
      to string
    • setIsNumeric

      public void setIsNumeric(boolean value)
      Set the IsNumeric property.
      Parameters:
      value - The new value for IsNumeric
    • getIsNumeric

      public boolean getIsNumeric()
      Get the IsNumeric property.
      Returns:
      The IsNumeric
    • setRealType

      public void setRealType(RealType value)
      Set the RealType property.
      Parameters:
      value - The new value for RealType
    • getRealType

      public RealType getRealType()
      Get the RealType property.
      Returns:
      The RealType
    • setUnit

      public void setUnit(Unit value)
      Set the Unit property.
      Parameters:
      value - The new value for Unit
    • getUnit

      public Unit getUnit()
      Get the Unit property.
      Returns:
      The Unit
    • setMissingValue

      public void setMissingValue(double value)
      Set the MissingValue property.
      Parameters:
      value - The new value for MissingValue
    • getMissingValue

      public double getMissingValue()
      Get the MissingValue property.
      Returns:
      The MissingValue