|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSource
Interface for a source of Data
| Field Summary | |
|---|---|
static String |
DATAPATH_DATE_FORMAT
??? |
static String |
DATAPATH_DATE_PATTERN
??? |
static String |
MOST_RECENT
Identifier for most recent properties |
static String[] |
ordinalNames
Ordinal names for images |
static String |
PROP_AUTOCREATEDISPLAY
property id |
static String |
PROP_BASEDIRECTORY
The base directory property |
static String |
PROP_CACHEABLE
Property id for if this data source is cacheable |
static String |
PROP_DATACHOICENAME
The DataChoice name property |
static String |
PROP_DISPLAYPROPERTIES
The property for display properties |
static String |
PROP_DOCUMENTLINKS
The document links property |
static String |
PROP_FILEPATTERN
The file pattern property |
static String |
PROP_GEOLOCATION
The geolocation property |
static String |
PROP_ICON
icon property name |
static String |
PROP_NAME
The name property |
static String |
PROP_POLLINFO
The polling interval property |
static String |
PROP_RESOLVERURL
The resolver URL property |
static String |
PROP_SERVICE_HTTP
properties from the catalogs |
static String |
PROP_SUBPROPERTIES
property identifier |
static String |
PROP_TIMELABELS
Used in request properties for the time labels |
static String |
PROP_TITLE
The title property |
| Method Summary | |
|---|---|
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 |
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(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(Object dataChoiceId)
A utility method to find a given DataChoice based on the id |
List |
findDataChoices(Object id)
A utility method to find all data choices that match the pattern |
List |
getActions()
Get any Action-s associated with this DataSource. |
String |
getAlias()
Return the alias for this DataSource. |
List |
getAllDateTimes()
Get the list of all times available from this DataSource |
List |
getAllDateTimes(DataChoice dataChoice)
Get the list of all times available from the DataChoice |
List |
getAllLevels(DataChoice dataChoice)
Get the list of all levels available from this DataSource |
List |
getAllLevels(DataChoice dataChoice,
DataSelection dataSelection)
Get all levels for the data choice and selection |
List |
getCompositeDataChoices(CompositeDataChoice compositeDataChoice,
List dataChoices)
Utility to update the children data choices |
Data |
getData(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Return the visad.Data object represented by the given dataChoice argument |
Data |
getData(DataChoice dataChoice,
DataCategory category,
Hashtable requestProperties)
Return the visad.Data object represented by the given dataChoice argument |
List |
getDataChoices()
Return the List of DataChoice objects |
boolean |
getDataIsEditable()
Has this data source been marked to change it file on a bundle load |
List |
getDataPaths()
Get the list of file or url paths this data source has |
DataSelection |
getDataSelection()
Get the DataSelection for this DataSource |
List<DataSelectionComponent> |
getDataSelectionComponents(DataChoice dataChoice)
Returns a list of DataSelectionComponents that are shown in the field selector |
List |
getDateTimeSelection()
Get the list of datetimes that this data source should use. |
String |
getDescription()
Human readable description of this DataSource |
String |
getErrorMessage()
Get the current error message. |
String |
getFullDescription()
All the details |
boolean |
getInError()
See if this DataSource is in error. |
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 |
String |
getPartialDescription()
A little more detailed description of this DataSource |
Object |
getProperty(String name)
Get the property |
List |
getSelectedDateTimes()
Get the list of all times selected from this DataSource |
List |
getSelectedDateTimes(DataChoice dataChoice)
Get the list of all times selected from the DataChoice |
List |
getTmpPaths()
for changing paths |
String |
getTypeName()
Get the type name of this DataSource |
String |
getUniqueId()
Return the unique id of this datasource. |
boolean |
identifiedBy(Object definingObject)
Is this datasource identified by the given defining object. |
boolean |
identifiedByName(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(Object object,
Hashtable properties)
|
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 |
List |
saveDataToLocalDisk(boolean changeLinks,
String uniqueFilePath)
Save the files to local disk |
void |
setAlias(String alias)
Set the alias |
void |
setDataIsEditable(boolean value)
Set the DataIsEditable property. |
void |
setDateTimeSelection(List selectedTimes)
Set the list of datetimes that this data source should use. |
void |
setInError(boolean b)
|
void |
setNewFiles(List files)
Used to change what files this data source uses |
void |
setObjectProperties(Hashtable properties)
set the properties |
void |
setTmpPaths(List strings)
for changing paths |
boolean |
showPropertiesDialog()
Show the properties dialog |
void |
updateState(Object newObject,
Hashtable newProperties)
Update the state |
| Field Detail |
|---|
static final String PROP_SERVICE_HTTP
static final String PROP_SUBPROPERTIES
static final String PROP_CACHEABLE
static final String PROP_ICON
static final String PROP_AUTOCREATEDISPLAY
static final String PROP_DOCUMENTLINKS
static final String PROP_FILEPATTERN
static final String PROP_RESOLVERURL
static final String PROP_POLLINFO
static final String PROP_BASEDIRECTORY
static final String PROP_TITLE
static final String PROP_NAME
static final String PROP_DATACHOICENAME
static final String PROP_GEOLOCATION
static final String PROP_DISPLAYPROPERTIES
static final String PROP_TIMELABELS
static final String[] ordinalNames
static final String MOST_RECENT
static final String DATAPATH_DATE_FORMAT
static final String DATAPATH_DATE_PATTERN
| Method Detail |
|---|
List getDataChoices()
DataChoice objects
Data getData(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
dataChoice - choice for the datacategory - The data categorydataSelection - sub selection (i.e. times) criteriarequestProperties - extra request properties
RemoteException - Java RMI problem
VisADException - VisAD problem
Data getData(DataChoice dataChoice,
DataCategory category,
Hashtable requestProperties)
throws VisADException,
RemoteException
dataChoice - choice for the datacategory - The data categoryrequestProperties - extra request properties
RemoteException - Java RMI problem
VisADException - VisAD problemObject getProperty(String name)
name - prop name
String getName()
void setNewFiles(List files)
files - List of filesString getDescription()
String getPartialDescription()
String getFullDescription()
DataChoice findDataChoice(Object dataChoiceId)
dataChoiceId - the ID of the DataChoice
List findDataChoices(Object id)
id - The id
String getTypeName()
List getAllLevels(DataChoice dataChoice)
dataChoice - The data choice to get levels for
List getAllLevels(DataChoice dataChoice,
DataSelection dataSelection)
dataChoice - data choicedataSelection - selection
List getAllDateTimes()
List getSelectedDateTimes()
List getAllDateTimes(DataChoice dataChoice)
dataChoice - DataChoice in question
List getSelectedDateTimes(DataChoice dataChoice)
dataChoice - DataChoice in question
void setDateTimeSelection(List selectedTimes)
selectedTimes - List of times to useList 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)
boolean getNeedToShowErrorToUser()
String getErrorMessage()
void initAfterUnpersistence()
void initAfterCreation()
boolean identifiedBy(Object definingObject)
definingObject - object in question
boolean identifiedByName(String name)
name - the name.
String getAlias()
void setAlias(String alias)
alias - alias to useString getUniqueId()
List getActions()
Action-s associated with this DataSource. The actions
can be used to create menus, buttons, etc.
boolean showPropertiesDialog()
void reloadData()
List getCompositeDataChoices(CompositeDataChoice compositeDataChoice,
List dataChoices)
compositeDataChoice - composite data choicedataChoices - Its children
boolean canDoGeoSelection()
List<DataSelectionComponent> getDataSelectionComponents(DataChoice dataChoice)
dataChoice - The data choice in the field selector
void setObjectProperties(Hashtable properties)
properties - propertiesvoid setDataIsEditable(boolean value)
value - The new value for DataIsEditableboolean getDataIsEditable()
List getTmpPaths()
void updateState(Object newObject,
Hashtable newProperties)
newObject - new objectnewProperties - the propertiesvoid setTmpPaths(List strings)
strings - Changed pathsvoid resetTmpState()
List getDataPaths()
boolean canSaveDataToLocalDisk()
List saveDataToLocalDisk(boolean changeLinks,
String uniqueFilePath)
throws IOException
changeLinks - And change the internal file referencesuniqueFilePath - Prefix to save files to
IOException - On badnessvoid clearCachedData()
void createAutoDisplay(String displayType,
DataContext dataContext)
displayType - The display control type iddataContext - Really, the IDVboolean canAddCurrentName(DataChoice dataChoice)
dataChoice - the data choice
void reloadData(Object object,
Hashtable properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||