public class AddeSoundingAdapter extends SoundingAdapterImpl implements SoundingAdapter
debug, defaults, haveInitialized, soundings, stations, times
Constructor and Description |
---|
AddeSoundingAdapter()
Construct an empty AddeSoundingAdapter
|
AddeSoundingAdapter(java.lang.String server)
Retreive upper air data from a remote ADDE server using only
mandatory data.
|
AddeSoundingAdapter(java.lang.String server,
java.lang.String dataset)
Retreive upper air data from a remote ADDE server using only
mandatory data.
|
AddeSoundingAdapter(java.lang.String server,
java.lang.String mandDataset,
java.lang.String sigDataset)
Retreive upper air data from a remote ADDE server using only
mandatory data.
|
AddeSoundingAdapter(java.lang.String server,
java.lang.String mandDataset,
java.lang.String sigDataset,
boolean mainHours)
Retreive upper air data from a remote ADDE server using only
mandatory data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMandatoryURL(SoundingOb sound)
Make the mandatory levels URL for the given sounding
|
java.lang.String |
getMandDataset()
Set the mandatory data set name
|
java.lang.String |
getSigDataset()
Get the significant data set name
|
java.lang.String |
getSigURL(SoundingOb sound)
Make the url for the significant levels for the sounding
|
java.lang.String |
getSource()
Get the source of the data (server)
|
protected void |
init()
Initialize the class.
|
SoundingOb |
initSoundingOb(SoundingOb sound)
Check to see if the RAOB has any data
|
static void |
main(java.lang.String[] args)
test by running java ucar.unidata.data.sounding.AddeSoundingAdapter
|
void |
setMandDataset(java.lang.String value)
Set the mandatory data set name
|
void |
setSigDataset(java.lang.String value)
Set the significant data set name
|
void |
setSource(java.lang.String server)
Set the ADDE server name
|
java.lang.String |
toString()
The string representation
|
void |
update()
Update this adapter for new data
|
checkInit, dbPrint, getDflt, getSoundingOb, getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
public AddeSoundingAdapter()
public AddeSoundingAdapter(java.lang.String server) throws java.lang.Exception
server
- name or IP address of remote serverjava.lang.Exception
- (AddeException) if there is no data available or there
is trouble connecting to the remote serverpublic AddeSoundingAdapter(java.lang.String server, java.lang.String dataset) throws java.lang.Exception
server
- name or IP address of remote serverdataset
- name of ADDE dataset (group/descriptor)java.lang.Exception
- (AddeException) if there is no data available or there
is trouble connecting to the remote serverpublic AddeSoundingAdapter(java.lang.String server, java.lang.String mandDataset, java.lang.String sigDataset) throws java.lang.Exception
server
- name or IP address of remote servermandDataset
- name of mandatory level upper air ADDE
dataset (group/descriptor)sigDataset
- name of significant level upper air ADDE
dataset (group/descriptor)java.lang.Exception
- (AddeException) if there is no data available
or there is trouble connecting to the remote serverpublic AddeSoundingAdapter(java.lang.String server, java.lang.String mandDataset, java.lang.String sigDataset, boolean mainHours) throws java.lang.Exception
server
- name or IP address of remote servermandDataset
- name of mandatory level upper air ADDE
dataset (group/descriptor)sigDataset
- name of significant level upper air ADDE
dataset (group/descriptor)mainHours
- only get data for main (00 & 12Z) hoursjava.lang.Exception
- (AddeException) if there is no data available
or there is trouble connecting to the remote serverprotected void init() throws java.lang.Exception
init
in class SoundingAdapterImpl
java.lang.Exception
- problem occurredpublic void update()
update
in interface SoundingAdapter
public void setSource(java.lang.String server)
setSource
in interface SoundingAdapter
server
- server name or IP addresspublic java.lang.String getSource()
getSource
in interface SoundingAdapter
public void setMandDataset(java.lang.String value)
value
- mandatory data set namepublic java.lang.String getMandDataset()
public void setSigDataset(java.lang.String value)
value
- the significant data set namepublic java.lang.String getSigDataset()
public SoundingOb initSoundingOb(SoundingOb sound)
initSoundingOb
in interface SoundingAdapter
initSoundingOb
in class SoundingAdapterImpl
sound
- sounding to checkpublic java.lang.String getMandatoryURL(SoundingOb sound)
sound
- soundingpublic java.lang.String getSigURL(SoundingOb sound)
sound
- the soundingpublic static void main(java.lang.String[] args)
args
- array of arguments. Takes up to 3 arguments as
"server mandatory dataset significant dataset"
Use "x" for any of these arguments to use the default.public java.lang.String toString()
toString
in class java.lang.Object