ucar.unidata.view.sounding
Class SaturationMixingRatioBean

java.lang.Object
  extended by ucar.unidata.view.sounding.ClockedBean
      extended by ucar.unidata.view.sounding.SaturationMixingRatioBean

public final class SaturationMixingRatioBean
extends ClockedBean

A Java Bean that computes saturation mixing ratio from a pressure and the dew-point at that pressure.

Version:
$Revision: 1.6 $ $Date: 2005/05/13 18:33:36 $
Author:
Steven R. Emmerson

Field Summary
static String OUTPUT_PROPERTY_NAME
          The name of the saturation mixing-ratio output-property.
 
Constructor Summary
SaturationMixingRatioBean(BeanNetwork network)
          Constructs from the network in which this bean will be a component.
 
Method Summary
 Data getSaturationMixingRatio()
          Returns the value of the saturation mixing-ratio property.
 void setDewPoint(Real dewPoint)
          Sets the input dew-point.
 void setPressure(Real pressure)
          Sets the input pressure.
 
Methods inherited from class ucar.unidata.view.sounding.ClockedBean
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_PROPERTY_NAME

public static final String OUTPUT_PROPERTY_NAME
The name of the saturation mixing-ratio output-property.

See Also:
Constant Field Values
Constructor Detail

SaturationMixingRatioBean

public SaturationMixingRatioBean(BeanNetwork network)
Constructs from the network in which this bean will be a component.

Parameters:
network - The bean network.
Method Detail

setDewPoint

public void setDewPoint(Real dewPoint)
                 throws TypeException,
                        VisADException,
                        RemoteException
Sets the input dew-point. The data is not copied.

Parameters:
dewPoint - The input dew-point.
Throws:
NullPointerException - if the argument is null.
TypeException - if the profile has the wrong type.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.

setPressure

public void setPressure(Real pressure)
                 throws TypeException,
                        VisADException,
                        RemoteException
Sets the input pressure. The data is not copied.

Parameters:
pressure - The input pressure.
Throws:
NullPointerException - if the argument is null.
TypeException - if the pressure has the wrong type.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.

getSaturationMixingRatio

public Data getSaturationMixingRatio()
Returns the value of the saturation mixing-ratio property.

Returns:
The value of the saturation mixing-ratio property.