ucar.nc2.iosp.gempak
Class GempakParameter

java.lang.Object
  extended by ucar.grid.GridParameter
      extended by ucar.nc2.iosp.gempak.GempakParameter

public class GempakParameter
extends GridParameter

Class which represents a GEMPAK parameter. Add on decimal scale and numeric flag to the superclass.


Field Summary
 
Fields inherited from class ucar.grid.GridParameter
description, name, number, unit
 
Constructor Summary
GempakParameter(int number, String name, String description, String unit, int scale)
          Create a new numeric GEMPAK parameter
GempakParameter(int number, String name, String description, String unit, int scale, boolean isNumeric)
          Create a new GEMPAK parameter
 
Method Summary
 boolean equals(Object o)
          Check for equality
 int getDecimalScale()
          Get the decimal scale
 boolean getIsNumeric()
          Get whether this is numeric or not
 int hashCode()
          Generate a hash code.
 void setIsNumeric(boolean yesorno)
          Set whether this is numeric or not
 String toString()
          Return a String representation of this object
 
Methods inherited from class ucar.grid.GridParameter
getDescription, getName, getNumber, getUnit, setDescription, setName, setNumber, setUnit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GempakParameter

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

Parameters:
number -
name -
description -
unit - of parameter
scale - decimal (10E*) scaling factor

GempakParameter

public GempakParameter(int number,
                       String name,
                       String description,
                       String unit,
                       int scale,
                       boolean isNumeric)
Create a new GEMPAK parameter

Parameters:
number -
name -
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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.