public class HRITDataSource extends DataSourceImpl
Modifier and Type | Class and Description |
---|---|
(package private) class |
HRITDataSource.ResolutionSelection |
Modifier and Type | Field and Description |
---|---|
protected List |
adapters
List of sources files
|
private List |
categories |
private static int |
counter |
private static String |
DATA_DESCRIPTION |
private List |
myDataChoices
children choices
|
protected String |
oldSourceFromBundles
for unpersistence
|
static String |
request |
protected 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_TITLE
Constructor and Description |
---|
HRITDataSource()
Default constructor
|
HRITDataSource(DataSourceDescriptor descriptor,
List newSources,
Hashtable properties)
Construct a new HRIT data source.
|
HRITDataSource(DataSourceDescriptor descriptor,
List newSources,
String description,
Hashtable properties)
Create a HRITDataSource
|
HRITDataSource(DataSourceDescriptor descriptor,
String fileName,
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 DataChoice |
doMakeDataChoice(int idx,
String var) |
void |
doMakeDataChoices()
Make and insert the
DataChoices for this DataSource . |
protected List |
doMakeDateTimes()
Create the list of times associated with this DataSource.
|
protected List |
getAdapters()
Create, if needed, and return the list of adapters.
|
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataparams,
Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria.
|
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice) |
protected boolean |
isFileBased()
Are we getting data from a file or from server
|
private void |
makeAdapters(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
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueId
private List categories
protected String oldSourceFromBundles
private static final String DATA_DESCRIPTION
private static int counter
private List myDataChoices
public HRITDataSource()
public HRITDataSource(DataSourceDescriptor descriptor, String fileName, Hashtable properties) throws VisADException
descriptor
- descriptor for this DataSource
fileName
- name of the HRIT segment file to readproperties
- hashtable of propertiesVisADException
- problem creating datapublic HRITDataSource(DataSourceDescriptor descriptor, List newSources, Hashtable properties) throws VisADException
descriptor
- descriptor for this DataSource
newSources
- List of filenamesproperties
- hashtable of propertiesVisADException
- problem creating datapublic HRITDataSource(DataSourceDescriptor descriptor, List newSources, String description, Hashtable properties) throws VisADException
descriptor
- The datasource descriptornewSources
- List of files or urlsdescription
- The long nameproperties
- propertiesVisADException
- couldn't create the datapublic boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk
in interface DataSource
canSaveDataToLocalDisk
in class DataSourceImpl
protected boolean isFileBased()
public void clearCachedData()
clearCachedData
in interface DataSource
clearCachedData
in class DataSourceImpl
public void doMakeDataChoices()
DataChoices
for this DataSource
.doMakeDataChoices
in class DataSourceImpl
private DataChoice doMakeDataChoice(int idx, String var) throws Exception
Exception
protected List getAdapters()
private void makeAdapters(List files) throws Exception
files
- Data filesException
- When bad things happenprotected List doMakeDateTimes()
doMakeDateTimes
in class DataSourceImpl
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataparams, Hashtable requestProperties) throws VisADException, RemoteException
getDataInner
in class DataSourceImpl
dataChoice
- DataChoice for selectioncategory
- DataCategory for the DataChoice (not used)dataparams
- Resolution criteria.requestProperties
- extra request propertiesRemoteException
- couldn't create a remote data objectVisADException
- couldn't create the dataprotected void initDataSelectionComponents(List<DataSelectionComponent> components, DataChoice dataChoice)
initDataSelectionComponents
in class DataSourceImpl