Class SoundingSet


public class SoundingSet extends CompositeDisplayable
Provides support for a CompositeDisplayable of Sounding-s. For purposes of PropertyChangeEvent-s, the last-added Sounding is the active one.
  • Field Details

    • PRESSURE

      public static String PRESSURE
      The name of the presure property.
    • TEMPERATURE

      public static String TEMPERATURE
      The name of the temperature property.
    • DEW_POINT

      public static String DEW_POINT
      The name of the dew-point property.
    • ACTIVE_SOUNDING

      public static String ACTIVE_SOUNDING
      The name of the active sounding property.
  • Constructor Details

  • Method Details

    • addSounding

      public void addSounding(Sounding sounding) throws RemoteException, VisADException
      Adds a sounding to this set. The sounding's constrainProfiles property is set to the value of this instance's constrainProfiles property. The sounding will be add to the end of the set.
      Parameters:
      sounding - The sounding to be added.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • addSounding

      public void addSounding(int index, Sounding sounding) throws RemoteException, VisADException
      Adds a sounding to this set. The sounding's constrainProfiles property is set to the value of this instance's constrainProfiles property.
      Parameters:
      index - The index of the sounding.
      sounding - The sounding to be added.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • removeSounding

      public void removeSounding(int index) throws IndexOutOfBoundsException, RemoteException, VisADException
      Removes a sounding from this set.
      Parameters:
      index - The index of the sounding.
      Throws:
      IndexOutOfBoundsException - The index is out of range.
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setOriginalProfiles

      public void setOriginalProfiles(int index) throws VisADException, RemoteException
      Reset the profiles at the given index
      Parameters:
      index - index of profile
      Throws:
      RemoteException - Java RMI exception
      VisADException - VisAD problem
    • setConstrainProfiles

      public void setConstrainProfiles(boolean yes) throws RemoteException, VisADException
      Sets the constrainProfiles property. When this property is set, profile temperatures are constrained to be equal to or greater than their corresponding profile dew-points. This method sets the constrainProfiles property in all Sounding children to match the given value.
      Parameters:
      yes - Whether or not to constrain temperatures to be equal to or greater than corresponding dew-points.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setPressure

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

      public Real getPressure()
      Returns the pressure property.
      Returns:
      The pressure property.
    • getTemperature

      public Real getTemperature()
      Returns the temperature property.
      Returns:
      The temperature property.
    • getDewPoint

      public Real getDewPoint()
      Returns the dew-point property.
      Returns:
      The dew-point property.
    • getPressureRealTypeSet

      public Set getPressureRealTypeSet() throws VisADException, RemoteException
      Returns the set of types of the pressures.
      Returns:
      The set of types of the pressures.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getTemperatureRealTypeSet

      public Set getTemperatureRealTypeSet() throws VisADException, RemoteException
      Returns the set of types of the temperatures.
      Returns:
      The set of types of the temperatures.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getDewPointRealTypeSet

      public Set getDewPointRealTypeSet() throws VisADException, RemoteException
      Returns the set of types of the dew-points.
      Returns:
      The set of types of the dew-points.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • clear

      public void clear() throws VisADException, RemoteException
      Clears this composite of all children.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setActiveSounding

      public void setActiveSounding(int index) throws VisADException, RemoteException
      Sets the active sounding.
      Parameters:
      index - The index of the active sounding. A value of -1 means that there is to be no active sounding.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setActiveSounding

      protected void setActiveSounding(Sounding sounding) throws VisADException, RemoteException
      Sets the active sounding property.
      Parameters:
      sounding - The new values.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • getActiveSounding

      public Sounding getActiveSounding()
      Returns the active sounding. NB: Does not reaturn a copy.
      Returns:
      The active sounding.
    • setLinesWidth

      public void setLinesWidth(float width, int lowerIndex, int upperIndex) throws RemoteException, VisADException
      _more_
      Parameters:
      width - _more_
      lowerIndex - _more_
      upperIndex - _more_
      Throws:
      RemoteException - _more_
      VisADException - _more_
    • setLineStyle

      public void setLineStyle(int style, int index) throws RemoteException, VisADException
      _more_
      Parameters:
      style - _more_
      index - _more_
      Throws:
      RemoteException - _more_
      VisADException - _more_