public class TrackDataSource extends FilesDataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_LASTOB
Last point track type
|
static java.lang.String |
ID_POINTTRACE
Point track type
|
static java.lang.String |
ID_SOUNDINGOB
sounding ob id
|
static java.lang.String |
ID_SOUNDINGTRACE
sounding trace id
|
static java.lang.String |
ID_TIMETRACE
time trace id
|
static java.lang.String |
ID_WHOLETRACE
The whole track
|
static java.lang.String |
PROP_TRACKTYPE
track type identifier
|
protected java.util.List |
soundingCats
sounding categories
|
protected java.util.List |
traceCats
track categories
|
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 |
---|
TrackDataSource()
Default Constructor
|
TrackDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.util.Hashtable properties)
Create a TrackDataSource from the specification given.
|
TrackDataSource(DataSourceDescriptor descriptor,
java.util.List sources,
java.lang.String description,
java.util.Hashtable properties)
Create a TrackDataSource from the specification given.
|
TrackDataSource(DataSourceDescriptor descriptor,
java.lang.String source,
java.util.Hashtable properties)
Create a TrackDataSource from the specification given.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addActions(java.util.List actions)
_more_
|
void |
addPropertiesTabs(javax.swing.JTabbedPane tabbedPane)
Add any extra tabs into the properties tab
|
protected visad.FieldImpl |
aggregateTracks(java.util.List tracks,
java.lang.Object id)
Aggregate the list of track data
|
boolean |
applyProperties()
Apply properties components
|
protected boolean |
canDoView()
_more_
|
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk
|
protected TrackAdapter |
doMakeAdapter(java.lang.String file,
java.util.Hashtable pointDataFilter,
int stride,
int lastNMinutes)
Factory method to make the adapter
|
protected void |
doMakeDataChoices()
Make the
DataChoice s associated with this dataset |
protected java.util.List |
doMakeDateTimes()
Make the list of times associated with this DataSource for
DataSelection.
|
void |
doRemove()
_more_
|
java.util.List |
getAdapters()
Create, if needed, and return the list of adapters.
|
protected visad.DateTime |
getBaseTime()
Get the base time to be used for the track.
|
protected java.lang.String |
getChoiceId(DataChoice dc)
Utility to extract the choice id
|
protected java.lang.String |
getChoiceId0(DataChoice dc)
Utility to extract the choice id
|
protected java.lang.String |
getDataChoiceLabel(java.lang.Object id)
Get the label for a particular data choice
|
protected visad.Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the VisAD Data object that corresponds to the dataChoice
category and dataSelection criteria.
|
java.lang.String |
getFullDescription()
Get the full description for this data source.
|
boolean |
getHaveAskedToSubset()
Get the HaveAskedToSubset property.
|
int |
getLastNMinutes()
Get the LastNMinutes property.
|
protected visad.FieldImpl |
getLastPointOb(DataChoice dc,
DataSelection dataSelection)
Gets the last point ob associated with this track
|
protected visad.DateTime[] |
getMinMaxTime()
Get the min and max times in the tracks
|
java.util.Hashtable |
getPointDataFilter()
Get the PointDataFilter property.
|
protected visad.FieldImpl |
getPointObTrack(DataChoice dc,
DataSelection dataSelection,
ucar.ma2.Range range)
Gets the point ob track associated with this DataChoice
|
void |
getPropertiesComponents(java.util.List comps)
Add the gui components into the list for the properties dialog
|
protected java.util.List |
getRaobCategories()
Get the default categories RAOB sounding choices
|
protected java.util.List |
getSoundingCategories()
Get the default categories sounding choices
|
protected visad.Data |
getSoundingOb(DataChoice dc,
DataSelection dataSelection)
Gets the SoundingOb associated with this DataChoice
|
protected visad.Data |
getSoundingTrace(DataChoice dc,
DataSelection dataSelection)
Gets the sounding trace associated with this DataChoice
|
int |
getStride()
Get the Stride property.
|
TrackAdapter |
getTraceAdapter()
Gets the sounding trace associated with this DataChoice
|
protected java.util.List |
getTraceCategories()
Get the default categories trace choices
|
protected visad.FlatField |
getTrack(DataChoice dc,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Gets the track associated with this DataChoice
|
protected java.lang.String |
getTrackId(DataChoice dc)
Utility to get the track id
|
protected java.util.List |
getTracks(DataChoice dc,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Gets the track associated with this DataChoice
|
protected void |
initAfter()
_more_
|
void |
initAfterCreation()
_more_
|
protected void |
initCategories()
Initialize the categories
|
protected void |
initTrack()
Initialize the track
|
static void |
main(java.lang.String[] args)
Get the point observartion data
Test routine
|
visad.FlatField |
mergeTracks(java.util.List datas)
Merge a List of FieldImpls of point obs into one.
|
void |
resetLastNMinutesFld()
Reset last N minutes field
|
void |
resetStrideFld()
reset stride field
|
void |
setHaveAskedToSubset(boolean value)
Set the HaveAskedToSubset property.
|
void |
setLastNMinutes(int value)
Set the LastNMinutes property.
|
void |
setName(java.lang.String value)
Set the source property (filename or URL).
|
void |
setPointDataFilter(java.util.Hashtable value)
Set the PointDataFilter property.
|
void |
setStride(int value)
Set the Stride property.
|
void |
setTraceAdapter(TrackAdapter traceAdapter) |
void |
showSqlShell()
_more_
|
equals, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
addDataChangeListener, addDataChoice, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, 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, 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, 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, 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
protected java.util.List traceCats
protected java.util.List soundingCats
public static final java.lang.String ID_SOUNDINGOB
public static final java.lang.String ID_SOUNDINGTRACE
public static final java.lang.String ID_TIMETRACE
public static final java.lang.String ID_WHOLETRACE
public static final java.lang.String ID_POINTTRACE
public static final java.lang.String ID_LASTOB
public static final java.lang.String PROP_TRACKTYPE
public TrackDataSource()
public TrackDataSource(DataSourceDescriptor descriptor, java.lang.String source, java.util.Hashtable properties) throws visad.VisADException
descriptor
- descriptor for the DataSourcesource
- file location or URLproperties
- extra propertiesvisad.VisADException
public TrackDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.util.Hashtable properties) throws visad.VisADException
descriptor
- data source descriptorsources
- List of sources of data (filename/URL)properties
- extra properties for initializationvisad.VisADException
- problem creating the datapublic TrackDataSource(DataSourceDescriptor descriptor, java.util.List sources, java.lang.String description, java.util.Hashtable properties) throws visad.VisADException
descriptor
- data source descriptorsources
- List of sources of data (filename/URL)description
- dataset descriptionproperties
- extra properties for initializationvisad.VisADException
- problem creating the datapublic void doRemove()
doRemove
in interface DataSource
doRemove
in class FilesDataSource
protected void addActions(java.util.List actions)
addActions
in class DataSourceImpl
actions
- _more_public void showSqlShell()
protected void initAfter()
initAfter
in class DataSourceImpl
public void initAfterCreation()
initAfterCreation
in interface DataSource
initAfterCreation
in class FilesDataSource
protected void initCategories()
public boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk
in interface DataSource
canSaveDataToLocalDisk
in class DataSourceImpl
public java.lang.String getFullDescription()
getFullDescription
in interface DataSource
getFullDescription
in class FilesDataSource
protected java.util.List getTraceCategories()
protected java.util.List getSoundingCategories()
protected java.util.List getRaobCategories()
protected void initTrack()
protected TrackAdapter doMakeAdapter(java.lang.String file, java.util.Hashtable pointDataFilter, int stride, int lastNMinutes) throws java.lang.Exception
file
- file or urlpointDataFilter
- When creating point data this holds the map of variables to usestride
- stringlastNMinutes
- clippingjava.lang.Exception
- On badnesspublic java.util.List getAdapters()
protected void doMakeDataChoices()
DataChoice
s associated with this datasetdoMakeDataChoices
in class DataSourceImpl
protected boolean canDoView()
protected java.lang.String getDataChoiceLabel(java.lang.Object id)
id
- id for the choiceprotected visad.Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
getDataInner
in class DataSourceImpl
dataChoice
- choice for datacategory
- specific category of data (not used currently)dataSelection
- additional selection criteriarequestProperties
- extra request propertiesvisad.VisADException
- unable to create Data objectjava.rmi.RemoteException
- (some kind of remote error.protected visad.DateTime getBaseTime()
protected visad.DateTime[] getMinMaxTime()
protected visad.FieldImpl aggregateTracks(java.util.List tracks, java.lang.Object id) throws visad.VisADException, java.rmi.RemoteException
tracks
- list of track dataid
- _more_java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected java.util.List doMakeDateTimes()
doMakeDateTimes
in class DataSourceImpl
protected java.util.List getTracks(DataChoice dc, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dc
- DataChoice for selectiondataSelection
- sub selection criteriarequestProperties
- selection propertiesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected visad.FlatField getTrack(DataChoice dc, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dc
- DataChoice for selectiondataSelection
- sub selection criteriarequestProperties
- selection propertiesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected visad.FieldImpl getLastPointOb(DataChoice dc, DataSelection dataSelection) throws java.lang.Exception
dc
- DataChoice for selectiondataSelection
- sub selection criteriajava.lang.Exception
- On badnessprotected visad.FieldImpl getPointObTrack(DataChoice dc, DataSelection dataSelection, ucar.ma2.Range range) throws visad.VisADException, java.rmi.RemoteException
dc
- DataChoice for selectiondataSelection
- sub selection criteriarange
- The data rangejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected visad.Data getSoundingTrace(DataChoice dc, DataSelection dataSelection) throws java.lang.Exception
dc
- DataChoice for selectiondataSelection
- sub selection criteriajava.lang.Exception
- On badnesspublic TrackAdapter getTraceAdapter() throws java.lang.Exception
java.lang.Exception
- On badnesspublic void setTraceAdapter(TrackAdapter traceAdapter) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getChoiceId(DataChoice dc)
dc
- the data choiceprotected java.lang.String getChoiceId0(DataChoice dc)
dc
- the data choiceprotected java.lang.String getTrackId(DataChoice dc)
dc
- data choiceprotected visad.Data getSoundingOb(DataChoice dc, DataSelection dataSelection) throws visad.VisADException, java.rmi.RemoteException
dc
- DataChoice for selectiondataSelection
- sub selection criteriajava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic void setName(java.lang.String value)
setName
in class DataSourceImpl
value
- data sourcepublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- filenamejava.lang.Exception
- problempublic visad.FlatField mergeTracks(java.util.List datas) throws visad.VisADException
datas
- List of FieldImpls of point obsvisad.VisADException
- problem getting the datapublic void setPointDataFilter(java.util.Hashtable value)
value
- The new value for PointDataFilterpublic java.util.Hashtable getPointDataFilter()
public void getPropertiesComponents(java.util.List comps)
getPropertiesComponents
in class DataSourceImpl
comps
- List of componentspublic void resetLastNMinutesFld()
public void resetStrideFld()
public boolean applyProperties()
applyProperties
in class DataSourceImpl
public void addPropertiesTabs(javax.swing.JTabbedPane tabbedPane)
addPropertiesTabs
in class DataSourceImpl
tabbedPane
- The properties tabpublic void setStride(int value)
value
- The new value for Stridepublic int getStride()
public void setHaveAskedToSubset(boolean value)
value
- The new value for HaveAskedToSubsetpublic boolean getHaveAskedToSubset()
public void setLastNMinutes(int value)
value
- The new value for LastNMinutespublic int getLastNMinutes()