|
||||||||||
| 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.imagery.ImageDataSource
public abstract class ImageDataSource
Abstract DataSource class for images files.
| Nested Class Summary | |
|---|---|
static class |
ImageDataSource.ImageDataInfo
Class ImageDataInfo Holds an index and an AddeImageDescriptor |
| Field Summary | |
|---|---|
protected List |
imageList
list of images |
protected List |
imageTimes
list of image times |
static String |
PROP_BANDINFO
satellite type |
static String |
PROP_IMAGETYPE
Type of image, radar or satellite. |
static String |
TYPE_RADAR
radar type |
static String |
TYPE_SATELLITE
satellite type |
| 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 | |
|---|---|
ImageDataSource()
The parameterless constructor for unpersisting. |
|
ImageDataSource(DataSourceDescriptor descriptor,
ImageDataset ids,
Hashtable properties)
Create a new ImageDataSource with the given ImageDataset. |
|
ImageDataSource(DataSourceDescriptor descriptor,
List images,
Hashtable properties)
Create a new ImageDataSource with a list of (String) images. |
|
ImageDataSource(DataSourceDescriptor descriptor,
String[] images,
Hashtable properties)
Create a new ImageDataSource with a list of (String) images. |
|
| Method Summary | |
|---|---|
boolean |
canCacheDataToDisk()
Can this data source cache its |
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk |
void |
doMakeDataChoices()
Create the set of DataChoice that represent
the data held by this data source. |
List |
doMakeDateTimes()
Override the base class method to return the list of times we created. |
void |
doRemove()
Called when Datasource is removed. |
boolean |
equals(Object o)
Check to see if this ImageDataSource is equal to the object in question. |
List |
getAllDateTimes(DataChoice dataChoice)
Override the base class method for the non composite choices. |
List |
getBandCategories()
Return the list of DataCategory used for
single time step data with band information. |
List |
getBandTimeSeriesCategories()
Return the list of DataCategory used for
multiple time step data with band information. |
List |
getCompositeDataChoices(CompositeDataChoice compositeDataChoice,
List dataChoices)
This is used when we are unbundled and we may have different times than when we were saved. |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Create the actual data represented by the given DataChoice. |
String |
getDataName()
Get the name for the main data object |
List |
getDataPaths()
Get the paths for saving data files |
String |
getFullDescription()
Get an expanded description for the details display. |
abstract String |
getImageDataSourceName()
A hook for the derived classes to return their specific name (eg, ADDE data source, McIDAS data source. |
List |
getImageList()
Return the list of AddeImageDescriptors that define this
data source. |
protected List |
getLocationsForPolling()
Get the location where we poll. |
List |
getSelectedDateTimes(DataChoice dataChoice)
Override the base class method for the non-composite choices. |
List |
getTwoDCategories()
Return the list of DataCategory used for
single time step data. |
List |
getTwoDTimeSeriesCategories()
Return the list of DataCategory used for
multiple time step data. |
int |
hashCode()
Override the hashCode method. |
void |
initAfterUnpersistence()
Override the init method for when this data source is unpersisted. |
protected boolean |
initDataFromPollingInfo()
Method for intializing the data. |
protected boolean |
isFileBased()
Are we getting images from a file or from adde |
protected SingleBandedImage |
makeImage(DataChoice dataChoice,
DataSelection subset)
Create the single image defined by the given dataChoice. |
static ImageDataset |
makeImageDataset(String[] addeURLs)
Make an ImageDataset from an array of ADDE URLs or AREA file names |
static List |
makeImageDescriptors(String[] addeURLs)
Make a list of image descriptors |
protected ImageSequence |
makeImageSequence(DataChoice dataChoice,
DataSelection subset)
Create the image sequence defined by the given dataChoice. |
void |
newFileFromPolling(File file)
If we are polling some directory this method gets called when there is a new file. |
protected void |
propertiesChanged()
The user changed the properties. |
protected List |
saveDataToLocalDisk(String prefix,
Object loadId,
boolean changeLinks)
Save files to local disk |
void |
setImageList(List l)
Set the list of AddeImageDescriptors that define this data
source. |
void |
updateState(Object newObject,
Hashtable newProperties)
Update the state |
| 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, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Field Detail |
|---|
public static final String PROP_IMAGETYPE
public static final String TYPE_RADAR
public static final String TYPE_SATELLITE
public static final String PROP_BANDINFO
protected List imageList
protected List imageTimes
| Constructor Detail |
|---|
public ImageDataSource()
public ImageDataSource(DataSourceDescriptor descriptor,
String[] images,
Hashtable properties)
descriptor - The descriptor for this data source.images - Array of file anmes or urls.properties - The properties for this data source.
public ImageDataSource(DataSourceDescriptor descriptor,
List images,
Hashtable properties)
descriptor - The descriptor for this data source.images - Array of file anmes or urls.properties - The properties for this data source.
public ImageDataSource(DataSourceDescriptor descriptor,
ImageDataset ids,
Hashtable properties)
ImageDataset.
The dataset may hold eight AREA file filepaths or ADDE URLs.
descriptor - The descriptor for this data source.ids - The dataset.properties - The properties for this data source.| Method Detail |
|---|
public void updateState(Object newObject,
Hashtable newProperties)
DataSourceImpl
updateState in interface DataSourceupdateState in class DataSourceImplnewObject - new objectnewProperties - new properties to addpublic List getDataPaths()
getDataPaths in interface DataSourcegetDataPaths in class DataSourceImplpublic void initAfterUnpersistence()
initAfterUnpersistence in interface DataSourceinitAfterUnpersistence in class DataSourceImplpublic boolean canCacheDataToDisk()
canCacheDataToDisk in class DataSourceImplpublic boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk in interface DataSourcecanSaveDataToLocalDisk in class DataSourceImpl
protected List saveDataToLocalDisk(String prefix,
Object loadId,
boolean changeLinks)
throws Exception
saveDataToLocalDisk in class DataSourceImplprefix - destination dir and file prefixloadId - For JobManagerchangeLinks - Change internal file references
Exception - On badnessprotected boolean initDataFromPollingInfo()
protected void propertiesChanged()
propertiesChanged in class DataSourceImplpublic static ImageDataset makeImageDataset(String[] addeURLs)
addeURLs - array of ADDE URLs
public static List makeImageDescriptors(String[] addeURLs)
addeURLs - array of ADDE URLs
protected List getLocationsForPolling()
getLocationsForPolling in class DataSourceImplprotected boolean isFileBased()
public List getCompositeDataChoices(CompositeDataChoice compositeDataChoice,
List dataChoices)
getCompositeDataChoices in interface DataSourcegetCompositeDataChoices in class DataSourceImplcompositeDataChoice - The compositedataChoices - Its choices
public abstract String getImageDataSourceName()
public List getImageList()
AddeImageDescriptors that define this
data source.
public void setImageList(List l)
AddeImageDescriptors that define this data
source.
l - The list of image descriptors.public List doMakeDateTimes()
doMakeDateTimes in class DataSourceImplpublic List getTwoDCategories()
DataCategory used for
single time step data.
public List getTwoDTimeSeriesCategories()
DataCategory used for
multiple time step data.
public List getBandCategories()
DataCategory used for
single time step data with band information.
public List getBandTimeSeriesCategories()
DataCategory used for
multiple time step data with band information.
public void doMakeDataChoices()
DataChoice that represent
the data held by this data source. We create one top-level
CompositeDataChoice that represents
all of the image time steps. We create a set of children
DirectDataChoice, one for each time step.
doMakeDataChoices in class DataSourceImpl
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
DataChoice.
getDataInner in class DataSourceImpldataChoice - Either the
CompositeDataChoice
representing all time steps or a
DirectDataChoice
representing a single time step.category - Not really used.dataSelection - Defines any time subsets.requestProperties - extra request properties
RemoteException - Java RMI problem
VisADException - VisAD problempublic List getAllDateTimes(DataChoice dataChoice)
getAllDateTimes in interface DataSourcegetAllDateTimes in class DataSourceImpldataChoice - Either the
CompositeDataChoice
representing all time steps or a
DirectDataChoice
representing a single time step.
public List getSelectedDateTimes(DataChoice dataChoice)
getSelectedDateTimes in interface DataSourcegetSelectedDateTimes in class DataSourceImpldataChoice - Either the
CompositeDataChoice
representing all time steps or a
DirectDataChoice
representing a single time step.
protected final SingleBandedImage makeImage(DataChoice dataChoice,
DataSelection subset)
throws VisADException,
RemoteException
dataChoice - The choice.subset - any time subsets.
RemoteException - Java RMI problem
VisADException - VisAD problem
protected ImageSequence makeImageSequence(DataChoice dataChoice,
DataSelection subset)
throws VisADException,
RemoteException
dataChoice - The choice.subset - any time subsets.
RemoteException - Java RMI problem
VisADException - VisAD problempublic boolean equals(Object o)
equals in class DataSourceImplo - object in question
public int hashCode()
hashCode in class Objectpublic void doRemove()
doRemove in interface DataSourcedoRemove in class DataSourceImplpublic String getDataName()
public String getFullDescription()
getFullDescription in interface DataSourcegetFullDescription in class DataSourceImplpublic void newFileFromPolling(File file)
newFileFromPolling in class DataSourceImplfile - new File to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||