ucar.unidata.data.sounding
Class SoundingOb

java.lang.Object
  extended by ucar.unidata.data.sounding.SoundingOb

public class SoundingOb
extends Object

Provide support for an upper air observation with station information, a timestamp, and data.


Constructor Summary
SoundingOb()
          No-op constructor for XML persistence
SoundingOb(Station station, DateTime timestamp)
          Create a sounding observation.
SoundingOb(Station station, DateTime timestamp, RAOB raob)
          Create a sounding observation.
 
Method Summary
 boolean equals(Object other)
          Check if another Object is equal to this one
 String getLabel()
          Print a pretty version of the object.
 String getMandatoryFile()
          Get the MandatoryFile property.
 RAOB getRAOB()
          Return the RAOB associated with this observation
 String getSigFile()
          Get the SigFile property.
 Station getStation()
          Return the station information associated with this observation
 String getStationIdentifier()
          Return the identifier of the station associated with this observation
 DateTime getTimestamp()
          Return the timestamp of this observation
 boolean hasData()
          Check that the raob has both a temperature profile and a dewpoint profile; else return false.
 void setMandatoryFile(String value)
          Set the MandatoryFile property.
protected  void setRAOB(RAOB r)
          Set the RAOB member
 void setSigFile(String value)
          Set the SigFile property.
 void setStation(Station s)
          Set the station
 void setTimestamp(DateTime d)
          Set the date/time
 String toString()
          Return a string representation of this SoundingOb
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoundingOb

public SoundingOb()
No-op constructor for XML persistence


SoundingOb

public SoundingOb(Station station,
                  DateTime timestamp)
Create a sounding observation.

Parameters:
station - location information (lat, lon, id);
timestamp - time of the observation

SoundingOb

public SoundingOb(Station station,
                  DateTime timestamp,
                  RAOB raob)
Create a sounding observation.

Parameters:
station - location information (lat, lon, id);
timestamp - time of the observation
raob - the data
Method Detail

getStation

public Station getStation()
Return the station information associated with this observation

Returns:
the station

setStation

public void setStation(Station s)
Set the station

Parameters:
s - the station

getStationIdentifier

public String getStationIdentifier()
Return the identifier of the station associated with this observation

Returns:
the station ID

hasData

public boolean hasData()
Check that the raob has both a temperature profile and a dewpoint profile; else return false.

Returns:
check to see if this has a temp and dewpoint profile

getRAOB

public RAOB getRAOB()
Return the RAOB associated with this observation

Returns:
the RAOB

setRAOB

protected void setRAOB(RAOB r)
Set the RAOB member

Parameters:
r - the RAOB

getTimestamp

public DateTime getTimestamp()
Return the timestamp of this observation

Returns:
the time stamp

setTimestamp

public void setTimestamp(DateTime d)
Set the date/time

Parameters:
d - the timestamp

toString

public String toString()
Return a string representation of this SoundingOb

Overrides:
toString in class Object
Returns:
a string representation of this SoundingOb

getLabel

public String getLabel()
Print a pretty version of the object.

Returns:
a pretty version of this object

equals

public boolean equals(Object other)
Check if another Object is equal to this one

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if they are equal (same station and time)

setMandatoryFile

public void setMandatoryFile(String value)
Set the MandatoryFile property.

Parameters:
value - The new value for MandatoryFile

getMandatoryFile

public String getMandatoryFile()
Get the MandatoryFile property.

Returns:
The MandatoryFile

setSigFile

public void setSigFile(String value)
Set the SigFile property.

Parameters:
value - The new value for SigFile

getSigFile

public String getSigFile()
Get the SigFile property.

Returns:
The SigFile