- Publicity: Public Only All
grading-procs.tcl
Test Item grading procs - support for different kind of grading types and schemes.
This file defines the following Objects and Classes: ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::round-percentage, ::xowf::test_item::grading::round-points, ::xowf::test_item::grading::round-none, ::xowf::test_item::grading::none, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::GradingNone, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::Grading, ::xowf::test_item::grading::GradingRoundPoints, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone, ::xowf::test_item::grading::GradingRoundPercentage, ::xowf::test_item::grading::GradingRoundNone
- Location:
- packages/xowf/tcl/grading-procs.tcl
- Author:
- Gustaf Neumann
Procedures in this file
- Class ::xowf::test_item::grading::Grading (public)
- Class ::xowf::test_item::grading::GradingNone (public)
- Class ::xowf::test_item::grading::GradingRoundNone (public)
- Class ::xowf::test_item::grading::GradingRoundPercentage (public)
- Class ::xowf::test_item::grading::GradingRoundPoints (public)
- Object ::xowf::test_item::grading::none (public)
- Object ::xowf::test_item::grading::round-none (public)
- Object ::xowf::test_item::grading::round-percentage (public)
- Object ::xowf::test_item::grading::round-points (public)
- xowf::test_item::grading::GradingRoundNone instproc grade (public)
- xowf::test_item::grading::GradingRoundPercentage instproc grade (public)
- xowf::test_item::grading::GradingRoundPoints instproc grade (public)
- xowf::test_item::grading::load_grading_schemes (public)
Detailed information
Class ::xowf::test_item::grading::Grading (public)
::nx::Class ::xowf::test_item::grading::Grading
Superclass representing a generic grading
- Testcases:
- No testcase defined.
Class ::xowf::test_item::grading::GradingNone (public)
::nx::Class ::xowf::test_item::grading::GradingNone
Grading scheme, which omits grading at all.
- Testcases:
- No testcase defined.
Class ::xowf::test_item::grading::GradingRoundNone (public)
::nx::Class ::xowf::test_item::grading::GradingRoundNone
Implements a grading with no special rounding.
- Testcases:
- No testcase defined.
Class ::xowf::test_item::grading::GradingRoundPercentage (public)
::nx::Class ::xowf::test_item::grading::GradingRoundPercentage
Implements a grading expressed as a rounded percentage
- Testcases:
- No testcase defined.
Class ::xowf::test_item::grading::GradingRoundPoints (public)
::nx::Class ::xowf::test_item::grading::GradingRoundPoints
Implements a grading expressed as a rounded number of points
- Testcases:
- No testcase defined.
Object ::xowf::test_item::grading::none (public)
::xowf::test_item::grading::GradingNone ::xowf::test_item::grading::none
Deactivating grading scheme (no grades are computed)
Object ::xowf::test_item::grading::round-none (public)
::xowf::test_item::grading::GradingRoundNone ::xowf::test_item::grading::round-none
Grading scheme without any rounding
- See Also:
- Testcases:
- No testcase defined.
Object ::xowf::test_item::grading::round-percentage (public)
::xowf::test_item::grading::GradingRoundPercentage ::xowf::test_item::grading::round-percentage
Grading scheme based on rounded percentages.
- See Also:
- Testcases:
- No testcase defined.
Object ::xowf::test_item::grading::round-points (public)
::xowf::test_item::grading::GradingRoundPoints ::xowf::test_item::grading::round-points
Grading scheme based on rounded points.
- See Also:
- Testcases:
- No testcase defined.
xowf::test_item::grading::GradingRoundNone method grade (public)
<instance of xowf::test_item::grading::GradingRoundNone> grade \ -achieved_points achieved_points
Return a numeric grade for an exam submission based with no special rounding (2 digits). On invalid data, return 0.
- Switches:
- -achieved_points (required)
- Testcases:
- No testcase defined.
xowf::test_item::grading::GradingRoundPercentage method grade (public)
<instance of xowf::test_item::grading::GradingRoundPercentage> grade \ -achieved_points achieved_points
Return a numeric grade for an exam submission based on rounded percentage. On invalid data, return 0.
- Switches:
- -achieved_points (required)
- Testcases:
- No testcase defined.
xowf::test_item::grading::GradingRoundPoints method grade (public)
<instance of xowf::test_item::grading::GradingRoundPoints> grade \ -achieved_points achieved_points
Return a numeric grade for an exam submission based on rounded points. On invalid data, return 0.
- Switches:
- -achieved_points (required)
- Testcases:
- No testcase defined.
xowf::test_item::grading::load_grading_schemes (public)
xowf::test_item::grading::load_grading_schemes -package_id package_id \ -parent_id parent_id
Load the actual grading scheme objects defined for the package_id and parent_id. It might be the case that this function is called multiple times by a single request (when e.g. multiple exams are on a single page). So we are caching the result to avoid repeated computations of the same result.
- Switches:
- -package_id (required)
- -parent_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.