Interface DatasetCatalogue
-
- All Known Subinterfaces:
WmsCatalogue
- All Known Implementing Classes:
DataCatalogue
public interface DatasetCatalogue
A catalogue ofDataset
s and the default plotting information for the Variables contained within them- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Dataset>
getAllDatasets()
Dataset
getDatasetFromId(String datasetId)
Returns aDataset
from its IDorg.joda.time.DateTime
getLastUpdateTime()
EnhancedVariableMetadata
getLayerMetadata(VariableMetadata variableMetadata)
ReturnsEnhancedVariableMetadata
giving for a given layer.
-
-
-
Method Detail
-
getAllDatasets
Collection<Dataset> getAllDatasets()
- Returns:
- All available
Dataset
s in thisDatasetCatalogue
. Will returnnull
in cases where this information is not available (e.g. allDataset
s are dynamically generated)
-
getDatasetFromId
Dataset getDatasetFromId(String datasetId)
Returns aDataset
from its ID- Parameters:
datasetId
- The ID of the dataset- Returns:
- The desired dataset, or
null
if it doesn't exist in the catalogue
-
getLayerMetadata
EnhancedVariableMetadata getLayerMetadata(VariableMetadata variableMetadata) throws EdalLayerNotFoundException
ReturnsEnhancedVariableMetadata
giving for a given layer. This gives default values for scale range, palette etc., as well as metadata such as title, description, etc.- Parameters:
variableMetadata
- TheVariableMetadata
of the desired layer- Returns:
- Default metadata values for the desired layer
- Throws:
EdalLayerNotFoundException
-
getLastUpdateTime
org.joda.time.DateTime getLastUpdateTime()
- Returns:
- The
DateTime
at which thisDatasetCatalogue
was last updated
-
-