ucar.unidata.data.storm
Class STIStormDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by ucar.unidata.data.storm.StormDataSource
              extended by ucar.unidata.data.storm.STIStormDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class STIStormDataSource
extends StormDataSource

Created by IntelliJ IDEA. User: yuanho Date: Apr 9, 2008 Time: 4:58:27 PM To change this template use File | Settings | File Templates.


Field Summary
static RealType TYPE_MAXWINDSPEED
          _more_
static RealType TYPE_MINPRESSURE
          _more_
static RealType TYPE_MOVEDIRECTION
          _more_
static RealType TYPE_MOVESPEED
          _more_
static RealType TYPE_PROBABILITYRADIUS
          _more_
static RealType TYPE_RADIUSMODERATEGALE
          _more_
static RealType TYPE_RADIUSWHOLEGALE
          _more_
 
Fields inherited from class ucar.unidata.data.storm.StormDataSource
ATTR_CATEGORY, CATEGORY_DB, CATEGORY_DS, CATEGORY_ET, CATEGORY_EX, CATEGORY_HU, CATEGORY_IN, CATEGORY_LO, CATEGORY_NAMES, CATEGORY_SD, CATEGORY_SS, CATEGORY_ST, CATEGORY_TC, CATEGORY_TD, CATEGORY_TS, CATEGORY_TY, CATEGORY_VALUES, CATEGORY_WV, CATEGORY_XX, TYPE_STORMCATEGORY
 
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
STIStormDataSource()
          _more_
STIStormDataSource(DataSourceDescriptor descriptor, String url, Hashtable properties)
          _more_
 
Method Summary
 Connection getConnection()
          _more_
 String getDbUrl()
          Get the DbUrl property.
protected  List<DateTime> getForecastTrackStartDates(StormInfo stormInfo, Way way)
          _more_
protected  List<Way> getForecastWays(StormInfo stormInfo)
          _more_
protected  StormTrack getObservationTrack(StormInfo stormInfo)
          _more_
protected  List<StormTrackPoint> getObservationTrack(StormInfo stormInfo, Way wy)
          _more_
protected  List<StormTrackPoint> getObservationTrack(StormInfo stormInfo, Way wy, DateTime before, DateTime after, List pts)
          _more_
protected  DateTime getStartTime(List times)
          _more_
 List<StormInfo> getStormInfos()
          _more_
protected  DateTime getStormStartTime(String id)
          _more_
 StormTrackCollection getTrackCollection(StormInfo stormInfo, Hashtable<String,Boolean> waysToUse)
          _more_
protected  void initAfter()
          _more_
protected  void initTypes()
          _more_
static void main(String[] args)
          _more_
 void setDbUrl(String value)
          Set the DbUrl property.
 
Methods inherited from class ucar.unidata.data.storm.StormDataSource
doMakeDataChoices, getCategory, getStormInfo, getYear
 
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, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, doRemove, endWritingDataToLocalDisk, equals, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataInner, getDataIsEditable, getDataPaths, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getExtraGeoSelectionComponent, getFileFilterForPolling, getFullDescription, getid, 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, initAfterCreation, initAfterUnpersistence, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, newFilesFromPolling, notifyDataChange, propertiesChanged, putCache, reloadData, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, saveDataToLocalDisk, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDescription, setDescriptor, setDirectory, setInError, setInError, setInError, setName, setNewFiles, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, updateState, 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

TYPE_MAXWINDSPEED

public static RealType TYPE_MAXWINDSPEED
_more_


TYPE_MINPRESSURE

public static RealType TYPE_MINPRESSURE
_more_


TYPE_RADIUSMODERATEGALE

public static RealType TYPE_RADIUSMODERATEGALE
_more_


TYPE_RADIUSWHOLEGALE

public static RealType TYPE_RADIUSWHOLEGALE
_more_


TYPE_PROBABILITYRADIUS

public static RealType TYPE_PROBABILITYRADIUS
_more_


TYPE_MOVEDIRECTION

public static RealType TYPE_MOVEDIRECTION
_more_


TYPE_MOVESPEED

public static RealType TYPE_MOVESPEED
_more_

Constructor Detail

STIStormDataSource

public STIStormDataSource()
                   throws Exception
_more_

Throws:
Exception - _more_

STIStormDataSource

public STIStormDataSource(DataSourceDescriptor descriptor,
                          String url,
                          Hashtable properties)
                   throws Exception
_more_

Parameters:
descriptor - _more_
url - _more_
properties - _more_
Throws:
Exception - _more_
Method Detail

initTypes

protected void initTypes()
                  throws VisADException
_more_

Overrides:
initTypes in class StormDataSource
Throws:
VisADException - _more_

initAfter

protected void initAfter()
_more_

Overrides:
initAfter in class DataSourceImpl

getStormInfos

public List<StormInfo> getStormInfos()
_more_

Specified by:
getStormInfos in class StormDataSource
Returns:
_more_

getTrackCollection

public StormTrackCollection getTrackCollection(StormInfo stormInfo,
                                               Hashtable<String,Boolean> waysToUse)
                                        throws Exception
_more_

Specified by:
getTrackCollection in class StormDataSource
Parameters:
stormInfo - _more_
Returns:
_more_
Throws:
Exception - _more_

getForecastTrackStartDates

protected List<DateTime> getForecastTrackStartDates(StormInfo stormInfo,
                                                    Way way)
                                             throws Exception
_more_

Parameters:
stormInfo - _more_
way - _more_
Returns:
_more_
Throws:
Exception - _more_

getObservationTrack

protected StormTrack getObservationTrack(StormInfo stormInfo)
                                  throws Exception
_more_

Parameters:
stormInfo - _more_
Returns:
_more_
Throws:
Exception - _more_

getObservationTrack

protected List<StormTrackPoint> getObservationTrack(StormInfo stormInfo,
                                                    Way wy)
                                             throws Exception
_more_

Parameters:
stormInfo - _more_
wy - _more_
Returns:
_more_
Throws:
Exception - _more_

getObservationTrack

protected List<StormTrackPoint> getObservationTrack(StormInfo stormInfo,
                                                    Way wy,
                                                    DateTime before,
                                                    DateTime after,
                                                    List pts)
                                             throws Exception
_more_

Parameters:
stormInfo - _more_
wy - _more_
before - _more_
after - _more_
pts - _more_
Returns:
_more_
Throws:
Exception - _more_

getStartTime

protected DateTime getStartTime(List times)
_more_

Parameters:
times - _more_
Returns:
_more_

getStormStartTime

protected DateTime getStormStartTime(String id)
                              throws Exception
_more_

Parameters:
id - _more_
Returns:
_more_
Throws:
Exception - _more_

getForecastWays

protected List<Way> getForecastWays(StormInfo stormInfo)
                             throws Exception
_more_

Parameters:
stormInfo - _more_
Returns:
_more_
Throws:
Exception - _more_

getConnection

public Connection getConnection()
_more_

Returns:
_more_

main

public static void main(String[] args)
                 throws Exception
_more_

Parameters:
args - _more_
Throws:
Exception - _more_

setDbUrl

public void setDbUrl(String value)
Set the DbUrl property.

Parameters:
value - The new value for DbUrl

getDbUrl

public String getDbUrl()
Get the DbUrl property.

Returns:
The DbUrl