Beispiel #1
0
        /// <summary>
        /// Requests the RloHandler to process a reactivation request and clear the appropriate data
        /// values from the data model. The request may only be issued when the session is in RandomAccess
        /// view and is not active -- it is either Completed or Abandoned.
        /// </summary>
        /// <param name="context"></param>
        public override void Reactivate(RloReactivateContext context)
        {
            // Scenarios: instructor reactivates an assignment so a student can try again.  In all cases, if the
            // student resubmits an assignment autograding occurs and all scores are set to the autograded scores.
            // 1. Instructor wishes to make it so that if the student doesn't try again, and the instructor
            //    collects the assignment back, that the original autograded scores are applied to the assignment.
            // 2. Instructor wishes to make it so that if the student doesn't try again, and the instructor
            //    collects the assignment back, that the instructor's overrides of the autograded scores remain.
            // Likewise, the instructor may wish to keep or discard instructor comments.

            foreach (Interaction interaction in context.LearningDataModel.Interactions)
            {
                // If user requested resetting evaluation points, then change it back to
                // the autograded scores and clear rubrics.
                if (context.ResetEvaluationPoints)
                {
                    interaction.Evaluation.Points = interaction.Score.Raw;
                    // If there are rubrics associated with the question, clear the IsSatisfied
                    // state
                    foreach (Rubric rubric in interaction.Rubrics)
                    {
                        rubric.IsSatisfied = null;
                    }
                }

                // If user requested to reset evaluation comments, then clear all comments.
                if (context.ResetEvaluationComments)
                {
                    interaction.Evaluation.Comments.Clear();
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// Requests the RloHandler to process a reactivation request and clear the appropriate data
 /// values from the data model. The request may only be issued when the session is in RandomAccess
 /// view and is not active -- it is either Completed or Abandoned.
 /// </summary>
 /// <param name="context"></param>
 public abstract void Reactivate(RloReactivateContext context);
Beispiel #3
0
 /// <summary>
 /// Requests the RloHandler to process a reactivation request and clear the appropriate data
 /// values from the data model. The request may only be issued when the session is in RandomAccess
 /// view and is not active -- it is either Completed or Abandoned.
 /// </summary>
 /// <param name="context"></param>
 public override void Reactivate(RloReactivateContext context)
 {
     // nothing to do
 }
Beispiel #4
0
 /// <summary>
 /// Requests the RloHandler to process a reactivation request and clear the appropriate data 
 /// values from the data model. The request may only be issued when the session is in RandomAccess 
 /// view and is not active -- it is either Completed or Abandoned.
 /// </summary>
 /// <param name="context"></param>
 public abstract void Reactivate(RloReactivateContext context);
Beispiel #5
0
 /// <summary>
 /// Requests the RloHandler to process a reactivation request and clear the appropriate data 
 /// values from the data model. The request may only be issued when the session is in RandomAccess 
 /// view and is not active -- it is either Completed or Abandoned.
 /// </summary>
 /// <param name="context"></param>
 public override void Reactivate(RloReactivateContext context)
 {
     // nothing to do
 }
Beispiel #6
0
        /// <summary>
        /// Requests the RloHandler to process a reactivation request and clear the appropriate data 
        /// values from the data model. The request may only be issued when the session is in RandomAccess 
        /// view and is not active -- it is either Completed or Abandoned.
        /// </summary>
        /// <param name="context"></param>
        public override void Reactivate(RloReactivateContext context)
        {
            // Scenarios: instructor reactivates an assignment so a student can try again.  In all cases, if the
            // student resubmits an assignment autograding occurs and all scores are set to the autograded scores.
            // 1. Instructor wishes to make it so that if the student doesn't try again, and the instructor
            //    collects the assignment back, that the original autograded scores are applied to the assignment.
            // 2. Instructor wishes to make it so that if the student doesn't try again, and the instructor
            //    collects the assignment back, that the instructor's overrides of the autograded scores remain.
            // Likewise, the instructor may wish to keep or discard instructor comments.

            foreach (Interaction interaction in context.LearningDataModel.Interactions)
            {
                // If user requested resetting evaluation points, then change it back to 
                // the autograded scores and clear rubrics.
                if (context.ResetEvaluationPoints)
                {
                    interaction.Evaluation.Points = interaction.Score.Raw;
                    // If there are rubrics associated with the question, clear the IsSatisfied
                    // state
                    foreach (Rubric rubric in interaction.Rubrics)
                    {
                        rubric.IsSatisfied = null;
                    }
                }

                // If user requested to reset evaluation comments, then clear all comments.
                if (context.ResetEvaluationComments)
                {
                    interaction.Evaluation.Comments.Clear();
                }
            }
        }