Functional requirement G-01: Load data set (Conditional)
The user must be able to load a data set from a text file.
The file is selected with a file selection dialog.
The GUI shows the file selection dialog. When user has selected the file, GUI opens the file in a data selection view described in requirement G-02. The file format is described in section 3.2.1.
If the file format is invalid, the GUI shows an error message and returns to main view. Otherwise, the GUI opens the data selection view.
Functional requirement G-02: Select data (Conditional)
There must be a data selection view, which can be used to select parts of the data set. See figure 2. Note that the figure is intended only to clarify, what elements the selection view must contain.
The file opened at stage G-01.
The selection view itself must contain following user inputs:
When user selects the record to be shown, the chosen record must be read from the data set file and shown as a trend plot in the view. When user selects a part of the record by painting, the ``first element'' and ``last element'' fields are updated respectively and vice versa. The selected area is marked in reverse colours. When user chooses to save the selected part as a template or as an observation, a vector containing the values inside the selection is passed along.
Functional requirement G-03: Save selection (Conditional)
The user must be able to save the selected part as a template or as an observation.
A vector from G-02 containing the values to be saved and the length of the vector and following user inputs:
When user chooses to save the selected part, he is asked to name it. Then the selection is saved as a template or as an observation. There may be only one observation in the memory at a time, so if the selection is saved as an observation, the previous observation is erased.
None
Functional requirement G-04: Save vector to file (Conditional)
The user must be able to save the observation or the templates in memory to a text file.
The user is shown a file selection dialog, using which he/she may choose, which file the information is saved to. If the file exists, the user is asked whether to overwrite it. If the user selects not to overwrite the file, the file name is asked again. There is no possibility to apped to files. After the file has been selected, the observation or templates including the names given to them are saved to the file. The exact file format will be determined at design stage.
Functional requirement G-05: Load vector from file (Essential)
The user must be able to load templates and an observation directly from a text file.
The user is shown a file selection dialog. The selected file is opened and the data (name of the template/observation and the values) is read into memory. The exact file format will be determined at design stage. If the user loads an observation, the previous observation is erased. If the the user loads templates, they are added to the template list.
Functional requirement G-06: Delete template from GUI (Conditional)
The user must be able to delete templates from the memory (one at a time or all).
The programs deletes the selected templates from the memory.
None
Functional requirement G-07: Select DTW Parameters (Essential)
The user must be able to select the parameters of the DTW algorithm
The chosen parameters
The parameters of the algorithm are described in section 3.1.3
None
Functional requirement G-08: Compare to all (Conditional)
The user must be able to compare the observation against all templates in memory.
None
The program compares the observation against all templates in memory using the DTW algorithm with parameters chosen in G-07.
Functional requirement G-09: Compare to one (Essential)
The user must be able to select one of the templates and run the DTW algorithm against it.
The selected template.
The observation is compared against the chosen template with the DTW algorithm using the parameters selected in G-07.
Functional requirement G-10: Save results to log (Conditional)
The user must be able to save the results of the last run to a log file.
The results of the run and the name of the log file as user input.
The user is shown a file selection dialog. If the user chooses a file that exists already, the user is asked whether the file should be rewritten. There is no possibility to append to a file. The results are saved to the chosen file.
Functional requirement G-11: Show plots (Essential)
The observation, best-fit template, the warping path and the warping window must be visible in the GUI (see Figure 3).
The observation, template and warping path vectors and the warping window width .
The GUI draws plots of the vectors.
The plots and axis lengths as in Figure 3. The observation is under the path and the template is on the left of the path.