ucar.unidata.view.sounding
Class LclTemperatureBean

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

public final class LclTemperatureBean
extends ClockedBean

A Java Bean that computes the temperature of the saturation-point from an initial pressure, temperature, and water-vapor mixing-ratio.

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

Field Summary
static String OUTPUT_PROPERTY_NAME
          The name of the saturation-point temperature property.
 
Constructor Summary
LclTemperatureBean(BeanNetwork network)
          Constructs from the network in which this bean will be a component.
 
Method Summary
 void clock()
          Computes the saturation-point temperature property from the input data.
 Data getSaturationPointTemperature()
          Returns the value of the saturation-point temperature property.
 void setPressure(Real initPres)
          Sets the initial pressure.
 void setTemperature(Real initTemp)
          Sets the initial temperature.
 void setWaterVaporMixingRatio(Real ratio)
          Sets the input water-vapor mixing-ratio.
 
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-point temperature property.

See Also:
Constant Field Values
Constructor Detail

LclTemperatureBean

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

Parameters:
network - The bean network.
Method Detail

setWaterVaporMixingRatio

public void setWaterVaporMixingRatio(Real ratio)
                              throws TypeException,
                                     VisADException,
                                     RemoteException
Sets the input water-vapor mixing-ratio. The data is not copied.

Parameters:
ratio - The input mixing-ratio.
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 initPres)
                 throws TypeException,
                        VisADException,
                        RemoteException
Sets the initial pressure. The data is not copied.

Parameters:
initPres - The initial 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.

setTemperature

public void setTemperature(Real initTemp)
                    throws TypeException,
                           VisADException,
                           RemoteException
Sets the initial temperature. The data is not copied.

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

clock

public void clock()
           throws TypeException,
                  VisADException,
                  RemoteException
Computes the saturation-point temperature property from the input data. A PropertyChangeEvent is fired for the output property if it differs from the previous value.

Throws:
TypeException - if the pressure has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getSaturationPointTemperature

public Data getSaturationPointTemperature()
Returns the value of the saturation-point temperature property. The data is not copied.

Returns:
The value of the saturation-point temperature property.