ucar.unidata.view.sounding
Class PseudoAdiabaticTrajectory

java.lang.Object
  extended by ucar.unidata.view.sounding.PseudoAdiabaticTrajectory

public class PseudoAdiabaticTrajectory
extends Object

Provides support for the pseudo-adiabatic trajectory of a lifted parcel of air. Instances are immutable.

Version:
$Id: PseudoAdiabaticTrajectory.java,v 1.18 2005/05/13 18:33:35 jeffmc Exp $
Author:
Steven R. Emmerson

Constructor Summary
protected PseudoAdiabaticTrajectory(Real startingPressure, Real startingTemperature, Real startingDewPoint, Real endingPressure, TemperatureCalculatorFactory factory)
          Constructs from a starting pressure, temperature, and dew-point, an ending pressure, and temperature calculator factory.
 
Method Summary
 RealType getPressureRealType()
          Returns the type of the pressure quantity.
 SampledSet getSampledSet()
          Returns the domain of the parcel's trajectory.
 RealType getTemperatureRealType()
          Returns the type of the temperature quantity.
static PseudoAdiabaticTrajectory instance(Real startingPressure, Real startingTemperature, Real startingDewPoint, Real endingPressure)
          Constructs from a starting pressure, temperature, and dew-point, and an ending pressure.
static PseudoAdiabaticTrajectory instance(Real startingPressure, Real startingTemperature, Real startingDewPoint, Real endingPressure, TemperatureCalculatorFactory factory)
          Returns an instance of this class based on a starting pressure, temperature, and dew-point, an ending pressure, and temperature calculator factory.
 String toString()
          Returns the string version of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PseudoAdiabaticTrajectory

protected PseudoAdiabaticTrajectory(Real startingPressure,
                                    Real startingTemperature,
                                    Real startingDewPoint,
                                    Real endingPressure,
                                    TemperatureCalculatorFactory factory)
                             throws TypeException,
                                    VisADException,
                                    RemoteException
Constructs from a starting pressure, temperature, and dew-point, an ending pressure, and temperature calculator factory.

Parameters:
startingPressure - The starting pressure.
startingTemperature - The starting temperature.
startingDewPoint - The starting dew-point.
endingPressure - The ending pressure.
factory - The factory for creating a temperature calculator.
Throws:
TypeException - An argument has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

instance

public static PseudoAdiabaticTrajectory instance(Real startingPressure,
                                                 Real startingTemperature,
                                                 Real startingDewPoint,
                                                 Real endingPressure)
                                          throws TypeException,
                                                 VisADException,
                                                 RemoteException
Constructs from a starting pressure, temperature, and dew-point, and an ending pressure.

Parameters:
startingPressure - The starting pressure.
startingTemperature - The starting temperature.
startingDewPoint - The starting dew-point.
endingPressure - The ending pressure.
Returns:
An instance of this class.
Throws:
TypeException - An argument has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.

instance

public static PseudoAdiabaticTrajectory instance(Real startingPressure,
                                                 Real startingTemperature,
                                                 Real startingDewPoint,
                                                 Real endingPressure,
                                                 TemperatureCalculatorFactory factory)
                                          throws TypeException,
                                                 VisADException,
                                                 RemoteException
Returns an instance of this class based on a starting pressure, temperature, and dew-point, an ending pressure, and temperature calculator factory.

Parameters:
startingPressure - The starting pressure.
startingTemperature - The starting temperature.
startingDewPoint - The starting dew-point.
endingPressure - The ending pressure.
factory - The factory for creating a temperature calculator.
Returns:
An instance of this class.
Throws:
TypeException - An argument has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getPressureRealType

public RealType getPressureRealType()
                             throws VisADException
Returns the type of the pressure quantity.

Returns:
The type of the pressure quantity.
Throws:
VisADException - VisAD failure.

getTemperatureRealType

public RealType getTemperatureRealType()
                                throws VisADException
Returns the type of the temperature quantity.

Returns:
The type of the temperature quantity.
Throws:
VisADException - VisAD failure.

getSampledSet

public SampledSet getSampledSet()
Returns the domain of the parcel's trajectory.

Returns:
The domain of the parcel's trajectory.

toString

public String toString()
Returns the string version of this instance.

Overrides:
toString in class Object
Returns:
The string version of this instance.