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 void
init()
Initialize the adapter.initSoundingOb
(SoundingOb sound) Initialize a sounding obvoid
Set the source for this Adapter; used mostly by XML persistence.void
update()
Update internal data to reflect the current stateMethods 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, toString, wait, wait, wait
Methods 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:
init
in classSoundingAdapterImpl
- Throws:
Exception
- problem initializing
-
update
public void update()Update internal data to reflect the current state- Specified by:
update
in interfaceSoundingAdapter
-
getSource
Get the source for this Adapter; used mostly by XML persistence.- Specified by:
getSource
in interfaceSoundingAdapter
- Returns:
- the source (server or filename)
-
setSource
Set the source for this Adapter; used mostly by XML persistence.- Specified by:
setSource
in interfaceSoundingAdapter
- Parameters:
s
- new source
-
initSoundingOb
Initialize a sounding ob- Specified by:
initSoundingOb
in interfaceSoundingAdapter
- Specified by:
initSoundingOb
in classSoundingAdapterImpl
- Parameters:
sound
- ob to initialize- Returns:
- initialized observation
-