ucar.unidata.data.imagery
Class AddeImageDataSource

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

public class AddeImageDataSource
extends ImageDataSource

A data source for ADDE images. This is a thin wrapper (derived class) around the ImageDataSource which does all of the work.

Version:
$Revision: 1.56 $ $Date: 2007/07/05 18:46:09 $
Author:
Don Murray

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.unidata.data.imagery.ImageDataSource
ImageDataSource.ImageDataInfo
 
Field Summary
 
Fields inherited from class ucar.unidata.data.imagery.ImageDataSource
imageList, imageTimes, PROP_BANDINFO, PROP_IMAGETYPE, TYPE_RADAR, TYPE_SATELLITE
 
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
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_TITLE
 
Constructor Summary
AddeImageDataSource()
          The parameterless ctor unpersisting.
AddeImageDataSource(DataSourceDescriptor descriptor, ImageDataset ids, Hashtable properties)
          Create a new AddeImageDataSource with the given dataset.
AddeImageDataSource(DataSourceDescriptor descriptor, List images, Hashtable properties)
          Create a new AddeImageDataSource with an array (String) image ADDE urls.
AddeImageDataSource(DataSourceDescriptor descriptor, String[] images, Hashtable properties)
          Create a new AddeImageDataSource with an array (String) image ADDE urls.
AddeImageDataSource(DataSourceDescriptor descriptor, String image, Hashtable properties)
          Create a new AddeImageDataSource with an a single image ADDE url.
 
Method Summary
 String getDataName()
          Get the name for this data.
 String getImageDataSourceName()
          Overwrite base class method to return the name of this class.
protected  List saveDataToLocalDisk(String prefix, Object loadId, boolean changeLinks)
          Save files to local disk
 
Methods inherited from class ucar.unidata.data.imagery.ImageDataSource
canCacheDataToDisk, canSaveDataToLocalDisk, doMakeDataChoices, doMakeDateTimes, doRemove, equals, getAllDateTimes, getBandCategories, getBandTimeSeriesCategories, getCacheDataToDisk, getCompositeDataChoices, getDataInner, getDataPaths, getDescriptor, getFullDescription, getImageList, getLocationsForPolling, getSelectedDateTimes, getTwoDCategories, getTwoDTimeSeriesCategories, hashCode, initAfterUnpersistence, initDataFromPollingInfo, isFileBased, makeImage, makeImageDataset, makeImageDescriptors, makeImageSequence, newFileFromPolling, propertiesChanged, reloadData, reloadData, setImageList, setNewFiles, updateState
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canChangeData, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPartialDescription, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesComponents, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSampleDataProjection, getSaveDataFileLabel, 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, newFilesFromPolling, notifyDataChange, putCache, putCache, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, 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, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
 

Constructor Detail

AddeImageDataSource

public AddeImageDataSource()
The parameterless ctor unpersisting.


AddeImageDataSource

public AddeImageDataSource(DataSourceDescriptor descriptor,
                           String image,
                           Hashtable properties)
                    throws VisADException
Create a new AddeImageDataSource with an a single image ADDE url.

Parameters:
descriptor - The descriptor for this data source.
image - ADDE Url
properties - The properties for this data source.
Throws:
VisADException

AddeImageDataSource

public AddeImageDataSource(DataSourceDescriptor descriptor,
                           String[] images,
                           Hashtable properties)
                    throws VisADException
Create a new AddeImageDataSource with an array (String) image ADDE urls.

Parameters:
descriptor - The descriptor for this data source.
images - Array of ADDE urls.
properties - The properties for this data source.
Throws:
VisADException

AddeImageDataSource

public AddeImageDataSource(DataSourceDescriptor descriptor,
                           List images,
                           Hashtable properties)
                    throws VisADException
Create a new AddeImageDataSource with an array (String) image ADDE urls.

Parameters:
descriptor - The descriptor for this data source.
images - Array of ADDE urls.
properties - The properties for this data source.
Throws:
VisADException

AddeImageDataSource

public AddeImageDataSource(DataSourceDescriptor descriptor,
                           ImageDataset ids,
                           Hashtable properties)
                    throws VisADException
Create a new AddeImageDataSource with the given dataset.

Parameters:
descriptor - The descriptor for this data source.
ids - The dataset.
properties - The properties for this data source.
Throws:
VisADException
Method Detail

getImageDataSourceName

public String getImageDataSourceName()
Overwrite base class method to return the name of this class.

Specified by:
getImageDataSourceName in class ImageDataSource
Returns:
The name.

getDataName

public String getDataName()
Get the name for this data. Override base class for more info.

Overrides:
getDataName in class ImageDataSource
Returns:
name for the main data object

saveDataToLocalDisk

protected List saveDataToLocalDisk(String prefix,
                                   Object loadId,
                                   boolean changeLinks)
                            throws Exception
Save files to local disk

Overrides:
saveDataToLocalDisk in class ImageDataSource
Parameters:
prefix - destination dir and file prefix
loadId - For JobManager
changeLinks - Change internal file references
Returns:
Files copied
Throws:
Exception - On badness