ucar.unidata.data.sounding
Class RaobDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by ucar.unidata.data.sounding.RaobDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public final class RaobDataSource
extends DataSourceImpl

DataSource for RAOB soundings.

Version:
$Revision: 1.27 $ $Date: 2007/04/16 20:34:57 $
Author:
MetApps Development Team

Field Summary
 
Fields 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
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_TITLE
 
Constructor Summary
RaobDataSource()
          Constructs from nothing.
RaobDataSource(DataSourceDescriptor descriptor, RaobDataSet rds, Hashtable properties)
          Constructs from a specification of the data-source.
 
Method Summary
 boolean canSaveDataToLocalDisk()
          Is this data source capable of saving its data to local disk
protected  void doMakeDataChoices()
          Adds the DataChoices of the current input data via DataSourceImpl.addDataChoice(DataChoice).
protected  List doMakeDateTimes()
          Make the list of times associated with this DataSource for DataSelection.
 boolean equals(Object object)
          See if the Object in question is equal to this DataSource.
protected  Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
          Get the VisAD Data object orresponding to DataChoice, DataCategory, and DataSelection criteria.
 List getDataPaths()
          Get the list of urls from the remote server
 RaobDataSet getRaobDataSet()
          Get the RaobDataSet for this data source
 void initAfterUnpersistence()
          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 disk
 void setRaobDataSet(RaobDataSet newRds)
          Set the RaobDataSet for this data source
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getExtraGeoSelectionComponent, getFileFilterForPolling, getFullDescription, getid, 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, reloadData, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDescription, setDescriptor, setDirectory, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, 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, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, 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
 

Constructor Detail

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 datasource
properties - A map of associated attributes.
Throws:
VisADException - if a VisAD failure occurs.
Method Detail

equals

public boolean equals(Object object)
Description copied from class: DataSourceImpl
See if the Object in question is equal to this DataSource.

Overrides:
equals in class DataSourceImpl
Parameters:
object - Object in question
Returns:
true if they are equal

getDataPaths

public List getDataPaths()
Get the list of urls from the remote server

Specified by:
getDataPaths in interface DataSource
Overrides:
getDataPaths in class DataSourceImpl
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 interface DataSource
Overrides:
initAfterUnpersistence in class DataSourceImpl

saveDataToLocalDisk

protected List saveDataToLocalDisk(String prefix,
                                   Object loadId,
                                   boolean changeLinks)
                            throws Exception
_Save the remote data to local disk

Overrides:
saveDataToLocalDisk in class DataSourceImpl
Parameters:
prefix - Where to write the files to
loadId - For the JobManager dialog
changeLinks - 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 interface DataSource
Overrides:
canSaveDataToLocalDisk in class DataSourceImpl
Returns:
Can save to local disk

doMakeDataChoices

protected void doMakeDataChoices()
Adds the DataChoices of the current input data via DataSourceImpl.addDataChoice(DataChoice).

Overrides:
doMakeDataChoices in class DataSourceImpl

getDataInner

protected Data getDataInner(DataChoice dataChoice,
                            DataCategory category,
                            DataSelection dataSelection,
                            Hashtable requestProperties)
                     throws VisADException,
                            RemoteException
Get the VisAD Data object orresponding to DataChoice, DataCategory, and DataSelection criteria.

Overrides:
getDataInner in class DataSourceImpl
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

protected List doMakeDateTimes()
Make the list of times associated with this DataSource for DataSelection.

Overrides:
doMakeDateTimes in class DataSourceImpl
Returns:
DateTimes as a list.

getRaobDataSet

public RaobDataSet getRaobDataSet()
Get the RaobDataSet for this data source

Returns:
the RaobDataSet for this data source

setRaobDataSet

public void setRaobDataSet(RaobDataSet newRds)
Set the RaobDataSet for this data source

Parameters:
newRds - the RaobDataSet for this data source