Class DataDescriptor

java.lang.Object
gaiasky.util.datadesc.DataDescriptor

public class DataDescriptor extends Object
  • Field Details

    • localDataDescriptor

      public static DataDescriptor localDataDescriptor
    • serverDataDescriptor

      public static DataDescriptor serverDataDescriptor
    • types

      public List<DatasetType> types
      View organised by types, where each time has a list of datasets
    • datasets

      public List<DatasetDesc> datasets
      Raw datasets list, where each dataset has a type
    • updatesAvailable

      public boolean updatesAvailable
    • numUpdates

      public int numUpdates
  • Constructor Details

  • Method Details

    • findDatasetByName

      public DatasetDesc findDatasetByName(String name)
      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

      public DatasetDesc findDatasetByKey(String key)
      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

      public boolean datasetPresent(String key)
      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

      public DatasetDesc findDatasetByDescriptor(Path descriptorFile) throws IOException
      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