Package ucar.unidata.view.sounding
Class SkewTReadoutTable.PTRDerivedReadout
java.lang.Object
ucar.unidata.view.sounding.RealReadout
ucar.unidata.view.sounding.SkewTReadoutTable.MyReadout
ucar.unidata.view.sounding.SkewTReadoutTable.PTRDerivedReadout
- All Implemented Interfaces:
PropertyChangeListener,EventListener
- Direct Known Subclasses:
SkewTReadoutTable.LCLAltitudeReadout,SkewTReadoutTable.LCLPressureReadout,SkewTReadoutTable.LCLTemperatureReadout
- Enclosing class:
SkewTReadoutTable
protected abstract static class SkewTReadoutTable.PTRDerivedReadout
extends SkewTReadoutTable.MyReadout
Provides support for readouts derived from pressure, temperature, and
mixing-ratio.
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.view.sounding.RealReadout
RealReadout.FormatProperty, RealReadout.NameProperty, RealReadout.NumericValueProperty, RealReadout.UnitProperty -
Field Summary
Fields inherited from class ucar.unidata.view.sounding.RealReadout
FORMAT, NAME, NUMERIC_STRING, REAL_UNIT, REALTYPE_NAME, REALTYPE_UNIT, SPECIFIED_NAME, SPECIFIED_UNIT, UNIT_STRING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPTRDerivedReadout(String name, String unitString, int fractionDigitCount) Constructs from a name, unit, and format. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompute()Computes the value of the derived quantity.protected abstract RealComputes the value of the derived quantity from pressure, temperature, and dew-point.Gets the value of the dew-point property.Gets the value of the pressure property.Gets the value of the temperature property.voidsetDewPoint(Real dewPoint) Sets the dew-point property.voidsetPressure(Real pressure) Sets the pressure property.voidsetTemperature(Real temperature) Sets the temperature property.Methods inherited from class ucar.unidata.view.sounding.RealReadout
addPropertyChangeListener, getName, getNumericString, getUnitString, propertyChange, setFormat, setNameUse, setReal, setSpecifiedName, setSpecifiedUnit, setUnitUse
-
Constructor Details
-
PTRDerivedReadout
protected PTRDerivedReadout(String name, String unitString, int fractionDigitCount) throws ParseException Constructs from a name, unit, and format.- Parameters:
name- The name of the readout.unitString- The unit specification for the readout.fractionDigitCount- The number of digits to have after the decimal point.- Throws:
ParseException- if the unit specification couldn't be parsed.
-
-
Method Details
-
setPressure
Sets the pressure property.- Parameters:
pressure- The new value.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getPressure
Gets the value of the pressure property.- Returns:
- The value of the pressure property.
-
setTemperature
Sets the temperature property.- Parameters:
temperature- The new value.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getTemperature
Gets the value of the temperature property.- Returns:
- The value of the temperature property.
-
setDewPoint
Sets the dew-point property.- Parameters:
dewPoint- The new value.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getDewPoint
Gets the value of the dew-point property.- Returns:
- The value of the dew-point property.
-
compute
Computes the value of the derived quantity.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
compute
protected abstract Real compute(Real pressure, Real temperature, Real dewPoint) throws VisADException, RemoteException Computes the value of the derived quantity from pressure, temperature, and dew-point.- Parameters:
pressure- The pressure.temperature- The temperature.dewPoint- The dew-point.- Returns:
- The value of the derived quantity.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-