ucar.unidata.view.sounding
Class SkewTReadoutTable.MixingRatioReadout

java.lang.Object
  extended by ucar.unidata.view.sounding.RealReadout
      extended by ucar.unidata.view.sounding.SkewTReadoutTable.MyReadout
          extended by ucar.unidata.view.sounding.SkewTReadoutTable.PTDerivedReadout
              extended by ucar.unidata.view.sounding.SkewTReadoutTable.MixingRatioReadout
All Implemented Interfaces:
PropertyChangeListener, EventListener
Enclosing class:
SkewTReadoutTable

protected static class SkewTReadoutTable.MixingRatioReadout
extends SkewTReadoutTable.PTDerivedReadout

Provides support for mixing ratio readouts.


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
SkewTReadoutTable.MixingRatioReadout()
          Constructs from nothing.
SkewTReadoutTable.MixingRatioReadout(String name)
          Constructs from a name for the readout.
 
Method Summary
protected  Real compute(Real pressure, Real temperature)
          Computes the derived quantity.
 
Methods inherited from class ucar.unidata.view.sounding.SkewTReadoutTable.PTDerivedReadout
compute, getPressure, getTemperature, setPressure, setTemperature
 
Methods inherited from class ucar.unidata.view.sounding.RealReadout
addPropertyChangeListener, getName, getNumericString, getUnitString, propertyChange, setFormat, setNameUse, setReal, setSpecifiedName, setSpecifiedUnit, setUnitUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkewTReadoutTable.MixingRatioReadout

public SkewTReadoutTable.MixingRatioReadout()
                                     throws ParseException
Constructs from nothing.

Throws:
ParseException - Bad internal unit specification.

SkewTReadoutTable.MixingRatioReadout

public SkewTReadoutTable.MixingRatioReadout(String name)
                                     throws ParseException
Constructs from a name for the readout.

Parameters:
name - The name for the readout.
Throws:
ParseException - Bad internal unit specification.
Method Detail

compute

protected Real compute(Real pressure,
                       Real temperature)
                throws RemoteException,
                       VisADException
Computes the derived quantity.

Specified by:
compute in class SkewTReadoutTable.PTDerivedReadout
Parameters:
pressure - The pressure.
temperature - The temperature.
Returns:
The value of the derived quantity.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.