net.agmodel.weatherData
Class RadiationKind
java.lang.Object
|
+--net.agmodel.weatherData.RadiationKind
- All Implemented Interfaces:
- Comparable, Serializable
- public final class RadiationKind
- extends Object
- implements Serializable, Comparable
A set of type-safe constants that represent the different kinds of radiation data.
Supports locale dependent names for each kind, and iteration through the set.
Use them just like standard int constants eg RadiationKind.DIFFUSE
(Uses net.agmodel.resources.WeatherDataResources for the names).
Follows the style for typed classes described in "Create enumerated constants in Java" by Eric Armstrong
JavaWorld July 1997
- See Also:
- Serialized Form
rb
protected static ResourceBundle rb
GLOBAL
public static final RadiationKind GLOBAL
NET
public static final RadiationKind NET
DIRECT
public static final RadiationKind DIRECT
DIFFUSE
public static final RadiationKind DIFFUSE
PPFD
public static final RadiationKind PPFD
ord
public final int ord
- Used to provide an equivalent of the ord(A) function.
radiationKindName
public String radiationKindName
iterator
public static Iterator iterator()
toString
public String toString()
- Overrides:
toString in class Object
- Returns:
- the name of the element in the language of the default Locale
size
public static int size()
- Returns:
- the number of elements
first
public static RadiationKind first()
- Returns:
- the first element in the list
last
public static RadiationKind last()
prev
public RadiationKind prev()
next
public RadiationKind next()
equals
public boolean equals(Object a)
- Overrides:
equals in class Object
- Returns:
- true if RadiationKind.A.ord==RadiationKind.B.ord, regardless of the languages used with A and B
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
compareTo
public int compareTo(Object a)
- Specified by:
compareTo in interface Comparable