ucar.unidata.data.sounding
Class TrajectoryFeatureTypeDataSource

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.sounding.TrackDataSource
                  extended by ucar.unidata.data.sounding.TrajectoryFeatureTypeDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class TrajectoryFeatureTypeDataSource
extends TrackDataSource

Created by IntelliJ IDEA. User: yuanho Date: Oct 5, 2009 Time: 2:47:02 PM To change this template use File | Settings | File Templates.


Field Summary
static String ID_SONDELOCATIONS
          Deprecated. use ID_SONDESTARTLOCATIONS
static String ID_SONDESTARTLOCATIONS
          sounding trace id
 
Fields inherited from class ucar.unidata.data.sounding.TrackDataSource
ID_LASTOB, ID_POINTTRACE, ID_SOUNDINGOB, ID_SOUNDINGTRACE, ID_TIMETRACE, ID_WHOLETRACE, PROP_TRACKTYPE, soundingCats, traceCats
 
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
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
TrajectoryFeatureTypeDataSource()
          Default Constructor
TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor, List sources, Hashtable properties)
          Create a SondeDataSource from the specification given.
TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor, String source, Hashtable properties)
          Create a SondeDataSource from the specification given.
 
Method Summary
protected  FieldImpl aggregateTracks(List tracks, Object id0)
          Aggregate the tracks
protected  TrackAdapter doMakeAdapter(String file, Hashtable pointDataFilter, int stride, int lastNMinutes)
          Factory method to make the adapter
protected  void doMakeDataChoices()
          Make the DataChoices associated with this dataset
protected  List doMakeDateTimes()
          Make the list of times associated with this DataSource for DataSelection.
protected  DateTime getBaseTime()
          Get the base time for the sondes
protected  Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
          Get the VisAD Data object that corresponds to the dataChoice category and dataSelection criteria.
protected  DateTime[] getTimeList()
          Get the times in the tracks
protected  void initCategories()
          init sounding category
 
Methods inherited from class ucar.unidata.data.sounding.TrackDataSource
addActions, addPropertiesTabs, applyProperties, canDoView, canSaveDataToLocalDisk, doRemove, getAdapters, getChoiceId, getChoiceId0, getDataChoiceLabel, getFullDescription, getHaveAskedToSubset, getLastNMinutes, getLastPointOb, getMinMaxTime, getPointDataFilter, getPointObTrack, getPropertiesComponents, getRaobCategories, getSoundingCategories, getSoundingOb, getSoundingTrace, getStride, getTraceAdapter, getTraceCategories, getTrack, getTrackId, getTracks, initAfter, initAfterCreation, initTrack, main, mergeTracks, resetLastNMinutesFld, resetStrideFld, setHaveAskedToSubset, setLastNMinutes, setName, setPointDataFilter, setStride, showSqlShell
 
Methods inherited from class ucar.unidata.data.FilesDataSource
equals, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, 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, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, 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, 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, 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, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, 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, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
 

Field Detail

ID_SONDELOCATIONS

public static final String ID_SONDELOCATIONS
Deprecated. use ID_SONDESTARTLOCATIONS
sonde locations

See Also:
Constant Field Values

ID_SONDESTARTLOCATIONS

public static final String ID_SONDESTARTLOCATIONS
sounding trace id

See Also:
Constant Field Values
Constructor Detail

TrajectoryFeatureTypeDataSource

public TrajectoryFeatureTypeDataSource()
Default Constructor


TrajectoryFeatureTypeDataSource

public TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor,
                                       String source,
                                       Hashtable properties)
                                throws VisADException
Create a SondeDataSource from the specification given.

Parameters:
descriptor - descriptor for the DataSource
source - file location or URL
properties - extra properties
Throws:
VisADException - problem creating data

TrajectoryFeatureTypeDataSource

public TrajectoryFeatureTypeDataSource(DataSourceDescriptor descriptor,
                                       List sources,
                                       Hashtable properties)
                                throws VisADException
Create a SondeDataSource from the specification given.

Parameters:
descriptor - descriptor for the DataSource
sources - file location or URL
properties - extra properties
Throws:
VisADException - problem creating data
Method Detail

initCategories

protected void initCategories()
init sounding category

Overrides:
initCategories in class TrackDataSource

getBaseTime

protected DateTime getBaseTime()
Get the base time for the sondes

Overrides:
getBaseTime in class TrackDataSource
Returns:
base time

getTimeList

protected DateTime[] getTimeList()
Get the times in the tracks

Returns:
times of the tracks

doMakeDateTimes

protected List doMakeDateTimes()
Make the list of times associated with this DataSource for DataSelection.

Overrides:
doMakeDateTimes in class TrackDataSource
Returns:
DateTimes as a list.

aggregateTracks

protected FieldImpl aggregateTracks(List tracks,
                                    Object id0)
                             throws VisADException,
                                    RemoteException
Aggregate the tracks

Overrides:
aggregateTracks in class TrackDataSource
Parameters:
tracks - List of sonde tracks
id0 - _more_
Returns:
FieldImpl of aggregated tracks
Throws:
RemoteException - Java RMI Exception
RemoteException - _more_
VisADException - problem in VisAD

doMakeDataChoices

protected void doMakeDataChoices()
Make the DataChoices associated with this dataset

Overrides:
doMakeDataChoices in class TrackDataSource

doMakeAdapter

protected TrackAdapter doMakeAdapter(String file,
                                     Hashtable pointDataFilter,
                                     int stride,
                                     int lastNMinutes)
                              throws Exception
Factory method to make the adapter

Overrides:
doMakeAdapter in class TrackDataSource
Parameters:
file - file or url
pointDataFilter - When creating point data this holds the map of variables to use
stride - string
lastNMinutes - clipping
Returns:
The adapter
Throws:
Exception - On badness

getDataInner

protected Data getDataInner(DataChoice dataChoice,
                            DataCategory category,
                            DataSelection dataSelection,
                            Hashtable requestProperties)
                     throws VisADException,
                            RemoteException
Get the VisAD Data object that corresponds to the dataChoice category and dataSelection criteria.

Overrides:
getDataInner in class TrackDataSource
Parameters:
dataChoice - choice for data
category - specific category of data (not used currently)
dataSelection - additional selection criteria
requestProperties - extra request properties
Returns:
corresponding Data object
Throws:
VisADException - unable to create Data object
RemoteException - (some kind of remote error.