public class FrontDataSource extends FilesDataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_TIMEWINDOW
Property to show the time selection window
|
adapters, oldSourceFromBundles, sources
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
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 and Description |
---|
FrontDataSource()
Default bean constructor; does nothing.
|
FrontDataSource(DataSourceDescriptor descriptor,
java.util.List files,
java.util.Hashtable properties)
Create a new FrontDataSource
|
FrontDataSource(DataSourceDescriptor descriptor,
java.lang.String filename,
java.util.Hashtable properties)
Create a new FrontDataSource
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyProperties()
Apply the properties
|
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk
|
protected void |
doMakeDataChoices()
Make the data choices associated with this source
|
protected java.lang.String |
getDataFileExtension(java.lang.String file)
Get the file extension for saving to local disk
|
protected java.lang.String |
getDataFilePrefix(java.lang.String file)
get the prefix to use when saving to local disk
|
protected visad.Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Actually get the data identified by the given DataChoce.
|
protected java.util.List |
getInputStreams(java.util.List processedSources)
Get the list of input streams used to make data local
|
void |
getPropertiesComponents(java.util.List comps)
Add to the properties component list
|
double |
getTimeWindow()
Get the TimeWindow property.
|
static void |
main(java.lang.String[] args)
test main
|
protected java.lang.String |
processDataFilename(java.lang.String filename,
int index)
Process the file name to get a file that we can use to write to local disk
|
void |
setTimeWindow(double value)
Set the TimeWindow property.
|
doRemove, equals, getDataPaths, getFilePath, getFullDescription, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, 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, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, 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, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, putCache, 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, 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
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueId
public static final java.lang.String PROP_TIMEWINDOW
public FrontDataSource()
public FrontDataSource(DataSourceDescriptor descriptor, java.lang.String filename, java.util.Hashtable properties)
descriptor
- descriptor for this DataSourcefilename
- name of the file (or URL)properties
- extra data source propertiespublic FrontDataSource(DataSourceDescriptor descriptor, java.util.List files, java.util.Hashtable properties)
descriptor
- Descriptor for this DataSourcefiles
- List of files or urlsproperties
- Extra data source propertiespublic boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk
in interface DataSource
canSaveDataToLocalDisk
in class DataSourceImpl
protected java.lang.String getDataFileExtension(java.lang.String file)
getDataFileExtension
in class FilesDataSource
file
- The fileprotected java.lang.String getDataFilePrefix(java.lang.String file)
file
- filepublic void getPropertiesComponents(java.util.List comps)
getPropertiesComponents
in class DataSourceImpl
comps
- List of components for the properties dialogpublic boolean applyProperties()
applyProperties
in class DataSourceImpl
protected void doMakeDataChoices()
doMakeDataChoices
in class DataSourceImpl
protected visad.Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getDataInner
in class DataSourceImpl
dataChoice
- The data choice that identifies the requested
data.category
- The data category of the request.dataSelection
- Identifies any subsetting of the data.requestProperties
- Hashtable that holds any detailed request
properties.java.rmi.RemoteException
- Java RMI problem
p * @throws VisADException VisAD problemvisad.VisADException
- VisAD problemprotected java.lang.String processDataFilename(java.lang.String filename, int index)
processDataFilename
in class FilesDataSource
filename
- Filenameindex
- Which file it it. This can be used by derived classes to add more info to the file nameprotected java.util.List getInputStreams(java.util.List processedSources) throws java.lang.Exception
getInputStreams
in class FilesDataSource
processedSources
- Source pathsjava.lang.Exception
- On badnesspublic void setTimeWindow(double value)
value
- The new value for TimeWindowpublic double getTimeWindow()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- argsjava.lang.Exception
- On badness