Package ucar.unidata.view.sounding
Class LclTemperatureBean
java.lang.Object
ucar.unidata.view.sounding.ClockedBean
ucar.unidata.view.sounding.LclTemperatureBean
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
FieldsModifier and TypeFieldDescriptionstatic final String
The name of the saturation-point temperature property. -
Constructor Summary
ConstructorsConstructorDescriptionLclTemperatureBean
(BeanNetwork network) Constructs from the network in which this bean will be a component. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clock()
Computes the saturation-point temperature property from the input data.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
-
Field Details
-
OUTPUT_PROPERTY_NAME
The name of the saturation-point temperature property.- See Also:
-
-
Constructor Details
-
LclTemperatureBean
Constructs from the network in which this bean will be a component.- Parameters:
network
- The bean network.
-
-
Method Details
-
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 isnull
.TypeException
- if the profile has the wrong type.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
setPressure
Sets the initial pressure. The data is not copied.- Parameters:
initPres
- The initial pressure.- Throws:
NullPointerException
- if the argument isnull
.TypeException
- if the pressure has the wrong type.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
setTemperature
Sets the initial temperature. The data is not copied.- Parameters:
initTemp
- The initial temperature.- Throws:
NullPointerException
- if the argument isnull
.TypeException
- if the temperature has the wrong type.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
clock
Computes the saturation-point temperature property from the input data. APropertyChangeEvent
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
Returns the value of the saturation-point temperature property. The data is not copied.- Returns:
- The value of the saturation-point temperature property.
-