Implementing task scoring
- Last UpdatedDec 04, 2023
- 1 minute read
Assigning points to task completion is the basis for user performance evaluation.
The Task Manager supports two kind of scores:
-
Shot: Fixed amount of points assigned on successful task completion.
-
Time: Linearly decreasing points assigned on time basis.
Guidelines
There are no fixed rules for score handling, but there are some guidelines:
-
Assign points to all the tasks.
-
Assign shot scores to the completion of atomic tasks.
-
Assign time scores to the completion of high-level tasks.
Code example
This is a code example for assigning scores.
<task name="t10" startTasks="t10_1,t10_1">
<task name="t10_1" >
<end condition="@HS52150.buttonPressed.isModified@==true" />
<score value="5" type="shot"/>
</task>
<task name="t10_2" >
<end condition="@HS52151.buttonPressed.isModified@==true" />
<score value="5" type="shot"/>
</task>
<end condition="@tm_0.t10_1_state@==success" startTasks="t11"/>
<score value="50" type="time" timeRange="20 200"/>
</task>