public class DensityProfile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DENSITY_PROFILE
The name of the density-profile property.
|
Constructor and Description |
---|
DensityProfile()
Constructs from nothing.
|
DensityProfile(visad.Field temperatureProfile,
visad.Field dewPointProfile)
Constructs from temperature and dew-point profiles.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a named property.
|
protected void |
computeIfAppropriate()
Computes the air-density profile if appropriate.
|
boolean |
equals(java.lang.Object obj)
Indicates if this instance is identical to another object.
|
visad.FlatField |
getDensityProfile()
Returns the air-density profile.
|
int |
hashCode()
Returns the hash code of this instance.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.
|
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a named property.
|
void |
setActive(boolean yes)
Enables or disables this instance.
|
void |
setDewPointProfile(visad.Field dewPointProfile)
Sets the dew-point profile.
|
void |
setProfiles(visad.Field temperatureProfile,
visad.Field dewPointProfile)
Sets the temperature and dew-point profiles.
|
void |
setTemperatureProfile(visad.Field temperatureProfile)
Sets the temperature profile.
|
public static final java.lang.String DENSITY_PROFILE
public DensityProfile() throws visad.VisADException
visad.VisADException
- VisAD failure;public DensityProfile(visad.Field temperatureProfile, visad.Field dewPointProfile) throws visad.VisADException, java.rmi.RemoteException
temperatureProfile
- The temperature profile.dewPointProfile
- The dew-point profile.visad.VisADException
- VisAD failure;java.rmi.RemoteException
- Java RMI failure.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be removed.public void setActive(boolean yes) throws visad.VisADException, java.rmi.RemoteException
yes
- Whether or not this instance is to be enabled.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setProfiles(visad.Field temperatureProfile, visad.Field dewPointProfile) throws visad.VisADException, java.rmi.RemoteException
temperatureProfile
- The air-temperature profile.dewPointProfile
- The dew-point profile.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setTemperatureProfile(visad.Field temperatureProfile) throws visad.VisADException, java.rmi.RemoteException
temperatureProfile
- The air-temperature profile.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setDewPointProfile(visad.Field dewPointProfile) throws visad.VisADException, java.rmi.RemoteException
dewPointProfile
- The dew-point profile.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void computeIfAppropriate() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure;java.rmi.RemoteException
- Java RMI failure;public visad.FlatField getDensityProfile() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other object.true
if and only if this instance
is identical to the other object.public int hashCode()
hashCode
in class java.lang.Object