xowf::test_item::Answer_manager method achieved_points (protected)

 <instance of xowf::test_item::Answer_manager[i]> 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):
%3 test_create_test_items create_test_items (test xowf) xowf::test_item::Answer_manager instproc achieved_points xowf::test_item::Answer_manager instproc achieved_points test_create_test_items->xowf::test_item::Answer_manager instproc achieved_points

Testcases:
create_test_items
[ show source ]
Show another procedure: