public class HRITDataSource extends ucar.unidata.data.DataSourceImpl
Modifier and Type | Class and Description |
---|---|
(package private) class |
HRITDataSource.ResolutionSelection |
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
adapters
List of sources files
|
private java.util.List |
categories |
private static int |
counter |
private static java.lang.String |
DATA_DESCRIPTION |
private static org.slf4j.Logger |
logger |
private java.util.List |
myDataChoices
children choices
|
protected java.lang.String |
oldSourceFromBundles
for unpersistence
|
static java.lang.String |
request |
protected java.util.List |
sources
List of sources files
|
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 |
---|
HRITDataSource()
Default constructor
|
HRITDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.util.List newSources,
java.util.Hashtable properties)
Construct a new HRIT data source.
|
HRITDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.util.List newSources,
java.lang.String description,
java.util.Hashtable properties)
Create a HRITDataSource
|
HRITDataSource(ucar.unidata.data.DataSourceDescriptor descriptor,
java.lang.String fileName,
java.util.Hashtable properties)
Construct a new HRIT data source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSaveDataToLocalDisk()
Can this data source save its data to local disk
|
void |
clearCachedData()
This is called when the CacheManager detects the need ot clear memory.
|
private ucar.unidata.data.DataChoice |
doMakeDataChoice(int idx,
java.lang.String var) |
void |
doMakeDataChoices()
Make and insert the
DataChoices for this DataSource . |
protected java.util.List |
doMakeDateTimes()
Create the list of times associated with this DataSource.
|
protected java.util.List |
getAdapters()
Create, if needed, and return the list of adapters.
|
protected visad.Data |
getDataInner(ucar.unidata.data.DataChoice dataChoice,
ucar.unidata.data.DataCategory category,
ucar.unidata.data.DataSelection dataparams,
java.util.Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria.
|
protected void |
initDataSelectionComponents(java.util.List<ucar.unidata.data.DataSelectionComponent> components,
ucar.unidata.data.DataChoice dataChoice)
Add any data selection components
|
protected boolean |
isFileBased()
Are we getting data from a file or from server
|
private void |
makeAdapters(java.util.List files)
Make the adapters for the given list of files
|
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canShowParameter, checkForInitAfterUnPersistence, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, equals, 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, getDataPaths, 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, initAfterUnpersistence, initDataChoice, 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, 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
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
private static final org.slf4j.Logger logger
protected java.util.List sources
public static java.lang.String request
protected java.util.List adapters
private java.util.List categories
protected java.lang.String oldSourceFromBundles
private static final java.lang.String DATA_DESCRIPTION
private static int counter
private java.util.List myDataChoices
public HRITDataSource()
public HRITDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.lang.String fileName, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this DataSource
fileName
- name of the HRIT segment file to readproperties
- hashtable of propertiesvisad.VisADException
- problem creating datapublic HRITDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.util.List newSources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for this DataSource
newSources
- List of filenamesproperties
- hashtable of propertiesvisad.VisADException
- problem creating datapublic HRITDataSource(ucar.unidata.data.DataSourceDescriptor descriptor, java.util.List newSources, java.lang.String description, java.util.Hashtable properties) throws visad.VisADException
descriptor
- The datasource descriptornewSources
- List of files or urlsdescription
- The long nameproperties
- propertiesvisad.VisADException
- couldn't create the datapublic boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk
in interface ucar.unidata.data.DataSource
canSaveDataToLocalDisk
in class ucar.unidata.data.DataSourceImpl
protected boolean isFileBased()
public void clearCachedData()
clearCachedData
in interface ucar.unidata.data.DataSource
clearCachedData
in class ucar.unidata.data.DataSourceImpl
public void doMakeDataChoices()
DataChoices
for this DataSource
.doMakeDataChoices
in class ucar.unidata.data.DataSourceImpl
private ucar.unidata.data.DataChoice doMakeDataChoice(int idx, java.lang.String var) throws java.lang.Exception
java.lang.Exception
protected java.util.List getAdapters()
private void makeAdapters(java.util.List files) throws java.lang.Exception
files
- Data filesjava.lang.Exception
- When bad things happenprotected java.util.List doMakeDateTimes()
doMakeDateTimes
in class ucar.unidata.data.DataSourceImpl
protected visad.Data getDataInner(ucar.unidata.data.DataChoice dataChoice, ucar.unidata.data.DataCategory category, ucar.unidata.data.DataSelection dataparams, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getDataInner
in class ucar.unidata.data.DataSourceImpl
dataChoice
- DataChoice for selectioncategory
- DataCategory for the DataChoice (not used)dataparams
- Resolution criteria.requestProperties
- extra request propertiesjava.rmi.RemoteException
- couldn't create a remote data objectvisad.VisADException
- couldn't create the dataprotected void initDataSelectionComponents(java.util.List<ucar.unidata.data.DataSelectionComponent> components, ucar.unidata.data.DataChoice dataChoice)
ucar.unidata.data.DataSourceImpl
initDataSelectionComponents
in class ucar.unidata.data.DataSourceImpl
components
- list of componentsdataChoice
- the data choice