ucar.grib.grib2
Class Discipline

java.lang.Object
  extended by ucar.grib.grib2.Discipline

public final class Discipline
extends java.lang.Object

Class which represents a discipline from a parameter table. Each discipline has a set of categories associated with it. A parameter consists of a discipline( ie Meteorological_products), a Category( ie Temperature ) and a number that refers to a name( ie Temperature) see Parameters.txt


Constructor Summary
Discipline()
          Constructor for Discipline.
 
Method Summary
 Category getCategory(int cat)
          returns a Category for this Discipline given a Category number.
 java.lang.String getName()
          returns name of this Discipline.
 int getNumber()
          returns number of this Discipline.
 void setCategory(Category cat)
          adds a Category to this Discipline.
 void setName(java.lang.String name)
          sets name of this Discipline.
 void setNumber(int number)
          sets number of this Discipline.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Discipline

public Discipline()
Constructor for Discipline.

Method Detail

getNumber

public final int getNumber()
returns number of this Discipline.

Returns:
number

getName

public final java.lang.String getName()
returns name of this Discipline.

Returns:
name

getCategory

public final Category getCategory(int cat)
returns a Category for this Discipline given a Category number.

Parameters:
cat - category one wants
Returns:
Category

setNumber

public final void setNumber(int number)
sets number of this Discipline.

Parameters:
number - of this Discipline

setName

public final void setName(java.lang.String name)
sets name of this Discipline.

Parameters:
name - of this Discipline

setCategory

public final void setCategory(Category cat)
adds a Category to this Discipline.

Parameters:
cat - of this Discipline