Class DatasetGroup
java.lang.Object
gaiasky.util.datadesc.DatasetGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionRaw datasets list, where each dataset has a typestatic DatasetGroupintString[]Recommended datasets as an array of keys.static DatasetGroupfinal List<DatasetType> View organized by types, where each time has a list of datasetsboolean -
Constructor Summary
ConstructorsConstructorDescriptionDatasetGroup(List<DatasetType> types, List<Dataset> datasets) DatasetGroup(List<DatasetType> types, List<Dataset> datasets, String[] recommended) -
Method Summary
Modifier and TypeMethodDescriptionbooleandatasetPresent(String key) Checks whether the dataset with the given name is present in the data folder.findDatasetByDescriptor(Path descriptorFile) Finds the dataset with the given descriptor file in the dataset descriptor list.findDatasetByKey(String key) Finds the dataset with the given key in the dataset descriptor list.findDatasetByName(String name) Finds the dataset with the given name in the dataset descriptor list.
-
Field Details
-
localDataDescriptor
-
serverDataDescriptor
-
types
View organized by types, where each time has a list of datasets -
datasets
-
recommended
Recommended datasets as an array of keys. -
updatesAvailable
public boolean updatesAvailable -
numUpdates
public int numUpdates
-
-
Constructor Details
-
DatasetGroup
-
DatasetGroup
-
-
Method Details
-
findDatasetByName
-
findDatasetByKey
-
datasetPresent
Checks whether the dataset with the given name is present in the data folder.- Parameters:
key- The dataset key.- Returns:
- True if the dataset is present, false otherwise.
-
findDatasetByDescriptor
Finds the dataset with the given descriptor file in the dataset descriptor list.- Parameters:
descriptorFile- The filename of the descriptor file.- Returns:
- The dataset descriptor or null if it was not found.
- Throws:
IOException
-