|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grid.GridParameter
ucar.nc2.iosp.gempak.GempakParameter
public class GempakParameter
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 |
---|
public GempakParameter(int number, String name, String description, String unit, int scale)
number
- name
- description
- unit
- of parameterscale
- decimal (10E*) scaling factorpublic GempakParameter(int number, String name, String description, String unit, int scale, boolean isNumeric)
number
- name
- description
- unit
- of parameterscale
- decimal (10E*) scaling factorisNumeric
- flag for numericMethod Detail |
---|
public int getDecimalScale()
public boolean getIsNumeric()
public void setIsNumeric(boolean yesorno)
yesorno
- true if numericpublic String toString()
toString
in class GridParameter
public boolean equals(Object o)
equals
in class GridParameter
o
- the object in question
public int hashCode()
hashCode
in class GridParameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |