|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.beans.InvisiblePropertiedBean
ucar.unidata.data.sounding.SoundingAdapterImpl
ucar.unidata.data.sounding.AddeSoundingAdapter
public class AddeSoundingAdapter
Class for retrieving upper air data from an ADDE remote server. Creates a SoundingOb for each of the stations on the remote server for the latest available data.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl |
|---|
debug, defaults, haveInitialized, soundings, stations, times |
| Constructor Summary | |
|---|---|
AddeSoundingAdapter()
Construct an empty AddeSoundingAdapter |
|
AddeSoundingAdapter(String server)
Retreive upper air data from a remote ADDE server using only mandatory data. |
|
AddeSoundingAdapter(String server,
String dataset)
Retreive upper air data from a remote ADDE server using only mandatory data. |
|
AddeSoundingAdapter(String server,
String mandDataset,
String sigDataset)
Retreive upper air data from a remote ADDE server using only mandatory data. |
|
AddeSoundingAdapter(String server,
String mandDataset,
String sigDataset,
boolean mainHours)
Retreive upper air data from a remote ADDE server using only mandatory data. |
|
| Method Summary | |
|---|---|
String |
getMandatoryURL(SoundingOb sound)
Make the mandatory levels URL for the given sounding |
String |
getMandDataset()
Set the mandatory data set name |
String |
getSigDataset()
Get the significant data set name |
String |
getSigURL(SoundingOb sound)
Make the url for the significant levels for the sounding |
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(String[] args)
test by running java ucar.unidata.data.sounding.AddeSoundingAdapter |
void |
setMandDataset(String value)
Set the mandatory data set name |
void |
setSigDataset(String value)
Set the significant data set name |
void |
setSource(String server)
Set the ADDE server name |
String |
toString()
The string representation |
void |
update()
Update this adapter for new data |
| Methods inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl |
|---|
checkInit, dbPrint, getDflt, getSoundingOb, getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations |
| Methods inherited from class ucar.unidata.beans.InvisiblePropertiedBean |
|---|
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.sounding.SoundingAdapter |
|---|
getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations |
| Constructor Detail |
|---|
public AddeSoundingAdapter()
public AddeSoundingAdapter(String server)
throws Exception
server - name or IP address of remote server
Exception - (AddeException) if there is no data available or there
is trouble connecting to the remote server
public AddeSoundingAdapter(String server,
String dataset)
throws Exception
server - name or IP address of remote serverdataset - name of ADDE dataset (group/descriptor)
Exception - (AddeException) if there is no data available or there
is trouble connecting to the remote server
public AddeSoundingAdapter(String server,
String mandDataset,
String sigDataset)
throws 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)
Exception - (AddeException) if there is no data available
or there is trouble connecting to the remote server
public AddeSoundingAdapter(String server,
String mandDataset,
String sigDataset,
boolean mainHours)
throws 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) hours
Exception - (AddeException) if there is no data available
or there is trouble connecting to the remote server| Method Detail |
|---|
protected void init()
throws Exception
init in class SoundingAdapterImplException - problem occurredpublic void update()
update in interface SoundingAdapterpublic void setSource(String server)
setSource in interface SoundingAdapterserver - server name or IP addresspublic String getSource()
getSource in interface SoundingAdapterpublic void setMandDataset(String value)
value - mandatory data set namepublic String getMandDataset()
public void setSigDataset(String value)
value - the significant data set namepublic String getSigDataset()
public SoundingOb initSoundingOb(SoundingOb sound)
initSoundingOb in interface SoundingAdapterinitSoundingOb in class SoundingAdapterImplsound - sounding to check
public String getMandatoryURL(SoundingOb sound)
sound - sounding
public String getSigURL(SoundingOb sound)
sound - the sounding
public static void main(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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||