protected abstract static class SkewTReadoutTable.PTRDerivedReadout extends SkewTReadoutTable.MyReadout
RealReadout.FormatProperty, RealReadout.NameProperty, RealReadout.NumericValueProperty, RealReadout.UnitPropertyFORMAT, NAME, NUMERIC_STRING, REAL_UNIT, REALTYPE_NAME, REALTYPE_UNIT, SPECIFIED_NAME, SPECIFIED_UNIT, UNIT_STRING| Modifier | Constructor and Description |
|---|---|
protected |
PTRDerivedReadout(java.lang.String name,
java.lang.String unitString,
int fractionDigitCount)
Constructs from a name, unit, and format.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
compute()
Computes the value of the derived quantity.
|
protected abstract visad.Real |
compute(visad.Real pressure,
visad.Real temperature,
visad.Real dewPoint)
Computes the value of the derived quantity from pressure,
temperature, and dew-point.
|
visad.Real |
getDewPoint()
Gets the value of the dew-point property.
|
visad.Real |
getPressure()
Gets the value of the pressure property.
|
visad.Real |
getTemperature()
Gets the value of the temperature property.
|
void |
setDewPoint(visad.Real dewPoint)
Sets the dew-point property.
|
void |
setPressure(visad.Real pressure)
Sets the pressure property.
|
void |
setTemperature(visad.Real temperature)
Sets the temperature property.
|
addPropertyChangeListener, getName, getNumericString, getUnitString, propertyChange, setFormat, setNameUse, setReal, setSpecifiedName, setSpecifiedUnit, setUnitUseprotected PTRDerivedReadout(java.lang.String name,
java.lang.String unitString,
int fractionDigitCount)
throws visad.data.units.ParseException
name - The name of the readout.unitString - The unit specification for the readout.fractionDigitCount - The number of digits to have after the
decimal point.visad.data.units.ParseException - if the unit specification couldn't be parsed.public void setPressure(visad.Real pressure)
throws visad.VisADException,
java.rmi.RemoteException
pressure - The new value.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getPressure()
public void setTemperature(visad.Real temperature)
throws visad.VisADException,
java.rmi.RemoteException
temperature - The new value.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getTemperature()
public void setDewPoint(visad.Real dewPoint)
throws visad.VisADException,
java.rmi.RemoteException
dewPoint - The new value.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getDewPoint()
protected void compute()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected abstract visad.Real compute(visad.Real pressure,
visad.Real temperature,
visad.Real dewPoint)
throws visad.VisADException,
java.rmi.RemoteException
pressure - The pressure.temperature - The temperature.dewPoint - The dew-point.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.