xowf::test_item::Answer_manager method achieved_points (protected)
<instance of xowf::test_item::Answer_manager> achieved_points \ [ -manual_grading manual_grading ] [ -submission submission ] \ [ -exam_question_dict exam_question_dict ] \ -answer_attributes answer_attributes
Defined in packages/xowf/tcl/test-item-procs.tcl
Calculate the achieved_points dict for an exam submission. This function iterates of every question and sums up the achievable and achieved points of the questions. The per-question results are placed in the dict entry "details". This method has to be called after the instance was rendered, since it uses the produced form_fields.
- Switches:
- -manual_grading
(optional)- -submission
(optional)- -exam_question_dict
(optional)- -answer_attributes
(required)- Returns:
- dict containing "achievedPoints", "achievablePoints" and "details"
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_test_items