# HG changeset patch # User Nicholas Jillings # Date 1437832194 -3600 # Node ID 38f2df7baddacf374785bb22004df0599d493b76 # Parent 724f72092fa76010782896b2aaf59de73b107518 Updated the ProjectSpecificationDocument. diff -r 724f72092fa7 -r 38f2df7badda docs/ProjectSpecificationDocument.pdf Binary file docs/ProjectSpecificationDocument.pdf has changed diff -r 724f72092fa7 -r 38f2df7badda docs/ProjectSpecificationDocument.tex --- a/docs/ProjectSpecificationDocument.tex Thu Jul 23 11:14:32 2015 +0100 +++ b/docs/ProjectSpecificationDocument.tex Sat Jul 25 14:49:54 2015 +0100 @@ -28,16 +28,46 @@ \begin{itemize} \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE. \item \texttt{projectReturn} - Mandatory, String. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file. -\item \texttt{randomiseOrder} - Optional, default to false. Specify if the order of the tests can be randomised. -\item \texttt{collectMetrics} - Optional, Boolean. Default to false. Determine if the test metrics should be collected. These include how long each test session took etc. The full metrics list can be modified in the 'metrics' tag. +\item \texttt{randomiseOrder} - Optional, default to false. Specify if the order of the test pages are to be randomised. +\item \texttt{collectMetrics} - Deprecated. Optional, Boolean. Default to false. Determine if the test metrics should be collected. These include how long each test session took etc. The full metrics list can be modified in the 'metrics' tag. \end{itemize} \subsection{Elements} None +\section{Metric tag} +A 'setup' node child tag, metrics must be declared in the setup tag. This takes a set of children 'metricEnable' to define which metrics to collect and present, for example \texttt{ testTimer }. The interface may not be able to utilise all of these features. It is up to the interface to determine whether to use the metric or not. For example, 'elementFlagMoved' would not be usable in an AB test as there are no interface value objects. + +\subsection{metricEnable tag} +This takes a single attribute to determine which metric to enable for collection. Some of these are a global, per track or per test instance. +\begin{itemize} +\item testTimer - Return the global test timer and test instance timers. Measures the time between the first start and final submit. +\item elementTimer - Return the total time each audioElement in each test was listened too. Measures time between successive clicks on the track changer +\item elementTracker - Return the initial position of each track +\item elementTrackerFull - Return an enumerated pair of time and position. Track the entire movement of each element position. NOTE: Will override the elementTracker option above and throw an error into the browser console. +\item elementFlagListenedTo - Return a boolean per elementck to see if the element was listened to +\item elementFlagMoved - Return a boolean per element to see if the element slider was moved. +\item elementFlagComments - Return a boolean per element to see if the element has comments. +\end{itemize} + +\section{Interface tag} +This enables any interface options for each test page. Further interface tags in each audioHolder add further options. This takes option nodes only. Each option node takes a 'name' to determine what feature to enable. The following options are currently employed. + +\subsection{Option nodes} + +\begin{itemize} +\item \texttt{fragmentPlayed} - Enforce each fragment be partially played before finishing the page +\item \texttt{fragmentFullPlayback} - Enforce each fragment to be fully played from start to end before finishing the page. Not enabled if an audioHolder reports it is to be looped playback. +\item \texttt{fragmentMoved} - Enforce each fragment to be moved at least once from its starting position. +\item \texttt{fragmentComments} - Enforce each fragment comment to have some text entered. +\item \texttt{playhead} - Show the playhead object. +\item \texttt{page-count} - Show the current test page number and the total number +\item \texttt{scalerange} - Must also have min and max values between 0 and 100. Enforce that at least one fragment is below the min value and one fragment is above the max value before continuing. +\end{itemize} + \section{AudioHolder tag} -There should be one audioHolder tag per test session, inside which each audioElement is specified as children. The audioHolder tag can help to generalise certain objects. Each audioHolder instance specifies a separate listening test to be paged, each with their own specific requirements. +There should be one audioHolder tag for each test page, inside which each audioElement is specified as children. The audioHolder tag can help to generalise certain objects. \subsection{Attributes} \begin{itemize} @@ -47,6 +77,7 @@ \item \texttt{randomiseOrder} - Optional, Boolean String. Defaults to false. Determine if the track order should be randomised. Must be true or false. \item \texttt{repeatCount} - Optional, Number. Defaults to 0 (ie: no repeats). The number of times a test should be repeated. \item \texttt{loop} - Optional, Boolean String. Defaults to false. Enable if audioElements should loop their playback or not. +\item \texttt{elementComments} - Optional, Boolean String. Defaults to false. Enable to populate the test page with Comment Boxes linked to each fragment. \end{itemize} \subsection{Elements} @@ -60,6 +91,7 @@ \begin{itemize} \item \texttt{id} - Mandatory, String. Must give a string or number to identify each audio element. This id is used in the output to identify each track once randomised. \item \texttt{url} - Mandatory, String. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL. +\item \texttt{type} - Optional, String. Can be 'normal', 'anchor', 'reference' or 'outside-reference'. Default is for normal. Only one anchor can be specified per page. Only one reference can be specified per page. Only one outside-reference can be specified per page. If multiple audioelements have the same type in the same page, the browser console will explain the problem and the audioelements will be treated as 'normal' fragments. \end{itemize} \section{interface tag} @@ -68,21 +100,31 @@ \begin{itemize} \item 'title' - Contains the test title to be shown at the top of the page. Can only be one title node per interface. \item 'scale' - Takes the attribute position to be a value between 0 and 100 indicating where on the scale to place the text contained inside. Can be multiple scale tags per interface. +\item 'option' - Can hold any of the option tags available in the setup tag. These will only be enabled for the page instance. \end{itemize} \section {CommentQuestion tag} -This is a 1st level tag (same level as AudioHolder and setup). This allows another question and comment box to be presented on the page. The results of these are passed back in the results XML with both the comment and the question. The id attribute is set to keep track at the results XML. +This allows another question and comment box to be presented on the page. The results of these are passed back in the results XML with both the comment and the question. An id must be set, otherwise the result is undefined. Also the type must be set as follows. +\begin{itemize} +\item 'type="text"' - Default type. Creates a text box on the page. The text is included as the element. +\item 'type="radio"' - Create radio button entry. Multiple equally spaced entried per box. Only one entry can be selected. Each radio button is specified by an option tag. The tag must contain a name attribute, which will be the response if true. Optional text can be included as the element to label the box. Presented question is included in a statement node. +\item 'type="checkbox"' - Create a checkbox entry. Multiple equally space entries per box, multiple can be selected. Each checkbox is specified by an option tag. The tag must contain a name attribute. Optional text can be included as the element to label the checkbox. Presented question is included in a statement node. +\end{itemize} + \section {PreTest tag and PostTest tag} These are 1st level tags. The PreTest tag allows for the specifying of pre test instructions and questions. These appear as a pop-up style window with next buttons and other automatic GUI. The postTest tag allows for specifying post test instructions, questions and resources. These appear as a pop-up style window after the submit button is pressed. +PreTest and PostTag nodes can be included in the audioHolders (for pre and post for that test page) and in the setup node for pre-test before the first page, and post-test for after the last test. + \subsection{Attributes} None. \subsection{Elements} -Takes the \texttt{statement} and \texttt{question} tags. The order these are presented in the XML define the order they appear on the screen. + +Takes the following available tags to structure the pre and post test options. The order these are presented in the XML define the order they appear. \subsubsection{Statement} @@ -90,63 +132,29 @@ \subsubsection{Question} -This allows for a question to be asked pre/post the test. This is added to the response XML in the same location as the other common/global questions. The response includes both the question asked and the response. This takes two attributes, id and mandatory. ID is a mandatory field. The same ID will be used in the results so it is important it is properly entered. Mandatory is optional. True means the field must be entered before continuing. - -\subsubsection{Resource} - -The resource tag is only available in the postTest tag. This allows for the linking to some external resource via the href attribute. - -\section{Metric tag} -A 1st level tag, metrics must be declared in the setup tag. This takes a set of children 'metricEnable' to define which metrics to collect and present. - -\subsection{metricEnable tag} -This takes a single attribute to determine which metric to enable for collection. Some of these are a global, per track or per test instance. +This allows for a question to be asked pre/post the test. The response includes both the question asked and the response. The following attributes are used: \begin{itemize} -\item testTimer - Return the global test timer and test instance timers. Measures the time between the first start and final submit. -\item elementTimer - Return the total time each audioElement in each test was listened too. Measures time between successive clicks on the track changer -\item elementTracker - Return the initial position of each track -\item elementTrackerFull - Return an enumerated pair of time and position. Track the entire movement of each element position. NOTE: Will override the elementTracker option above and throw an error into the browser console. -\item elementFlagListenedTo - Return a boolean per elementck to see if the element was listened to -\item elementFlagMoved - Return a boolean per element to see if the element slider was moved. -\item elementFlagComments - Return a boolean per element to see if the element has comments. +\item \texttt{id} - Mandatory, String. Used to reference to the response. +\item \texttt{mandatory} - Optional, String Boolean. Determine if this question must have some response. Defaults to false. +\item \texttt{boxsize} - Optional, String. Defaults to normal. Allows 'small', 'normal', 'large' or 'huge'. This determines the size of the box entry. All entries are wrappable, so this does not determine the maximum size of the text response, but can be used to encourage (or dicourage) long answers. \end{itemize} -\section{Feature List} +\subsubsection{Number} + +Gives a number box entry defined with the following attributes: \begin{itemize} -\item Paging listening tests - eg. Ask multiple questions in each experiment -\item Labels on X axis - scale -\item Input questions/comment at top to guide towards the question being asked. -\item Randomise track numbers -(inc. comment boxes and relate back to correct reference track) -\item Randomise order of individual tests -\item Save output XML file to remote server -\item Tests Metrics -\begin{itemize} -\item Duration of listening to each track -\item Time spent on each individual test -\item Start and end position of every track -\item Flags on each track, to ensure each track (but may not restrict users from submitting) -\begin{itemize} -\item Has been listened to -\item Has been moved -\item Has comments about it -\end{itemize} -\end{itemize} +\item \texttt{id} - Mandatory, String. Used to reference to the response. +\item \texttt{mandatory} - Optional, String Boolean. Determine if this question must have some response. Defaults to false. +\item \texttt{min, max} - Optional, Number. Defaults to undefined. Used to bound the number response. If a number entered is below this, the pre/post sequence will not continued. \end{itemize} -\subsection{Advanced feature list} -\begin{itemize} -\item Repeat each tests number of times (2 or 3?) to remove learning / experience bias and ensure that the order is consistent -\item Perform Loudness equalisation on all tracks -\item Selection of test type -\item Pre-test of some basic hearing test -\begin{itemize} -\item MUSHRA (with vertical slider per track) -\item APE (Single horizontal slider) -\item AB Test -\end{itemize} -\end{itemize} +\subsubsection{Radio} +Create a set of radio boxes. Only one element can be returned as true. The radio node must have an id to reference for the output. The radio node also must have a statment node which will contain the text to show on the popup. Radio buttons are created using option nodes. Each node must have a name attribute to indentify which radio was selected in the response. The option node can also contain any text to link to the node. +\subsubsection{Checkbox} + +Create a set of checkbox boxes. Multiple elements can be returned as true. The checkbox node must have an id to reference for the output. The checkbox node also must have a statment node which will contain the text to show on the popup. Checkbox buttons are created using option nodes. Each node must have a name attribute to indentify which radio was selected in the response. The option node can also contain any text to link to the node. \section{Example}