org.autoplot.datasource.AbstractDataSource
Base class for file-based DataSources that keeps track of the uri, makes
the parameters available, manages capabilities and has do-nothing
implementations for rarely-used methods of DataSource.
Also this provides the filePollUpdating parameter and Updating capability.
AbstractDataSource( java.net.URI uri )
addCability
Deprecated: use addCapability
addCapability
addCapability( java.lang.Class clazz, Object o ) → void
attach a capability
Parameters
clazz - the capability class.
o - an implementation.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
asynchronousLoad
asynchronousLoad( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getCapability
getCapability( java.lang.Class clazz ) → Object
attempt to get a capability. null will be returned if the
capability doesn't exist.
Parameters
clazz - the capability class.
Returns:
null or an implementation of a capability.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getDataSet
getDataSet( ProgressMonitor mon ) → QDataSet
Parameters
mon - a ProgressMonitor
Returns:
org.das2.qds.QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getMetadata
getMetadata( ProgressMonitor mon ) → java.util.Map
abstract class version returns an empty tree. Override this method
to provide metadata.
Parameters
mon - progress monitor
Returns:
a java.util.Map
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getMetadataModel
getMetadataModel( ) → org.autoplot.datasource.MetadataModel
return a MetadataModel object that can make the metadata canonical.
For example, ISTPMetadataModel interprets the metadata returned from CDF files,
but this same model can be used with HDF files. This returns a null model
that does no interpretation, and some data sources will override this.
Returns:
an org.autoplot.datasource.MetadataModel
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getProperties
getProperties( ) → java.util.Map
return metadata in canonical form using the metadata model. If there
are no properties or a null model, then an empty map is returned.
Note, getMetadataModel should return non-null, and getMetadata should return non-null,
but this guards against the mistake.
Returns:
a java.util.Map
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getURI
getURI( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toString
toString( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]