public class CapeCalculator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
CAPE
The name of the Convective Available Potential Energy (CAPE) property.
|
java.lang.String |
CIN
The name of the Convective Inhibition (CIN) property.
|
Constructor and Description |
---|
CapeCalculator()
Constructs from nothing.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a named property.
|
visad.Real |
getCAPE()
Returns the value of the CAPE property.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.
|
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a named property.
|
void |
setCape(visad.Field temperatureProfile,
visad.Field dewPointProfile,
visad.Field wetTrajectory)
Sets the CAPE property from profiles for temperature and dew-point and
the trajectory of the saturated portion of a lifted parcel.
|
protected void |
setCape(visad.Real newCape)
Sets the CAPE property.
|
public java.lang.String CAPE
public java.lang.String CIN
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be removed.java.lang.NullPointerException
- if the name is null
.public void setCape(visad.Field temperatureProfile, visad.Field dewPointProfile, visad.Field wetTrajectory) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
temperatureProfile
- The temperature profile.dewPointProfile
- The dew-point profile.wetTrajectory
- The trajectory of the saturated portion
of the lifted parcel.visad.TypeException
- Somthing has the wrong type.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setCape(visad.Real newCape)
newCape
- The new value.public visad.Real getCAPE()