|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.text.TextProductDataSource
public abstract class TextProductDataSource
A class for handling text products (e.g. weather bulletins)
| Field Summary |
|---|
| 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 | |
|---|---|
TextProductDataSource()
Default bean constructor; does nothing. |
|
TextProductDataSource(DataSourceDescriptor descriptor,
List newSources,
String description,
Hashtable properties)
Ctor |
|
TextProductDataSource(DataSourceDescriptor descriptor,
List newSources,
String name,
String description,
Hashtable properties)
Create a TrackDataSource from the specification given. |
|
TextProductDataSource(DataSourceDescriptor descriptor,
String name,
String description,
Hashtable properties)
Ctor |
|
| Method Summary | |
|---|---|
protected void |
doMakeDataChoices()
Make the data choices |
abstract List<ProductGroup> |
getProductGroups()
Get the list of product groups |
abstract NamedStationTable |
getStations(ProductType productType,
DateSelection dateSelection)
Get the stations for a productType |
protected static Hashtable<String,Integer> |
makeStationMap(List<NamedStationImpl> stations)
Make a mapping of station name to integer count |
abstract List<Product> |
readProducts(ProductType productType,
List<NamedStationImpl> stations,
DateSelection dateSelection)
Read the products for the product type and station |
| 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, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState |
| 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 |
| Constructor Detail |
|---|
public TextProductDataSource()
public TextProductDataSource(DataSourceDescriptor descriptor,
String name,
String description,
Hashtable properties)
descriptor - The descriptorname - The namedescription - The long nameproperties - properties
public TextProductDataSource(DataSourceDescriptor descriptor,
List newSources,
String description,
Hashtable properties)
descriptor - The descriptornewSources - List of files or urlsdescription - The long nameproperties - properties
public TextProductDataSource(DataSourceDescriptor descriptor,
List newSources,
String name,
String description,
Hashtable properties)
descriptor - data source descriptornewSources - List of sources of data (filename/URL)name - my namedescription - description of the dataproperties - extra properties for initialization| Method Detail |
|---|
public abstract List<Product> readProducts(ProductType productType,
List<NamedStationImpl> stations,
DateSelection dateSelection)
productType - the product typestations - the stationsdateSelection - the date selection
public abstract NamedStationTable getStations(ProductType productType,
DateSelection dateSelection)
throws Exception
productType - the product typedateSelection - the date selection
Exception - problem getting the stationsprotected static Hashtable<String,Integer> makeStationMap(List<NamedStationImpl> stations)
stations - list of stations
public abstract List<ProductGroup> getProductGroups()
protected void doMakeDataChoices()
doMakeDataChoices in class DataSourceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||