public final class LclTemperatureBean extends ClockedBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OUTPUT_PROPERTY_NAME
The name of the saturation-point temperature property.
|
Constructor and Description |
---|
LclTemperatureBean(BeanNetwork network)
Constructs from the network in which this bean will be a component.
|
Modifier and Type | Method and Description |
---|---|
void |
clock()
Computes the saturation-point temperature property from the input
data.
|
visad.Data |
getSaturationPointTemperature()
Returns the value of the saturation-point temperature property.
|
void |
setPressure(visad.Real initPres)
Sets the initial pressure.
|
void |
setTemperature(visad.Real initTemp)
Sets the initial temperature.
|
void |
setWaterVaporMixingRatio(visad.Real ratio)
Sets the input water-vapor mixing-ratio.
|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
public static final java.lang.String OUTPUT_PROPERTY_NAME
public LclTemperatureBean(BeanNetwork network)
network
- The bean network.public void setWaterVaporMixingRatio(visad.Real ratio) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
ratio
- The input mixing-ratio.java.lang.NullPointerException
- if the argument is null
.visad.TypeException
- if the profile has the wrong type.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setPressure(visad.Real initPres) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
initPres
- The initial pressure.java.lang.NullPointerException
- if the argument is null
.visad.TypeException
- if the pressure has the wrong type.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setTemperature(visad.Real initTemp) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
initTemp
- The initial temperature.java.lang.NullPointerException
- if the argument is null
.visad.TypeException
- if the temperature has the wrong type.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void clock() throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
PropertyChangeEvent
is fired for the output
property if it differs from the previous value.visad.TypeException
- if the pressure has the wrong type.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.Data getSaturationPointTemperature()