public final class ParcelMode extends java.lang.Object implements XmlPersistable
Modifier and Type | Class and Description |
---|---|
static class |
ParcelMode.Factory
Factory class for decoding an XML element into an instance of the
enclosing class.
|
Modifier and Type | Field and Description |
---|---|
static ParcelMode |
BOTTOM
Compute a path for a lifted parcel whose initial conditions are based on
the pressure, potential-temperature, and mixing-ratio of the sounding
at maximum pressure.
|
static ParcelMode |
LAYER
Compute a path for a lifted parcel whose initial conditions are based on
the mean pressure, potential-temperature, and mixing-ratio of the
atmospheric layer below the input pressure.
|
static ParcelMode |
POINT
Compute a path for a lifted parcel whose initial conditions are based on
the pressure and temperature of the input point and the mixing-ratio of
the dew-point profile at the input pressure.
|
static ParcelMode |
PRESSURE
Compute a path for a lifted parcel whose initial conditions are based on
the temperature and dew-point of the profiles at the input pressure.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
createElement(XmlEncoder encoder)
Returns the XML element corresponding to this instance.
|
boolean |
initFromXml(XmlEncoder encoder,
org.w3c.dom.Element elt)
Returns an instance corresponding to an XML element.
|
public static final ParcelMode POINT
public static final ParcelMode PRESSURE
POINT
in that the initial temperature is taken
from the temperature profile rather than the input point.public static final ParcelMode LAYER
public static final ParcelMode BOTTOM
public org.w3c.dom.Element createElement(XmlEncoder encoder)
createElement
in interface XmlPersistable
encoder
- The XML encoder.public boolean initFromXml(XmlEncoder encoder, org.w3c.dom.Element elt)
Returns an instance corresponding to an XML element. Because this class encodes instances using the "factory" tag, this method should never be invoked.
This implementation always returns true
.
initFromXml
in interface XmlPersistable
encoder
- The XML encoder.elt
- The XML elementtrue
if it is OK to do the
default processing for this XML element.