changeset 9:8343b2ba7ce7

Added specification documents. Need formalising and updating!
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 25 Mar 2015 13:11:58 +0000
parents a6364db4c2ea
children 05327691d28c
files docs/ProjectSpecificationDocument.pdf docs/ProjectSpecificationDocument.tex docs/ResultsSpecificationDocument.pdf docs/ResultsSpecificationDocument.tex
diffstat 4 files changed, 110 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file docs/ProjectSpecificationDocument.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/ProjectSpecificationDocument.tex	Wed Mar 25 13:11:58 2015 +0000
@@ -0,0 +1,78 @@
+\documentclass{article}
+
+\usepackage[margin=2cm]{geometry}
+
+\begin{document}
+
+\large APE Browser Tool - Project Specification Document
+
+\section{Document}
+
+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!
+
+\section{Root}
+
+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.
+
+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.
+
+The root will also contain the following tags: setup and tracks.
+
+\section{Setup tag}
+
+The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions.
+
+An example of this tag could be:
+
+\texttt{<setup interface="APE" projectReturn="http://project.return.url/goes/here" />}
+
+The setup should not require an element or any children to run.
+
+\subsection{Attributes}
+\begin{itemize}
+\item \texttt{interface} - Mandatory. Defaults to APE, otherwise use to load any of the available interfaces
+\item \texttt{projectReturn} - Mandatory. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file.
+\end{itemize}
+
+\subsection{Elements}
+None
+
+\section{Tracks tag}
+
+There should be one tracks tag, inside which each track is specified as children. The track tag can help to generalise certain objects.
+
+\subsection{Attributes}
+\begin{itemize}
+\item \texttt{hostURL} - Optional. 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.
+\end{itemize}
+
+\subsection{Elements}
+Contain the track tags.
+
+\section{Track tag}
+
+This must reside as children in the tracks tag. There must be one track tag per track to load. The track tag must contain the URL to load.
+
+\subsection{Attributes}
+\begin{itemize}
+\item \texttt{url} - Mandatory. 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.
+\end{itemize}
+
+\section{Example}
+
+Here is an example XML structure. Apologies for LATEX formatting!
+
+\texttt{
+<?xml version="1.0" encoding="UTF-8"?> \\
+<BrowserEvalProjectDocument> \\
+<setup interface="APE" projectReturn="http://project.return.url/goes/here" />\\
+    <tracks hostURL="http://apeTest.qmul.ac.uk/tracks/"> \\
+        <track url = "track1.wav"/> \\
+        <track url = "track2.wav"/> \\
+        <track url = "track3.wav"/> \\
+    </tracks> \\
+</BrowserEvalProjectDocument>
+}
+
+
+\end{document}
Binary file docs/ResultsSpecificationDocument.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/ResultsSpecificationDocument.tex	Wed Mar 25 13:11:58 2015 +0000
@@ -0,0 +1,32 @@
+\documentclass{article}
+
+\usepackage[margin=2cm]{geometry}
+\usepackage{listings}
+\usepackage{color}
+
+\begin{document}
+
+\large APE Browser Tool - Results Specification Document
+
+\section{Introduction}
+This document outlines the return XML document structure to hold the results from the Browser Evaluation Tool, specifically for the APE Interface.
+
+\section{Root}
+The root of the document is \texttt{BrowserEvaluationResult}. This takes no attributes but contains all children.
+
+\section{Track}
+The first child element is the \texttt{Track} element. This contains the results for a specific track. This requires the attribute \texttt{trackId} to be set to the numerical track Id.
+
+\subsection{Value}
+One of these elements per track, containing the value between 0 and 100 relating the user rating of the track. This is a mandatory element.
+
+\subsection{Comment}
+One of these elements per track, containing any commenting data from the interface text boxes.
+
+\section{Session Data}
+This will contain any captured session data. Currently not implemented but here for future referencing.
+
+\section{Globals}
+Contains any comment boxes which were specified in the APE project specification with the comment ID, comment text and the comment results.
+
+\end{document}