simtools.data
Class DataSourceCollectionAnimatorProvider
java.lang.Object
simtools.data.FileDataSourceProvider
simtools.data.DataSourceCollectionAnimatorProvider
- All Implemented Interfaces:
- DataSourceProvider
- Direct Known Subclasses:
- DataSourceCollectionAnimatorProvider
public class DataSourceCollectionAnimatorProvider
- extends FileDataSourceProvider
Provider for simtools Animated DataSourceCollection
Due to runtype checking, the provider of animated data sources cannot be used
directly. Besides which, animated data source have their own parameters
- Author:
- Nicolas Brodu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceCollectionAnimatorProvider
public DataSourceCollectionAnimatorProvider()
getOptionalInformation
public java.lang.Object getOptionalInformation(DataSource ds,
DataSourceCollection dsc)
- Description copied from interface:
DataSourceProvider
- Asks this provider some optional information about a datasource and
possibly its collection.
- Specified by:
getOptionalInformation
in interface DataSourceProvider
- Overrides:
getOptionalInformation
in class FileDataSourceProvider
- Parameters:
ds
- The datasourcedsc
- The datasource collection, or null.
- Returns:
- null if this provider cannot provide optional information, an
arbitrary object otherwise.
provide
public DataSource provide(java.lang.String id,
java.lang.String dscId,
java.lang.Object optionalInformation,
DataSourcePool pool)
- Description copied from interface:
DataSourceProvider
- Asks this provider to resolve a symbolic datasource reference.
- Specified by:
provide
in interface DataSourceProvider
- Overrides:
provide
in class FileDataSourceProvider
- Parameters:
id
- The symbolic id of a datasourcedscId
- The symbolic id of a datasourceCollection. May be nulloptionalInformation
- Can be set to help this provider. May be nullpool
- DataSourcePool in which to add the source and collection if
they can be provided. May be null.
- Returns:
- The desired datasource if it can be provided, or null.
createEmptyDatasource
protected DataSource createEmptyDatasource(java.lang.String dsId,
java.lang.String dscId,
java.lang.Object optionalInformation)
- Specified by:
createEmptyDatasource
in class FileDataSourceProvider