use of uk.ac.ed.ph.jqtiplus.group.outcome.declaration.OutcomeDeclarationGroup in project openolat by klemens.
the class AssessmentItemFactory method appendDefaultOutcomeDeclarations.
/**
* Append the default outcome declaration for score, max score and feedback basic.
*
* @param assessmentItem
*/
public static void appendDefaultOutcomeDeclarations(AssessmentItem assessmentItem, double maxScore) {
NodeGroupList nodeGroups = assessmentItem.getNodeGroups();
// outcomes
OutcomeDeclarationGroup outcomeDeclarations = nodeGroups.getOutcomeDeclarationGroup();
// outcome score
OutcomeDeclaration scoreOutcomeDeclaration = createOutcomeDeclarationForScore(assessmentItem);
outcomeDeclarations.getOutcomeDeclarations().add(scoreOutcomeDeclaration);
// outcome max score
OutcomeDeclaration maxScoreOutcomeDeclaration = createOutcomeDeclarationForMaxScore(assessmentItem, maxScore);
outcomeDeclarations.getOutcomeDeclarations().add(maxScoreOutcomeDeclaration);
// outcome min score
OutcomeDeclaration minScoreOutcomeDeclaration = createOutcomeDeclarationForMinScore(assessmentItem, 0.0d);
outcomeDeclarations.getOutcomeDeclarations().add(minScoreOutcomeDeclaration);
// outcome feedback
OutcomeDeclaration feedbackOutcomeDeclaration = createOutcomeDeclarationForFeedbackBasic(assessmentItem);
outcomeDeclarations.getOutcomeDeclarations().add(feedbackOutcomeDeclaration);
}
use of uk.ac.ed.ph.jqtiplus.group.outcome.declaration.OutcomeDeclarationGroup in project OpenOLAT by OpenOLAT.
the class AssessmentItemFactory method appendDefaultOutcomeDeclarations.
/**
* Append the default outcome declaration for score, max score and feedback basic.
*
* @param assessmentItem
*/
public static void appendDefaultOutcomeDeclarations(AssessmentItem assessmentItem, double maxScore) {
NodeGroupList nodeGroups = assessmentItem.getNodeGroups();
// outcomes
OutcomeDeclarationGroup outcomeDeclarations = nodeGroups.getOutcomeDeclarationGroup();
// outcome score
OutcomeDeclaration scoreOutcomeDeclaration = createOutcomeDeclarationForScore(assessmentItem);
outcomeDeclarations.getOutcomeDeclarations().add(scoreOutcomeDeclaration);
// outcome max score
OutcomeDeclaration maxScoreOutcomeDeclaration = createOutcomeDeclarationForMaxScore(assessmentItem, maxScore);
outcomeDeclarations.getOutcomeDeclarations().add(maxScoreOutcomeDeclaration);
// outcome min score
OutcomeDeclaration minScoreOutcomeDeclaration = createOutcomeDeclarationForMinScore(assessmentItem, 0.0d);
outcomeDeclarations.getOutcomeDeclarations().add(minScoreOutcomeDeclaration);
// outcome feedback
OutcomeDeclaration feedbackOutcomeDeclaration = createOutcomeDeclarationForFeedbackBasic(assessmentItem);
outcomeDeclarations.getOutcomeDeclarations().add(feedbackOutcomeDeclaration);
}
Aggregations