Package gaiasky.util.datadesc
Class DataDescriptor
java.lang.Object
gaiasky.util.datadesc.DataDescriptor
-
Field Summary
Modifier and TypeFieldDescriptionRaw datasets list, where each dataset has a typestatic DataDescriptor
int
static DataDescriptor
View organised by types, where each time has a list of datasetsboolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
datasetPresent
(String name) Checks whether the dataset with the given name is present in the data folder.findDataset
(String name) Finds the dataset with the given name in the dataset descriptor list.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.
-
Field Details
-
localDataDescriptor
-
serverDataDescriptor
-
types
View organised by types, where each time has a list of datasets -
datasets
Raw datasets list, where each dataset has a type -
updatesAvailable
public boolean updatesAvailable -
numUpdates
public int numUpdates
-
-
Constructor Details
-
DataDescriptor
-
-
Method Details
-
findDataset
Finds the dataset with the given name in the dataset descriptor list.- Parameters:
name
- The name of the dataset- Returns:
- The dataset descriptor or null if it was not found
-
findDatasetByKey
Finds the dataset with the given key in the dataset descriptor list.- Parameters:
key
- The key of the dataset- Returns:
- The dataset descriptor or null if it was not found
-
datasetPresent
Checks whether the dataset with the given name is present in the data folder.- Parameters:
name
- The dataset name.- 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
-