Class MeanWindCell

java.lang.Object
visad.ActionImpl
ucar.unidata.view.sounding.MeanWindCell
All Implemented Interfaces:
Runnable, EventListener, Action, ThingChangedListener

public class MeanWindCell extends ActionImpl
Provides support for the computation of the density-weighted, mean horizontal wind.
Version:
$Id: MeanWindCell.java,v 1.14 2005/05/13 18:33:33 jeffmc Exp $
Author:
Steven R. Emmerson
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public static TupleType getType()
      Returns the type of the mean wind.
      Returns:
      The type of the mean wind.
    • getMissing

      public static Tuple getMissing()
      Returns the missing mean-wind value.
      Returns:
      The missing mean-wind value.
    • doAction

      public void doAction() throws VisADException, RemoteException
      Compute a new mean-wind value. This method will be invoked whenever the wind profile or density profile changes. This method will put the new value into the DataReference for the mean wind and will fire a PropertyChangeEvent for MEAN_WIND if the new value differs from the old.
      Specified by:
      doAction in class ActionImpl
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Adds a PropertyChangeListener.
      Parameters:
      listener - The PropertyChangeListener to be added.
    • addPropertyChangeListener

      public void addPropertyChangeListener(String name, PropertyChangeListener listener)
      Adds a PropertyChangeListener for a named property.
      Parameters:
      name - The name of the property.
      listener - The PropertyChangeListener to be added.
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Removes a PropertyChangeListener.
      Parameters:
      listener - The PropertyChangeListener to be removed.
    • removePropertyChangeListener

      public void removePropertyChangeListener(String name, PropertyChangeListener listener)
      Removes a PropertyChangeListener for a named property.
      Parameters:
      name - The name of the property.
      listener - The PropertyChangeListener to be removed.
    • setWindProfile

      public void setWindProfile(Field windProfile) throws VisADException, RemoteException
      Sets the wind profile.
      Parameters:
      windProfile - The horizontal wind profile.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setDensityProfile

      public void setDensityProfile(Field densityProfile) throws TypeException, VisADException, RemoteException
      Sets the air-density profile.
      Parameters:
      densityProfile - The air-density profile.
      Throws:
      TypeException - Argument has wrong VisAD MathType.
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getWind

      public Tuple getWind() throws VisADException, RemoteException
      Returns the mean wind.
      Returns:
      The mean, horizontal wind.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getMeanWindRef

      public DataReference getMeanWindRef()
      Returns the data reference for the mean wind.
      Returns:
      The data reference for the mean wind.
    • equals

      public boolean equals(Object obj)
      Indicates if this instance is identical to another object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The other object.
      Returns:
      true if and only if this instance is identical to the other object.
    • hashCode

      public int hashCode()
      Returns the hash code of this instance.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code of this instance.