public interface DataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATAPATH_DATE_FORMAT
???
|
static java.lang.String |
DATAPATH_DATE_PATTERN
???
|
static java.lang.String |
MOST_RECENT
Identifier for most recent properties
|
static java.lang.String[] |
ordinalNames
Ordinal names for images
|
static java.lang.String |
PROP_AUTOCREATEDISPLAY
property id
|
static java.lang.String |
PROP_BASEDIRECTORY
The base directory property
|
static java.lang.String |
PROP_CACHEABLE
Property id for if this data source is cacheable
|
static java.lang.String |
PROP_DATACHOICENAME
The DataChoice name property
|
static java.lang.String |
PROP_DISPLAYPROPERTIES
The property for display properties
|
static java.lang.String |
PROP_DOCUMENTLINKS
The document links property
|
static java.lang.String |
PROP_FILEPATTERN
The file pattern property
|
static java.lang.String |
PROP_GEOLOCATION
The geolocation property
|
static java.lang.String |
PROP_ICON
icon property name
|
static java.lang.String |
PROP_NAME
The name property
|
static java.lang.String |
PROP_POLLINFO
The polling interval property
|
static java.lang.String |
PROP_RESOLVERURL
The resolver URL property
|
static java.lang.String |
PROP_SERVICE_HTTP
properties from the catalogs
|
static java.lang.String |
PROP_SUBPROPERTIES
property identifier
|
static java.lang.String |
PROP_TIMELABELS
Used in request properties for the time labels
|
static java.lang.String |
PROP_TIMESTRIDE
The time property
|
static java.lang.String |
PROP_TITLE
The title property
|
Modifier and Type | Method and Description |
---|---|
void |
addDataChangeListener(DataChangeListener listener)
Add the data change listener.
|
boolean |
canAddCurrentName(DataChoice dataChoice)
can we add the data choice to the global list of parameter names
|
boolean |
canDoAllLevels()
Whether this DataSource to do "All levels"
|
boolean |
canDoGeoSelection()
Can this datasource do the geoselection subsetting and decimation
|
boolean |
canSaveDataToLocalDisk()
Can this data source saves its files to local disk
|
void |
clearCachedData()
This is called when the CacheManager detects the need ot clear memory.
|
void |
createAutoDisplay(java.lang.String displayType,
DataContext dataContext)
Automatically create the given display on initialization.
|
void |
doRemove()
Remove this DataSource
|
void |
expandIfNeeded(CompositeDataChoice cdc)
Gets called by the DataSelection tree gui when a CompositeDataChoice
is first opened.
|
DataChoice |
findDataChoice(java.lang.Object dataChoiceId)
A utility method to find a given DataChoice based on the id
|
java.util.List |
findDataChoices(java.lang.Object id)
A utility method to find all data choices that match the pattern
|
java.util.List |
getActions()
Get any
Action -s associated with this DataSource. |
java.lang.String |
getAlias()
Return the alias for this DataSource.
|
java.util.List |
getAllDateTimes()
Get the list of all times available from this DataSource
|
java.util.List |
getAllDateTimes(DataChoice dataChoice)
Get the list of all times available from the DataChoice
|
java.util.List |
getAllLevels(DataChoice dataChoice)
Get the list of all levels available from this DataSource
|
java.util.List |
getAllLevels(DataChoice dataChoice,
DataSelection dataSelection)
Get all levels for the data choice and selection
|
java.util.List |
getCompositeDataChoices(CompositeDataChoice compositeDataChoice,
java.util.List dataChoices)
Utility to update the children data choices
|
visad.Data |
getData(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Return the visad.Data object represented by the given
dataChoice argument
|
visad.Data |
getData(DataChoice dataChoice,
DataCategory category,
java.util.Hashtable requestProperties)
Return the visad.Data object represented by the given dataChoice argument
|
java.util.List |
getDataChoices()
Return the List of
DataChoice objects |
boolean |
getDataIsEditable()
Has this data source been marked to change it file on a bundle load
|
java.util.List |
getDataPaths()
Get the list of file or url paths this data source has
|
DataSelection |
getDataSelection()
Get the DataSelection for this DataSource
|
java.util.List<DataSelectionComponent> |
getDataSelectionComponents(DataChoice dataChoice)
Returns a list of DataSelectionComponents that are shown in the field selector
|
java.util.List |
getDateTimeSelection()
Get the list of datetimes that this data source should use.
|
java.lang.String |
getDescription()
Human readable description of this DataSource
|
java.lang.String |
getErrorMessage()
Get the current error message.
|
java.lang.String |
getFullDescription()
All the details
|
boolean |
getInError()
See if this DataSource is in error.
|
java.lang.String |
getName()
Human readable name of this DataSource
|
boolean |
getNeedToShowErrorToUser()
Do we need to show the error to the user or was it already handled
|
java.lang.String |
getPartialDescription()
A little more detailed description of this DataSource
|
java.lang.Object |
getProperty(java.lang.String name)
Get the property
|
java.util.List |
getSelectedDateTimes()
Get the list of all times selected from this DataSource
|
java.util.List |
getSelectedDateTimes(DataChoice dataChoice)
Get the list of all times selected from the DataChoice
|
java.util.List |
getTmpPaths()
for changing paths
|
java.lang.String |
getTypeName()
Get the type name of this DataSource
|
java.lang.String |
getUniqueId()
Return the unique id of this datasource.
|
boolean |
identifiedBy(java.lang.Object definingObject)
Is this datasource identified by the given defining object.
|
boolean |
identifiedByName(java.lang.String name)
Is this datasource identified by the given label.
|
void |
initAfterCreation()
Intialization method that gets called after the DataSource has been created.
|
void |
initAfterUnpersistence()
Method to be implemented to have work done after the DataSource
has been unpersisted from XML
|
void |
notifyDataChange()
Method to call notifying implementers of changes to data
|
void |
reloadData()
Reload the data and notify any listeners
|
void |
reloadData(java.lang.Object object,
java.util.Hashtable properties)
Reload data.
|
void |
removeDataChangeListener(DataChangeListener listener)
Remove the data change listener.
|
void |
resetTmpState()
This gets called after we have been saved in a zidv bundle to reset us back to any original state
|
java.util.List |
saveDataToLocalDisk(boolean changeLinks,
java.lang.String uniqueFilePath)
Save the files to local disk
|
void |
setAlias(java.lang.String alias)
Set the alias
|
void |
setDataIsEditable(boolean value)
Set the DataIsEditable property.
|
void |
setDateTimeSelection(java.util.List selectedTimes)
Set the list of datetimes that this data source should use.
|
void |
setDefaultSave(boolean selected)
Sets the default save.
|
void |
setInError(boolean b)
_more_
|
void |
setNewFiles(java.util.List files)
Used to change what files this data source uses
|
void |
setObjectProperties(java.util.Hashtable properties)
set the properties
|
void |
setTmpPaths(java.util.List strings)
for changing paths
|
boolean |
showPropertiesDialog()
Show the properties dialog
|
void |
updateState(java.lang.Object newObject,
java.util.Hashtable newProperties)
Update the state
|
static final java.lang.String PROP_SERVICE_HTTP
static final java.lang.String PROP_SUBPROPERTIES
static final java.lang.String PROP_CACHEABLE
static final java.lang.String PROP_ICON
static final java.lang.String PROP_AUTOCREATEDISPLAY
static final java.lang.String PROP_DOCUMENTLINKS
static final java.lang.String PROP_FILEPATTERN
static final java.lang.String PROP_RESOLVERURL
static final java.lang.String PROP_POLLINFO
static final java.lang.String PROP_BASEDIRECTORY
static final java.lang.String PROP_TITLE
static final java.lang.String PROP_NAME
static final java.lang.String PROP_DATACHOICENAME
static final java.lang.String PROP_GEOLOCATION
static final java.lang.String PROP_TIMESTRIDE
static final java.lang.String PROP_DISPLAYPROPERTIES
static final java.lang.String PROP_TIMELABELS
static final java.lang.String[] ordinalNames
static final java.lang.String MOST_RECENT
static final java.lang.String DATAPATH_DATE_FORMAT
static final java.lang.String DATAPATH_DATE_PATTERN
java.util.List getDataChoices()
DataChoice
objectsvisad.Data getData(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dataChoice
- choice for the datacategory
- The data categorydataSelection
- sub selection (i.e. times) criteriarequestProperties
- extra request propertiesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemvisad.Data getData(DataChoice dataChoice, DataCategory category, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dataChoice
- choice for the datacategory
- The data categoryrequestProperties
- extra request propertiesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemjava.lang.Object getProperty(java.lang.String name)
name
- prop namejava.lang.String getName()
void setNewFiles(java.util.List files)
files
- List of filesjava.lang.String getDescription()
java.lang.String getPartialDescription()
java.lang.String getFullDescription()
DataChoice findDataChoice(java.lang.Object dataChoiceId)
dataChoiceId
- the ID of the DataChoicejava.util.List findDataChoices(java.lang.Object id)
id
- The idjava.lang.String getTypeName()
java.util.List getAllLevels(DataChoice dataChoice)
dataChoice
- The data choice to get levels forjava.util.List getAllLevels(DataChoice dataChoice, DataSelection dataSelection)
dataChoice
- data choicedataSelection
- selectionjava.util.List getAllDateTimes()
java.util.List getSelectedDateTimes()
java.util.List getAllDateTimes(DataChoice dataChoice)
dataChoice
- DataChoice in questionjava.util.List getSelectedDateTimes(DataChoice dataChoice)
dataChoice
- DataChoice in questionvoid setDateTimeSelection(java.util.List selectedTimes)
selectedTimes
- List of times to usejava.util.List getDateTimeSelection()
DataSelection getDataSelection()
void addDataChangeListener(DataChangeListener listener)
listener
- listener to addvoid expandIfNeeded(CompositeDataChoice cdc)
cdc
- the data choicevoid removeDataChangeListener(DataChangeListener listener)
listener
- listener to removevoid notifyDataChange()
void doRemove()
boolean getInError()
void setInError(boolean b)
b
- _more_boolean getNeedToShowErrorToUser()
java.lang.String getErrorMessage()
void initAfterUnpersistence()
void initAfterCreation()
boolean identifiedBy(java.lang.Object definingObject)
definingObject
- object in questionboolean identifiedByName(java.lang.String name)
name
- the name.java.lang.String getAlias()
void setAlias(java.lang.String alias)
alias
- alias to usejava.lang.String getUniqueId()
java.util.List getActions()
Action
-s associated with this DataSource. The actions
can be used to create menus, buttons, etc.boolean showPropertiesDialog()
void reloadData()
java.util.List getCompositeDataChoices(CompositeDataChoice compositeDataChoice, java.util.List dataChoices)
compositeDataChoice
- composite data choicedataChoices
- Its childrenboolean canDoGeoSelection()
java.util.List<DataSelectionComponent> getDataSelectionComponents(DataChoice dataChoice)
dataChoice
- The data choice in the field selectorvoid setObjectProperties(java.util.Hashtable properties)
properties
- propertiesboolean canDoAllLevels()
void setDataIsEditable(boolean value)
value
- The new value for DataIsEditableboolean getDataIsEditable()
java.util.List getTmpPaths()
void updateState(java.lang.Object newObject, java.util.Hashtable newProperties)
newObject
- new objectnewProperties
- the propertiesvoid setTmpPaths(java.util.List strings)
strings
- Changed pathsvoid resetTmpState()
java.util.List getDataPaths()
boolean canSaveDataToLocalDisk()
java.util.List saveDataToLocalDisk(boolean changeLinks, java.lang.String uniqueFilePath) throws java.io.IOException
changeLinks
- And change the internal file referencesuniqueFilePath
- Prefix to save files tojava.io.IOException
- On badnessvoid clearCachedData()
void createAutoDisplay(java.lang.String displayType, DataContext dataContext)
displayType
- The display control type iddataContext
- Really, the IDVboolean canAddCurrentName(DataChoice dataChoice)
dataChoice
- the data choicevoid reloadData(java.lang.Object object, java.util.Hashtable properties)
object
- the objectproperties
- the propertiesvoid setDefaultSave(boolean selected)
selected
- the new default save