Class DataLoader


  • public class DataLoader
    extends Object
    Manages loading the experimental time-temperature profiles, metadata files and InterpolationDatasets. Tracks the load progress using a ProgressDialog.
    • Method Detail

      • loadDataDialog

        public static void loadDataDialog()
        Initiates a user dialog to load experimental time-temperature profiles. Multiple selection is possible. When the user finalises selection, the TaskManager will start generating tasks using the files selected by the user as input. The tracker progress bar is reset and made visible.
      • loadMetadataDialog

        public static void loadMetadataDialog()
        Asks the user to select a single file containing the metadata, with the extension given by the MetaFilePopulator class. If a valid selection is made and the task list is not empty, proceeds to populating each task's metadata object using the information contained in the selected file. If the task has a problem assigned to it, sets the parameters of that problem to match the loaded Metadata. Throughout the process, progress is monitored in a separate dialog with a JProgressBar. Upon finishing, the data range will be checked to determine if truncation is needed.
        See Also:
        truncateDataDialog
      • loadPulseDialog

        public static void loadPulseDialog()
      • loadDensity

        public static void loadDensity​(File f)
                                throws IOException
        Uses the ReaderManager to create an InterpolationDataset from data stored in f and updates the associated properties of each task.
        Parameters:
        f - a File containing a property specified by the type
        Throws:
        IOException - if file cannot be read
      • loadSpecificHeat

        public static void loadSpecificHeat​(File f)
                                     throws IOException
        Uses the ReaderManager to create an InterpolationDataset from data stored in f and updates the associated properties of each task.
        Parameters:
        f - a File containing a property specified by the type
        Throws:
        IOException - if file cannot be read