Package ucar.unidata.view.sounding
Class DensityProfile
java.lang.Object
ucar.unidata.view.sounding.DensityProfile
Provides support for the computation of the vertical profile of air-density.
- Version:
- $Id: DensityProfile.java,v 1.13 2005/05/13 18:33:28 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs from nothing.DensityProfile(Field temperatureProfile, Field dewPointProfile) Constructs from temperature and dew-point profiles. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener.voidaddPropertyChangeListener(String name, PropertyChangeListener listener) Adds a PropertyChangeListener for a named property.protected voidComputes the air-density profile if appropriate.booleanIndicates if this instance is identical to another object.Returns the air-density profile.inthashCode()Returns the hash code of this instance.voidRemoves a PropertyChangeListener.voidremovePropertyChangeListener(String name, PropertyChangeListener listener) Removes a PropertyChangeListener for a named property.voidsetActive(boolean yes) Enables or disables this instance.voidsetDewPointProfile(Field dewPointProfile) Sets the dew-point profile.voidsetProfiles(Field temperatureProfile, Field dewPointProfile) Sets the temperature and dew-point profiles.voidsetTemperatureProfile(Field temperatureProfile) Sets the temperature profile.
-
Field Details
-
DENSITY_PROFILE
The name of the density-profile property.- See Also:
-
-
Constructor Details
-
DensityProfile
Constructs from nothing.- Throws:
VisADException- VisAD failure;
-
DensityProfile
public DensityProfile(Field temperatureProfile, Field dewPointProfile) throws VisADException, RemoteException Constructs from temperature and dew-point profiles.- Parameters:
temperatureProfile- The temperature profile.dewPointProfile- The dew-point profile.- Throws:
VisADException- VisAD failure;RemoteException- Java RMI failure.
-
-
Method Details
-
addPropertyChangeListener
Adds a PropertyChangeListener.- Parameters:
listener- The PropertyChangeListener to be added.
-
addPropertyChangeListener
Adds a PropertyChangeListener for a named property.- Parameters:
name- The name of the property.listener- The PropertyChangeListener to be added.
-
removePropertyChangeListener
Removes a PropertyChangeListener.- Parameters:
listener- The PropertyChangeListener to be removed.
-
removePropertyChangeListener
Removes a PropertyChangeListener for a named property.- Parameters:
name- The name of the property.listener- The PropertyChangeListener to be removed.
-
setActive
Enables or disables this instance. If an instance is enabled, then it will recompute the air-density profile when appropriate.- Parameters:
yes- Whether or not this instance is to be enabled.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setProfiles
public void setProfiles(Field temperatureProfile, Field dewPointProfile) throws VisADException, RemoteException Sets the temperature and dew-point profiles. This instance will register itself with the profiles in order to receive change notifications.- Parameters:
temperatureProfile- The air-temperature profile.dewPointProfile- The dew-point profile.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setTemperatureProfile
Sets the temperature profile. This instance will register itself with the profile in order to receive change notifications.- Parameters:
temperatureProfile- The air-temperature profile.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setDewPointProfile
Sets the dew-point profile. This instance will register itself with the profile in order to receive change notifications.- Parameters:
dewPointProfile- The dew-point profile.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
computeIfAppropriate
Computes the air-density profile if appropriate.- Throws:
VisADException- VisAD failure;RemoteException- Java RMI failure;
-
getDensityProfile
Returns the air-density profile.- Returns:
- The air-density profile.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
equals
Indicates if this instance is identical to another object. -
hashCode
public int hashCode()Returns the hash code of this instance.
-