Package ucar.unidata.data.sounding
Class RaobDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.sounding.RaobDataSource
- All Implemented Interfaces:
Sharable
,DataSource
,DataSourceFactory
,XmlPersistable
DataSource
for RAOB soundings.- Version:
- $Revision: 1.27 $ $Date: 2007/04/16 20:34:57 $
- Author:
- MetApps Development Team
-
Field Summary
FieldsFields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
Fields inherited from interface ucar.unidata.data.DataSource
DATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TIMESTRIDE, PROP_TITLE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs from nothing.RaobDataSource
(DataSourceDescriptor descriptor, String file, Hashtable properties) Constructs from a specification of the data-source.RaobDataSource
(DataSourceDescriptor descriptor, RaobDataSet rds, Hashtable properties) Constructs from a specification of the data-source. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is this data source capable of saving its data to local diskprotected void
Adds theDataChoice
s of the current input data viaDataSourceImpl.addDataChoice(DataChoice)
.protected List
Make the list of times associated with this DataSource for DataSelection.boolean
Check for equalitygetAllTimesForTimeDriver
(DataChoice dataChoice, DataSelection selection, List<DateTime> timeDriverTimes) _more_protected Data
getDataInner
(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) Get the list of urls from the remote servergetFile()
Get the File property.Get the RaobDataSet for this data sourcegetRDS()
Dynamically create the rds if needed and return itprotected List
<DataChoice> getTimeMatchingDataChoices
(List<SoundingOb> soundingObs) _more_protected List
<SoundingOb> getTimeMatchingSoundingObs
(List<DateTime> dTimes) _more_void
Override the init method for when this data source is unpersisted.protected List
saveDataToLocalDisk
(String prefix, Object loadId, boolean changeLinks) _Save the remote data to local diskvoid
Set the File property.void
setRaobDataSet
(RaobDataSet newRds) Set the RaobDataSet for this data sourceMethods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDefaultSave, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getFullDescription, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getLocationsForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesComponents, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, getSelectedDateTimes, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initAfterCreation, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, newFilesFromPolling, notifyDataChange, propertiesChanged, putCache, putCache, reloadData, reloadData, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDefaultSave, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, writeFieldMaskFile, writeFieldMaskFile
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
-
Field Details
-
useDriverTime
public boolean useDriverTime_more_
-
-
Constructor Details
-
RaobDataSource
public RaobDataSource()Constructs from nothing. This is necessary for use of this class as a JavaBean. -
RaobDataSource
public RaobDataSource(DataSourceDescriptor descriptor, RaobDataSet rds, Hashtable properties) throws VisADException Constructs from a specification of the data-source.- Parameters:
descriptor
- A description of the data-source.rds
- Radar datasourceproperties
- A map of associated attributes.- Throws:
VisADException
- if a VisAD failure occurs.
-
RaobDataSource
public RaobDataSource(DataSourceDescriptor descriptor, String file, Hashtable properties) throws VisADException Constructs from a specification of the data-source.- Parameters:
descriptor
- A description of the data-source.file
- File or urlproperties
- A map of associated attributes.- Throws:
VisADException
- if a VisAD failure occurs.
-
-
Method Details
-
equals
Check for equality- Overrides:
equals
in classDataSourceImpl
- Parameters:
object
- the object in question- Returns:
- true if they are equal
-
getDataPaths
Get the list of urls from the remote server- Specified by:
getDataPaths
in interfaceDataSource
- Overrides:
getDataPaths
in classDataSourceImpl
- Returns:
- List of urls
-
initAfterUnpersistence
public void initAfterUnpersistence()Override the init method for when this data source is unpersisted. We simply check the imageList to see if this object came from a legacy bundle.- Specified by:
initAfterUnpersistence
in interfaceDataSource
- Overrides:
initAfterUnpersistence
in classDataSourceImpl
-
saveDataToLocalDisk
protected List saveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks) throws Exception _Save the remote data to local disk- Overrides:
saveDataToLocalDisk
in classDataSourceImpl
- Parameters:
prefix
- Where to write the files toloadId
- For the JobManager dialogchangeLinks
- Should we change the internal data references- Returns:
- List of files we wrote
- Throws:
Exception
- On badness
-
canSaveDataToLocalDisk
public boolean canSaveDataToLocalDisk()Is this data source capable of saving its data to local disk- Specified by:
canSaveDataToLocalDisk
in interfaceDataSource
- Overrides:
canSaveDataToLocalDisk
in classDataSourceImpl
- Returns:
- Can save to local disk
-
doMakeDataChoices
protected void doMakeDataChoices()Adds theDataChoice
s of the current input data viaDataSourceImpl.addDataChoice(DataChoice)
.- Overrides:
doMakeDataChoices
in classDataSourceImpl
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException - Overrides:
getDataInner
in classDataSourceImpl
- Parameters:
dataChoice
- choice of data.category
- specific category of data (currently ignored).dataSelection
- additional selection criteria.requestProperties
- extra request properties- Returns:
- corresponding Data object. extra request properties
- Throws:
VisADException
- if unable to create Data object.RemoteException
- (some kind of remote error.
-
doMakeDateTimes
Make the list of times associated with this DataSource for DataSelection.- Overrides:
doMakeDateTimes
in classDataSourceImpl
- Returns:
- DateTimes as a list.
-
getTimeMatchingSoundingObs
_more_- Parameters:
dTimes
- _more_- Returns:
- _more_
-
getTimeMatchingDataChoices
_more_- Parameters:
soundingObs
- _more_- Returns:
- _more_
-
getAllTimesForTimeDriver
public List getAllTimesForTimeDriver(DataChoice dataChoice, DataSelection selection, List<DateTime> timeDriverTimes) _more_- Overrides:
getAllTimesForTimeDriver
in classDataSourceImpl
- Parameters:
dataChoice
- _more_selection
- _more_timeDriverTimes
- _more_- Returns:
- _more_
-
getRDS
Dynamically create the rds if needed and return it- Returns:
- the rds
-
getRaobDataSet
Get the RaobDataSet for this data source- Returns:
- the RaobDataSet for this data source
-
setRaobDataSet
Set the RaobDataSet for this data source- Parameters:
newRds
- the RaobDataSet for this data source
-
setFile
Set the File property.- Parameters:
value
- The new value for File
-
getFile
Get the File property.- Returns:
- The File
-