annotate docs/ProjectSpecificationDocument.tex @ 1707:39f00af07777

Updated Setup and Results XML to indicate future progress RE: Davids' Email.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 10 Apr 2015 10:16:52 +0100
parents 93eaa894cc97
children fef9e8337cfd
rev   line source
nickjillings@1690 1 \documentclass{article}
nickjillings@1690 2
nickjillings@1690 3 \usepackage[margin=2cm]{geometry}
nickjillings@1692 4 \usepackage{listings}
nickjillings@1690 5
nickjillings@1690 6 \begin{document}
nickjillings@1690 7
nickjillings@1690 8 \large APE Browser Tool - Project Specification Document
nickjillings@1690 9
nickjillings@1690 10 \section{Document}
nickjillings@1690 11
nickjillings@1690 12 An XML file containing all project information to load and execute the project on the client. Certain interfaces are optional, however others are mandatory. This guide should reflect the changes in the XML project and keep track of the versions. Hopwfully this can remain simple!
nickjillings@1690 13
nickjillings@1690 14 \section{Root}
nickjillings@1690 15
nickjillings@1690 16 The XML root must be \texttt{<BrowserEvalProjectDocument>}. This should be sufficiently identifiable in both itself and in the JavaScript decoding as it will create an object called the root name.
nickjillings@1690 17
nickjillings@1690 18 There must also be a \texttt{<version>} tag which has the attribute \texttt{id} containing a numerical representation of the version. Currently everything in this document can be assumed to be version 1. If future updates or corrections are made post delivery this should give the flexibility to ensure past projects still work.
nickjillings@1690 19
nickjillings@1690 20 The root will also contain the following tags: setup and tracks.
nickjillings@1690 21
nickjillings@1690 22 \section{Setup tag}
nickjillings@1690 23
nickjillings@1690 24 The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions.
nickjillings@1690 25
nickjillings@1690 26 An example of this tag could be:
nickjillings@1690 27
nickjillings@1690 28 \texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />}
nickjillings@1690 29
nickjillings@1694 30 The setup should not have any element or any children.
nickjillings@1690 31
nickjillings@1690 32 \subsection{Attributes}
nickjillings@1690 33 \begin{itemize}
nickjillings@1694 34 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE.
nickjillings@1694 35 \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.
nickjillings@1707 36 \item \texttt{randomiseOrder} - Optional, default to false. Specify if the order of the tests can be randomised.
nickjillings@1707 37 \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.
nickjillings@1690 38 \end{itemize}
nickjillings@1690 39
nickjillings@1690 40 \subsection{Elements}
nickjillings@1690 41 None
nickjillings@1690 42
nickjillings@1694 43 \section{AudioHolder tag}
nickjillings@1690 44
nickjillings@1707 45 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.
nickjillings@1690 46
nickjillings@1690 47 \subsection{Attributes}
nickjillings@1690 48 \begin{itemize}
nickjillings@1707 49 \item \texttt{id} - Mandatory, String. Give an ID string or number to identify the test in the result.
nickjillings@1694 50 \item \texttt{hostURL} - Optional, String. If all tracks are hosted from the same folder on a server, you can put in the lead here. For instance, if loading http://test.com/tracks/track1.wav and http://test.com/tracks/track2.wav, this could equal http://test.com/tracks/ and the url attribute in the track tag can be track1.wav or track2.wav. Equally http://test.com/ and then using tracks/track1.wav and tracks/track2.wav is valid.
nickjillings@1694 51 \item \texttt{sampleRate} - Optional, Number. If your test requires a specific sample rate, this should be set to the desired sample rate in Hertz. This does not set the browser to the correct sample rate, but forces the browser to check the sample rate matches. If this is undefined, no sample rate matching will occur.
nickjillings@1707 52 \item \texttt{randomiseOrder} - Optional, Boolean String. Defaults to false. Determine if the track order should be randomised. Must be true or false.
nickjillings@1707 53 \item \texttt{repeatCount} - Optional, Number. Defaults to 0 (ie: no repeats). The number of times a test should be repeated.
nickjillings@1690 54 \end{itemize}
nickjillings@1690 55
nickjillings@1690 56 \subsection{Elements}
nickjillings@1707 57 Contain the audioElements tags and the interfaceSetup tag.
nickjillings@1690 58
nickjillings@1694 59 \section{audioElements tag}
nickjillings@1690 60
nickjillings@1694 61 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test.
nickjillings@1690 62
nickjillings@1690 63 \subsection{Attributes}
nickjillings@1690 64 \begin{itemize}
nickjillings@1694 65 \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.
nickjillings@1694 66 \item \texttt{ID} - Optional, Number. Give the track a specific ID for the return. This will help if using multiple projects to spread a test across multiple sessions and/or locations, where each test will not use all the samples. If one audioElement is given the ID 3, the next audioElement (assuming it does not have an ID set itself) will have the ID of 4. This continues until the next audioElement with the ID attribute set is reached.
nickjillings@1690 67 \end{itemize}
nickjillings@1690 68
nickjillings@1707 69 \section{interfaceSetup}
nickjillings@1707 70
nickjillings@1707 71 This is contained within the audioHolder tag and outlines test instance specific requirements. These include the following children tags: title - question title at the top of the page, scaleMin - minimum scale value text, scaleMax - maximum scale value text, scaleMid - halfway scale value text. There is also a preTest tag here allowing for specific questions/statements to be presented before running this specific test.
nickjillings@1707 72
nickjillings@1694 73 \section {CommentQuestion tag}
nickjillings@1694 74
nickjillings@1694 75 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.
nickjillings@1694 76
nickjillings@1694 77 \subsection{Attributes}
nickjillings@1694 78 None.
nickjillings@1694 79
nickjillings@1694 80 \subsection{Elements}
nickjillings@1694 81 The question to be presented.
nickjillings@1694 82
nickjillings@1694 83 \section {PreTest tag and PostTest tag}
nickjillings@1694 84
nickjillings@1694 85 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.
nickjillings@1694 86
nickjillings@1694 87 \subsection{Attributes}
nickjillings@1694 88 None.
nickjillings@1694 89
nickjillings@1694 90 \subsection{Elements}
nickjillings@1694 91 Takes the \texttt{statement} and \texttt{question} tags. The order these are presented in the XML define the order they appear on the screen.
nickjillings@1694 92
nickjillings@1694 93 \subsubsection{Statement}
nickjillings@1694 94
nickjillings@1694 95 The statement tag simply prints the included string verbatim on a 'pop-up' window with a next button.
nickjillings@1694 96
nickjillings@1694 97 \subsubsection{Question}
nickjillings@1694 98
nickjillings@1703 99 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.
nickjillings@1694 100
nickjillings@1694 101 \subsubsection{Resource}
nickjillings@1694 102
nickjillings@1694 103 The resource tag is only available in the postTest tag. This allows for the linking to some external resource via the href attribute.
nickjillings@1694 104
nickjillings@1707 105 \section{Metric tag}
nickjillings@1707 106 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.
nickjillings@1707 107
nickjillings@1707 108 \subsection{metricEnable tag}
nickjillings@1707 109 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.
nickjillings@1707 110 \begin{itemize}
nickjillings@1707 111 \item testTimer - Return the global test timer and test instance timers. Measures the time between the first start and final submit.
nickjillings@1707 112 \item elementTimer - Return the total time each audioElement in each test was listened too. Measures time between successive clicks on the track changer
nickjillings@1707 113 \item elementTracker - Return the initial position of each track
nickjillings@1707 114 \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.
nickjillings@1707 115 \item elementFlagListenedTo - Return a boolean per elementck to see if the element was listened to
nickjillings@1707 116 \item elementFlagMoved - Return a boolean per element to see if the element slider was moved.
nickjillings@1707 117 \item elementFlagComments - Return a boolean per element to see if the element has comments.
nickjillings@1707 118 \end{itemize}
nickjillings@1707 119
nickjillings@1690 120 \section{Example}
nickjillings@1690 121
nickjillings@1692 122 Here is an example XML structure
nickjillings@1690 123
nickjillings@1692 124 \begin{lstlisting}
nickjillings@1692 125 <?xml version="1.0" encoding="utf-8"?>
nickjillings@1692 126 <BrowserEvalProjectDocument>
nickjillings@1692 127 <setup interface="APE" projectReturn="null" />
nickjillings@1694 128 <AudioHolder hostURL="example_eval/" sampleRate="44100"
nickjillings@1692 129 sampleRateExplicit="true">
nickjillings@1695 130 <audioElements url="0.wav" ID="0"/>
nickjillings@1694 131 <audioElements url="1.wav"/>
nickjillings@1694 132 <audioElements url="2.wav"/>
nickjillings@1694 133 <audioElements url="3.wav"/>
nickjillings@1694 134 <audioElements url="4.wav"/>
nickjillings@1694 135 <audioElements url="5.wav"/>
nickjillings@1694 136 <audioElements url="6.wav"/>
nickjillings@1694 137 <audioElements url="7.wav"/>
nickjillings@1694 138 <audioElements url="8.wav"/>
nickjillings@1694 139 <audioElements url="9.wav"/>
nickjillings@1694 140 <audioElements url="10.wav"/>
nickjillings@1694 141 </AudioHolder>
nickjillings@1694 142 <CommentQuestion>What is your mixing experiance</CommentQuestion>
nickjillings@1694 143 <PreTest>
nickjillings@1694 144 <statement>Please listen to all mixes</statement>
nickjillings@1694 145 </PreTest>
nickjillings@1694 146 <PostTest>
nickjillings@1694 147 <statement>Thank you for taking this listening test.</statement>
nickjillings@1694 148 <question>Please enter your name.</question>
nickjillings@1694 149 </PostTest>
nickjillings@1690 150 </BrowserEvalProjectDocument>
nickjillings@1692 151 \end{lstlisting}
nickjillings@1692 152
nickjillings@1690 153
nickjillings@1690 154
nickjillings@1690 155 \end{document}