Ejemplo n.º 1
0
    /// <summary>
    /// Starts another iteration of the trial on successful completion of the Questionnaire.
    /// TODO: Update with stat collection!!
    /// </summary>
    public override void QuestionniareFinished()
    {
        BasicTrialResults result = new BasicTrialResults
        {
            TrialNumber          = TrialIteration,
            ConditionNumber      = Settings.ConditionNumber,
            IsUnusualTrial       = UnusualTrials [TrialIteration],
            NumberOfBounces      = BouncingObject.GetNumberOfBounces(),
            QuestionnaireAnswers = Questionnaire.GetAnswers(),
            UnusualObjectShape   = Settings.UnusualObjects [0].Shape
        };

        Results.Add(result);
        TrialIteration++;
        if (TrialIteration < Settings.NumberOfTrials)
        {
            ShowPreTrialUI();
        }
        else
        {
            TrialsFinished();
        }
    }