ucar.unidata.data.grid
Class GridDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by ucar.unidata.data.FilesDataSource
              extended by ucar.unidata.data.grid.GridDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable
Direct Known Subclasses:
GeoGridDataSource, Vis5DDataSource

public abstract class GridDataSource
extends FilesDataSource

An abstract class that provides a list of 2d and 3d DataCategory objects for grid data sources.


Field Summary
static String ATTR_EAST
           
static String ATTR_NORTH
           
static String ATTR_SOUTH
           
static String ATTR_WEST
           
static String ATTR_X
           
static String ATTR_Y
           
static String ATTR_Z
           
 
Fields inherited from class ucar.unidata.data.FilesDataSource
adapters, oldSourceFromBundles, sources
 
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
GridDataSource()
          Default constructor; initializes data categories
GridDataSource(DataSourceDescriptor descriptor, List sources, String name, Hashtable properties)
          Create a GridDataSource from the specification given.
GridDataSource(DataSourceDescriptor descriptor, String source, String name, Hashtable properties)
          Create a GridDataSource from the specification given.
 
Method Summary
 List getThreeDCategories()
          Get the 3D data categories
 List getThreeDTimeSeriesCategories()
          Get the list of 3D time series categories
 List getTwoDCategories()
          Get the 2D data categories
 List getTwoDTimeSeriesCategories()
          Get the list of 2D time series categories
 void initCategories()
          Initialize the data categories
 
Methods inherited from class ucar.unidata.data.FilesDataSource
doRemove, equals, getDataFileExtension, getDataPaths, getFilePath, getFullDescription, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, applyFieldMask, applyProperties, beginWritingDataToLocalDisk, canCacheDataToDisk, canChangeData, canDoFieldMask, canDoGeoSelection, canDoGeoSelectionMap, canDoGeoSelectionStride, canPoll, canSaveDataToLocalDisk, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDataChoices, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getExtraGeoSelectionComponent, getFileFilterForPolling, getid, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, 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, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, 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, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, 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, 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
 

Field Detail

ATTR_NORTH

public static final String ATTR_NORTH
See Also:
Constant Field Values

ATTR_SOUTH

public static final String ATTR_SOUTH
See Also:
Constant Field Values

ATTR_EAST

public static final String ATTR_EAST
See Also:
Constant Field Values

ATTR_WEST

public static final String ATTR_WEST
See Also:
Constant Field Values

ATTR_X

public static final String ATTR_X
See Also:
Constant Field Values

ATTR_Y

public static final String ATTR_Y
See Also:
Constant Field Values

ATTR_Z

public static final String ATTR_Z
See Also:
Constant Field Values
Constructor Detail

GridDataSource

public GridDataSource()
Default constructor; initializes data categories


GridDataSource

public GridDataSource(DataSourceDescriptor descriptor,
                      String source,
                      String name,
                      Hashtable properties)
Create a GridDataSource from the specification given.

Parameters:
descriptor - data source descriptor
source - of file filename or URL
name - name of this data source
properties - extra initialization properties

GridDataSource

public GridDataSource(DataSourceDescriptor descriptor,
                      List sources,
                      String name,
                      Hashtable properties)
Create a GridDataSource from the specification given.

Parameters:
descriptor - data source descriptor
sources - List of files or URLS
name - name of this data source
properties - extra initialization properties
Method Detail

initCategories

public void initCategories()
Initialize the data categories


getTwoDCategories

public List getTwoDCategories()
Get the 2D data categories

Returns:
list of categories

getThreeDCategories

public List getThreeDCategories()
Get the 3D data categories

Returns:
list of categories

getTwoDTimeSeriesCategories

public List getTwoDTimeSeriesCategories()
Get the list of 2D time series categories

Returns:
list of categories

getThreeDTimeSeriesCategories

public List getThreeDTimeSeriesCategories()
Get the list of 3D time series categories

Returns:
list of categories