Package pulse.ui.components
Class DataLoader
- java.lang.Object
-
- pulse.ui.components.DataLoader
-
public class DataLoader extends Object
Manages loading the experimental time-temperature profiles, metadata files andInterpolationDatasets. Tracks the load progress using aProgressDialog.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidloadDataDialog()Initiates a user dialog to load experimental time-temperature profiles.static voidloadDensity(File f)Uses theReaderManagerto create anInterpolationDatasetfrom data stored infand updates the associated properties of each task.static voidloadMetadataDialog()Asks the user to select a single file containing the metadata, with the extension given by theMetaFilePopulatorclass.static voidloadPulseDialog()static voidloadSpecificHeat(File f)Uses theReaderManagerto create anInterpolationDatasetfrom data stored infand updates the associated properties of each task.
-
-
-
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, theTaskManagerwill 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 theMetaFilePopulatorclass. 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 loadedMetadata. Throughout the process, progress is monitored in a separate dialog with aJProgressBar. 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 theReaderManagerto create anInterpolationDatasetfrom data stored infand updates the associated properties of each task.- Parameters:
f- aFilecontaining a property specified by thetype- Throws:
IOException- if file cannot be read
-
loadSpecificHeat
public static void loadSpecificHeat(File f) throws IOException
Uses theReaderManagerto create anInterpolationDatasetfrom data stored infand updates the associated properties of each task.- Parameters:
f- aFilecontaining a property specified by thetype- Throws:
IOException- if file cannot be read
-
-