|
||||||||||
| 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
edu.wisc.ssec.mcidasv.data.hrit.HRITDataSource
public class HRITDataSource
| Nested Class Summary | |
|---|---|
(package private) class |
HRITDataSource.ResolutionSelection
|
| Field Summary | |
|---|---|
protected List |
adapters
List of sources files |
private List |
categories
|
private static int |
counter
|
private static String |
DATA_DESCRIPTION
|
private List |
myDataChoices
children choices |
protected String |
oldSourceFromBundles
for unpersistence |
static String |
request
|
protected List |
sources
List of sources files |
| 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 | |
|---|---|
HRITDataSource()
Default constructor |
|
HRITDataSource(DataSourceDescriptor descriptor,
List newSources,
Hashtable properties)
Construct a new HRIT data source. |
|
HRITDataSource(DataSourceDescriptor descriptor,
List newSources,
String description,
Hashtable properties)
Create a HRITDataSource |
|
HRITDataSource(DataSourceDescriptor descriptor,
String fileName,
Hashtable properties)
Construct a new HRIT data source. |
|
| Method Summary | |
|---|---|
boolean |
canSaveDataToLocalDisk()
Can this data source save its data to local disk |
void |
clearCachedData()
This is called when the CacheManager detects the need ot clear memory. |
private DataChoice |
doMakeDataChoice(int idx,
String var)
|
void |
doMakeDataChoices()
Make and insert the DataChoice-s for this
DataSource. |
protected List |
doMakeDateTimes()
Create the list of times associated with this DataSource. |
protected List |
getAdapters()
Create, if needed, and return the list of adapters. |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataparams,
Hashtable requestProperties)
Get the data for the given DataChoice and selection criteria. |
protected void |
initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice)
|
protected boolean |
isFileBased()
Are we getting data from a file or from server |
private void |
makeAdapters(List files)
Make the adapters for the given list of files |
| 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 |
|---|
protected List sources
public static String request
protected List adapters
private List categories
protected String oldSourceFromBundles
private static final String DATA_DESCRIPTION
private static int counter
private List myDataChoices
| Constructor Detail |
|---|
public HRITDataSource()
public HRITDataSource(DataSourceDescriptor descriptor,
String fileName,
Hashtable properties)
throws VisADException
descriptor - descriptor for this DataSourcefileName - name of the HRIT segment file to readproperties - hashtable of properties
VisADException - problem creating data
public HRITDataSource(DataSourceDescriptor descriptor,
List newSources,
Hashtable properties)
throws VisADException
descriptor - descriptor for this DataSourcesources - List of filenamesproperties - hashtable of properties
VisADException - problem creating data
public HRITDataSource(DataSourceDescriptor descriptor,
List newSources,
String description,
Hashtable properties)
throws VisADException
descriptor - The datasource descriptornewSources - List of files or urlsdescription - The long nameproperties - properties
VisADException - couldn't create the data| Method Detail |
|---|
public boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk in interface DataSourcecanSaveDataToLocalDisk in class DataSourceImplprotected boolean isFileBased()
public void clearCachedData()
clearCachedData in interface DataSourceclearCachedData in class DataSourceImplpublic void doMakeDataChoices()
DataChoice-s for this
DataSource.
doMakeDataChoices in class DataSourceImpl
private DataChoice doMakeDataChoice(int idx,
String var)
throws Exception
Exceptionprotected List getAdapters()
private void makeAdapters(List files)
throws Exception
files - Data files
Exception - When bad things happenprotected List doMakeDateTimes()
doMakeDateTimes in class DataSourceImpl
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataparams,
Hashtable requestProperties)
throws VisADException,
RemoteException
getDataInner in class DataSourceImpldataChoice - DataChoice for selectioncategory - DataCategory for the DataChoice (not used)resolution - resolution criteriarequestProperties - extra request properties
RemoteException - couldn't create a remote data object
VisADException - couldn't create the data
protected void initDataSelectionComponents(List<DataSelectionComponent> components,
DataChoice dataChoice)
initDataSelectionComponents in class DataSourceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||