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 andInterpolationDataset
s. Tracks the load progress using aProgressDialog
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadDataDialog()
Initiates a user dialog to load experimental time-temperature profiles.static void
loadDensity(File f)
Uses theReaderManager
to create anInterpolationDataset
from data stored inf
and updates the associated properties of each task.static void
loadMetadataDialog()
Asks the user to select a single file containing the metadata, with the extension given by theMetaFilePopulator
class.static void
loadPulseDialog()
static void
loadSpecificHeat(File f)
Uses theReaderManager
to create anInterpolationDataset
from data stored inf
and 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, theTaskManager
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 theMetaFilePopulator
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 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 theReaderManager
to create anInterpolationDataset
from data stored inf
and updates the associated properties of each task.- Parameters:
f
- aFile
containing a property specified by thetype
- Throws:
IOException
- if file cannot be read
-
loadSpecificHeat
public static void loadSpecificHeat(File f) throws IOException
Uses theReaderManager
to create anInterpolationDataset
from data stored inf
and updates the associated properties of each task.- Parameters:
f
- aFile
containing a property specified by thetype
- Throws:
IOException
- if file cannot be read
-
-