%3 ::nx::Object ::nx::Object ::xowf::test_item::grading::Grading ::xowf::test_item::grading::Grading calc_grade grading_dict init print ::xowf::test_item::grading::Grading->::nx::Object ::xowf::test_item::grading::GradingNone ::xowf::test_item::grading::GradingNone grade ::xowf::test_item::grading::GradingNone->::xowf::test_item::grading::Grading ::xowf::test_item::grading::GradingRoundNone ::xowf::test_item::grading::GradingRoundNone grade ::xowf::test_item::grading::GradingRoundNone->::xowf::test_item::grading::Grading ::xowf::test_item::grading::GradingRoundPoints ::xowf::test_item::grading::GradingRoundPoints grade ::xowf::test_item::grading::GradingRoundPoints->::xowf::test_item::grading::Grading ::xowf::test_item::grading::GradingRoundPercentage ::xowf::test_item::grading::GradingRoundPercentage grade ::xowf::test_item::grading::GradingRoundPercentage->::xowf::test_item::grading::Grading

Class ::xowf::test_item::grading::Grading

::xowf::test_item::grading::Grading[i] create ... \
           [ -csv:required csv:required ] \
           [ -percentage_boundaries:required percentage_boundaries:required ] \
           [ -precision (default "") ] \
           [ -title (default "") ]

Superclass representing a generic grading
Defined in packages/xowf/tcl/grading-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]
  • subclass: ::xowf::test_item::grading::GradingNone[i], ::xowf::test_item::grading::GradingRoundNone[i], ::xowf::test_item::grading::GradingRoundPoints[i], ::xowf::test_item::grading::GradingRoundPercentage[i]

Methods (to be applied on instances)

  • grading_dict (scripted, public)

     <instance of xowf::test_item::grading::Grading[i]> grading_dict \
        achieved_points

    Important dict members of "achieved_points": - achievedPoints: points that the student has achieved in her exam - achievablePoints: points that the student could have achieved so far - totalPoints: points that the student can achieve when finishing the exam achieved_points: {achievedPoints 4.0 achievablePoints 4 totalPoints 4} percentage_mapping: {50.0 60.0 70.0 80.0} While "achievedPoints" and "achievablePoints" are calculated by iterating over the submitted values, "totalPoints" contains the sum of points of all questions of the exam, no matter if these were answered or not.

    Parameters:
    achieved_points

    Partial Call Graph (max 5 caller/called nodes):
    %3 xo::show_stack xo::show_stack xowf::test_item::grading::Grading instproc grading_dict xowf::test_item::grading::Grading instproc grading_dict xowf::test_item::grading::Grading instproc grading_dict->xo::show_stack

    Testcases:
    No testcase defined.
  • print (scripted, public)

     <instance of xowf::test_item::grading::Grading[i]> print \
        -achieved_points achieved_points 

    Return a dict containing the members "panel" and "csv" depending on the type of rounding options

    Switches:
    -achieved_points
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_test_items create_test_items (test xowf) xowf::test_item::grading::Grading instproc print xowf::test_item::grading::Grading instproc print test_create_test_items->xowf::test_item::grading::Grading instproc print _ _ (public) xowf::test_item::grading::Grading instproc print->_

    Testcases:
    create_test_items