public class GraffitiExperiment
extends java.lang.Object
GraffitiExperiment |
Unistroke
class. Consult the API for the Unistroke
class for details on the recognition
process (Click here).
The default parameter settings are read from a configuration file called
GraffitiExperiment.cfg
. This file is created automatically when the application is launched for the
first time. The default parameter settings may be changed through the setup dialog. The setup parameters are as
follows:
Parameter Description Participant code Identifies the current participant. This is used in forming the names for the output data files. Also, the sd2 output data file includes a column with the participant code.
Condition code An arbitrary code used to associate a test condition with this invocation. This parameter might be useful if the software is used in an experiment where a condition is not inherently part of the application (e.g., Gender → male, female, Input Device → gamepad, keyboard). The condition code is used in forming the name for the output data file. Also, the sd2 output data file contains a column with the condition code.
Session code Identifies the session. Useful if testing proceeds over multiple sessions to gauge the progression of learning. Note: The setup dialog does not include an entry for "Block code". The block code is generated automatically by the software.
Number of phrases Specifies the number of phrases presented to the participant in the current block.
Phrases file Specifies a file containing phrases of text to be presented to participants for entry. Phrases are drawn from the file at random. Typically, phrases2.txt is used. This is the phrase set published by MacKenzie and Soukoreff in 2003 (click here). The other files in the drop-down list are quickbrownfox.txt and alphabet.txt.
Entry mode Specifies the stroke alphabet. Although the software is primarily intended for Graffiti evaluations, three other modes are supported:
Details on defining a custom set of strokes are found in the API for the
Unistroke
class.
Show presented text during entry A checkbox item that determines whether or not the presented text is visible during entry of a phrase. Either way, the text phrase appears at the beginning of a trial. If this option is unchecked, the phrase will disappear when the first keystroke is entered.
Audio on If on, audible "ticks" are heard during a "pen-up" at the end of each stroke. A slightly different sound ("dong") is heard if the stroke is unrecognized.
Show gesture set A checkbox item that determines whether or not an image showing the gesture set is shown in the experiment UI (see below).
After clicking "Begin", a phrase is selected at random from the phrase set and displayed in the top text field. Timing begins at the beginning of the first stroke. Below is a screen snap of the experiment dialog after some user input:
The user enters the phrase, stroke by stroke. Recognition of each stroke is performed by the recognize
method in the Unstroke
class, which is embedded in the the application. Click
here to view the API for the Unistroke
class.
Entry continues until the user clicks "Enter". Timing is stopped when "Enter" is clicked. Results of the text entry process appear in a popup dialog after each phrase. Below is an example:
Although it is not apparent in the popup dialog above, a number of errors were committed which were then corrected. This is revealed in the high KSPC value (KSPC = 1.5). The exact nature of the errors may be investigated by examining the output data files or through a special trace utility (see below).
Example data files follow:
The data in the sd2 file are full-precision, comma-delimited. Importing into a spreadsheet application provides a convenient method to examine the data on a phrase-by-phrase basis. Below is an example of how the data might look after importing into Microsoft Excel: (click to enlarge)
Click here to open the spreadsheet.
Actual output files use "GraffitiExperiment" as the base filename. This is followed by the participant code, the
mode, the condition code, the session code, and the block code, for example,
GraffitiExperiment-P99-GR-CC-S01-B01.sd1
("GR" = Graffiti mode).
Constructor and Description |
---|
GraffitiExperiment() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |