Class GempakParameter


  • public class GempakParameter
    extends GridParameter
    Class which represents a GEMPAK parameter. Add on decimal scale and numeric flag to the superclass.
    • Constructor Detail

      • GempakParameter

        public GempakParameter​(int number,
                               String name,
                               String description,
                               String unit,
                               int scale)
        Create a new numeric GEMPAK parameter
      • GempakParameter

        public GempakParameter​(int number,
                               String name,
                               String description,
                               String unit,
                               int scale,
                               boolean isNumeric)
        Create a new GEMPAK parameter
        Parameters:
        number - parameter number
        name - name
        description - description
        unit - of parameter
        scale - decimal (10E*) scaling factor
        isNumeric - flag for numeric
    • Method Detail

      • getDecimalScale

        public int getDecimalScale()
        Get the decimal scale
        Returns:
        the decimal scale
      • getIsNumeric

        public boolean getIsNumeric()
        Get whether this is numeric or not
        Returns:
        true if numeric
      • setIsNumeric

        public void setIsNumeric​(boolean yesorno)
        Set whether this is numeric or not
        Parameters:
        yesorno - true if numeric
      • toString

        public String toString()
        Return a String representation of this object
        Overrides:
        toString in class GridParameter
        Returns:
        a String representation of this object
      • equals

        public boolean equals​(Object o)
        Check for equality
        Overrides:
        equals in class GridParameter
        Parameters:
        o - the object in question
        Returns:
        true if has the same parameters
      • hashCode

        public int hashCode()
        Generate a hash code.
        Overrides:
        hashCode in class GridParameter
        Returns:
        the hash code