Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
e1204e49
Commit
e1204e49
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-2784: add manual / auto / final score in results reportss
parent
1b728cb6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/ims/qti21/ui/AssessmentResultController.java
+38
-1
38 additions, 1 deletion
...ava/org/olat/ims/qti21/ui/AssessmentResultController.java
with
38 additions
and
1 deletion
src/main/java/org/olat/ims/qti21/ui/AssessmentResultController.java
+
38
−
1
View file @
e1204e49
...
@@ -210,6 +210,10 @@ public class AssessmentResultController extends FormBasicController {
...
@@ -210,6 +210,10 @@ public class AssessmentResultController extends FormBasicController {
TestResult
testResult
=
assessmentResult
.
getTestResult
();
TestResult
testResult
=
assessmentResult
.
getTestResult
();
if
(
testResult
!=
null
)
{
if
(
testResult
!=
null
)
{
extractOutcomeVariable
(
testResult
.
getItemVariables
(),
testResults
);
extractOutcomeVariable
(
testResult
.
getItemVariables
(),
testResults
);
if
(
candidateSession
.
getManualScore
()
!=
null
)
{
testResults
.
addScore
(
candidateSession
.
getManualScore
());
testResults
.
setManualScore
(
candidateSession
.
getManualScore
());
}
AssessmentTest
assessmentTest
=
resolvedAssessmentTest
.
getRootNodeLookup
().
extractIfSuccessful
();
AssessmentTest
assessmentTest
=
resolvedAssessmentTest
.
getRootNodeLookup
().
extractIfSuccessful
();
Double
cutValue
=
QtiNodesExtractor
.
extractCutValue
(
assessmentTest
);
Double
cutValue
=
QtiNodesExtractor
.
extractCutValue
(
assessmentTest
);
...
@@ -293,6 +297,7 @@ public class AssessmentResultController extends FormBasicController {
...
@@ -293,6 +297,7 @@ public class AssessmentResultController extends FormBasicController {
if
(
itemSession
!=
null
)
{
if
(
itemSession
!=
null
)
{
if
(
itemSession
.
getManualScore
()
!=
null
)
{
if
(
itemSession
.
getManualScore
()
!=
null
)
{
r
.
setScore
(
itemSession
.
getManualScore
());
r
.
setScore
(
itemSession
.
getManualScore
());
r
.
setManualScore
(
itemSession
.
getManualScore
());
}
}
r
.
setComment
(
itemSession
.
getCoachComment
());
r
.
setComment
(
itemSession
.
getCoachComment
());
}
}
...
@@ -424,7 +429,9 @@ public class AssessmentResultController extends FormBasicController {
...
@@ -424,7 +429,9 @@ public class AssessmentResultController extends FormBasicController {
for
(
ItemVariable
itemVariable:
itemVariables
)
{
for
(
ItemVariable
itemVariable:
itemVariables
)
{
if
(
itemVariable
instanceof
OutcomeVariable
)
{
if
(
itemVariable
instanceof
OutcomeVariable
)
{
if
(
QTI21Constants
.
SCORE_IDENTIFIER
.
equals
(
itemVariable
.
getIdentifier
()))
{
if
(
QTI21Constants
.
SCORE_IDENTIFIER
.
equals
(
itemVariable
.
getIdentifier
()))
{
results
.
setScore
(
getOutcomeNumberVariable
(
itemVariable
));
Double
score
=
getOutcomeNumberVariable
(
itemVariable
);
results
.
setScore
(
score
);
results
.
setAutoScore
(
score
);
}
else
if
(
QTI21Constants
.
MAXSCORE_IDENTIFIER
.
equals
(
itemVariable
.
getIdentifier
()))
{
}
else
if
(
QTI21Constants
.
MAXSCORE_IDENTIFIER
.
equals
(
itemVariable
.
getIdentifier
()))
{
results
.
setMaxScore
(
getOutcomeNumberVariable
(
itemVariable
));
results
.
setMaxScore
(
getOutcomeNumberVariable
(
itemVariable
));
}
else
if
(
QTI21Constants
.
PASS_IDENTIFIER
.
equals
(
itemVariable
.
getIdentifier
()))
{
}
else
if
(
QTI21Constants
.
PASS_IDENTIFIER
.
equals
(
itemVariable
.
getIdentifier
()))
{
...
@@ -507,6 +514,9 @@ public class AssessmentResultController extends FormBasicController {
...
@@ -507,6 +514,9 @@ public class AssessmentResultController extends FormBasicController {
private
Long
duration
;
private
Long
duration
;
private
Double
score
;
private
Double
score
;
private
Double
manualScore
;
private
Double
autoScore
;
private
Double
maxScore
;
private
Double
maxScore
;
private
Double
cutValue
;
private
Double
cutValue
;
private
Boolean
pass
;
private
Boolean
pass
;
...
@@ -630,6 +640,33 @@ public class AssessmentResultController extends FormBasicController {
...
@@ -630,6 +640,33 @@ public class AssessmentResultController extends FormBasicController {
}
}
}
}
public
void
addScore
(
BigDecimal
additionalScore
)
{
if
(
score
==
null
)
{
score
=
0.0d
;
}
score
=
score
.
doubleValue
()
+
additionalScore
.
doubleValue
();
}
public
String
getAutoScore
()
{
return
AssessmentHelper
.
getRoundedScore
(
autoScore
);
}
public
void
setAutoScore
(
Double
autoScore
)
{
if
(
autoScore
!=
null
)
{
this
.
autoScore
=
autoScore
.
doubleValue
();
}
}
public
String
getManualScore
()
{
return
AssessmentHelper
.
getRoundedScore
(
manualScore
);
}
public
void
setManualScore
(
BigDecimal
manualScore
)
{
if
(
manualScore
!=
null
)
{
this
.
manualScore
=
manualScore
.
doubleValue
();
}
}
public
boolean
hasMaxScore
()
{
public
boolean
hasMaxScore
()
{
return
maxScore
!=
null
;
return
maxScore
!=
null
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment