Class 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.
  • 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

      public void setPressure(Real pressure) throws VisADException, RemoteException
      Sets the pressure property.
      Parameters:
      pressure - The new value.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getPressure

      public Real getPressure()
      Gets the value of the pressure property.
      Returns:
      The value of the pressure property.
    • setTemperature

      public void setTemperature(Real temperature) throws VisADException, RemoteException
      Sets the temperature property.
      Parameters:
      temperature - The new value.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getTemperature

      public Real getTemperature()
      Gets the value of the temperature property.
      Returns:
      The value of the temperature property.
    • setDewPoint

      public void setDewPoint(Real dewPoint) throws VisADException, RemoteException
      Sets the dew-point property.
      Parameters:
      dewPoint - The new value.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getDewPoint

      public Real getDewPoint()
      Gets the value of the dew-point property.
      Returns:
      The value of the dew-point property.
    • compute

      protected void compute() throws VisADException, RemoteException
      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.