Package ucar.unidata.data.sounding
Class CDMStationProfileAdapter
java.lang.Object
ucar.unidata.beans.InvisiblePropertiedBean
ucar.unidata.data.sounding.SoundingAdapterImpl
ucar.unidata.data.sounding.CDMStationProfileAdapter
- All Implemented Interfaces:
Serializable,PropertiedBean,SoundingAdapter
The Class CDMStationProfileAdapter.
- See Also:
-
Field Summary
Fields inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl
debug, defaults, haveInitialized, soundings, stations, times -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new CDM station profile adapter.CDMStationProfileAdapter(File file) Instantiates a new CDM station profile adapter.CDMStationProfileAdapter(String filename) Instantiates a new CDM station profile adapter. -
Method Summary
Modifier and TypeMethodDescriptionGet the source for this Adapter; used mostly by XML persistence.protected voidinit()Initialize the adapter.initSoundingOb(SoundingOb sound) Initialize a sounding obvoidSet the source for this Adapter; used mostly by XML persistence.voidupdate()Update internal data to reflect the current stateMethods inherited from class ucar.unidata.data.sounding.SoundingAdapterImpl
checkInit, dbPrint, getDflt, getSoundingOb, getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStationsMethods inherited from class ucar.unidata.beans.InvisiblePropertiedBean
addProperty, addPropertyChangeListener, addPropertyChangeListener, disablePropertyChangeEvents, enablePropertyChangeEvents, getTitle, removePropertyChangeListener, removePropertyChangeListener, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ucar.unidata.data.sounding.SoundingAdapter
getSoundingObs, getSoundingTimes, getSoundingTimes, getStations, getStations
-
Constructor Details
-
CDMStationProfileAdapter
public CDMStationProfileAdapter()Instantiates a new CDM station profile adapter. -
CDMStationProfileAdapter
Instantiates a new CDM station profile adapter.- Parameters:
filename- the filename
-
CDMStationProfileAdapter
Instantiates a new CDM station profile adapter.- Parameters:
file- the file
-
-
Method Details
-
init
Initialize the adapter. Set the initialization flag to true. Subclasses should call super.init() after doing what they need to do.- Overrides:
initin classSoundingAdapterImpl- Throws:
Exception- problem initializing
-
update
public void update()Update internal data to reflect the current state- Specified by:
updatein interfaceSoundingAdapter
-
getSource
Get the source for this Adapter; used mostly by XML persistence.- Specified by:
getSourcein interfaceSoundingAdapter- Returns:
- the source (server or filename)
-
setSource
Set the source for this Adapter; used mostly by XML persistence.- Specified by:
setSourcein interfaceSoundingAdapter- Parameters:
s- new source
-
initSoundingOb
Initialize a sounding ob- Specified by:
initSoundingObin interfaceSoundingAdapter- Specified by:
initSoundingObin classSoundingAdapterImpl- Parameters:
sound- ob to initialize- Returns:
- initialized observation
-