public void OnSubmit(int[] result)
        {
            // TODO: store result;
            string sliceId = _assessmentResult.recording.slices[sliceOrder[nextSlice]].GetSliceID();

            Debug.Log("Result for slice: " + sliceId);
            AssessmentEntry a = new AssessmentEntry(sliceId, result);

            _assessmentResult.AddEntry(a);
            nextSlice++;
            SetGUI(AssessmentState.WAIT_FOR_NEXT);
        }
Пример #2
0
        public string Serialize()
        {
            string res       = "";
            string rowPrefix = assessmentId + "," + view + "," + type;

            // Header:
            res += recording.rid + "\n" + qspec + "\n\n";
            for (int i = 0; i < recording.slices.Length; i++)
            {
                string sliceID = recording.slices[i].GetSliceID();
                if (!assessments.ContainsKey(sliceID))
                {
                    Debug.LogWarning("Got no assessment for slice: " + sliceID);
                    continue;
                }
                AssessmentEntry sliceAssessment = assessments[sliceID];
                res += rowPrefix + "," + sliceID + "," + string.Join(",", sliceAssessment.qres.Select(x => x.ToString()).ToArray());
                res += "\n";
            }
            return(res);
        }
Пример #3
0
 public void AddEntry(AssessmentEntry e)
 {
     assessments.Add(e.sliceId, e);
 }