Search in sources :

Example 21 with ResponseCondition

use of uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition in project openolat by klemens.

the class KPrimAssessmentItemBuilder method buildMainScoreRule.

@Override
protected void buildMainScoreRule(List<OutcomeDeclaration> outcomeDeclarations, List<ResponseRule> responseRules) {
    ResponseCondition rule = new ResponseCondition(assessmentItem.getResponseProcessing());
    responseRules.add(0, rule);
    buildMainKPrimScoreRule(rule);
}
Also used : ResponseCondition(uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition)

Example 22 with ResponseCondition

use of uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition in project openolat by klemens.

the class LobAssessmentItemBuilder method buildMainScoreRule.

@Override
protected void buildMainScoreRule(List<OutcomeDeclaration> outcomeDeclarations, List<ResponseRule> responseRules) {
    ResponseCondition rule = new ResponseCondition(assessmentItem.getResponseProcessing());
    responseRules.add(0, rule);
    buildMainEssayFeedbackRule(rule);
}
Also used : ResponseCondition(uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition)

Example 23 with ResponseCondition

use of uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition in project openolat by klemens.

the class MatchAssessmentItemBuilder method buildMainScoreRule.

@Override
protected void buildMainScoreRule(List<OutcomeDeclaration> outcomeDeclarations, List<ResponseRule> responseRules) {
    ResponseCondition rule = new ResponseCondition(assessmentItem.getResponseProcessing());
    responseRules.add(0, rule);
    if (scoreEvaluation == ScoreEvaluation.perAnswer) {
        if (associations.isEmpty()) {
            buildMainScoreRulePerAnswerNoAnswers(rule);
        } else {
            buildMainScoreRulePerAnswer(rule);
        }
    } else {
        buildMainScoreRuleAllCorrectAnswers(rule);
    }
}
Also used : ResponseCondition(uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition)

Example 24 with ResponseCondition

use of uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition in project openolat by klemens.

the class MultipleChoiceAssessmentItemBuilder method buildMainScoreRule.

@Override
protected void buildMainScoreRule(List<OutcomeDeclaration> outcomeDeclarations, List<ResponseRule> responseRules) {
    ResponseCondition rule = new ResponseCondition(assessmentItem.getResponseProcessing());
    responseRules.add(0, rule);
    if (scoreEvaluation == ScoreEvaluation.perAnswer) {
        buildMainScoreRulePerAnswer(rule);
    } else {
        buildMainScoreRuleAllCorrectAnswers(rule);
    }
}
Also used : ResponseCondition(uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition)

Example 25 with ResponseCondition

use of uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition in project openolat by klemens.

the class SingleChoiceAssessmentItemBuilder method buildMainScoreRule.

@Override
protected void buildMainScoreRule(List<OutcomeDeclaration> outcomeDeclarations, List<ResponseRule> responseRules) {
    ResponseCondition rule = new ResponseCondition(assessmentItem.getResponseProcessing());
    responseRules.add(0, rule);
    if (scoreEvaluation == ScoreEvaluation.perAnswer) {
        buildMainScoreRulePerAnswer(rule);
    } else {
        buildMainScoreRuleAllCorrectAnswers(rule);
    }
}
Also used : ResponseCondition(uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition)

Aggregations

ResponseCondition (uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseCondition)54 ResponseIf (uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseIf)28 SetOutcomeValue (uk.ac.ed.ph.jqtiplus.node.item.response.processing.SetOutcomeValue)28 Variable (uk.ac.ed.ph.jqtiplus.node.expression.general.Variable)22 BaseValue (uk.ac.ed.ph.jqtiplus.node.expression.general.BaseValue)18 And (uk.ac.ed.ph.jqtiplus.node.expression.operator.And)16 Match (uk.ac.ed.ph.jqtiplus.node.expression.operator.Match)10 IdentifierValue (uk.ac.ed.ph.jqtiplus.value.IdentifierValue)10 ModalFeedback (uk.ac.ed.ph.jqtiplus.node.item.ModalFeedback)8 ArrayList (java.util.ArrayList)6 Expression (uk.ac.ed.ph.jqtiplus.node.expression.Expression)6 Correct (uk.ac.ed.ph.jqtiplus.node.expression.general.Correct)6 Equal (uk.ac.ed.ph.jqtiplus.node.expression.operator.Equal)6 IsNull (uk.ac.ed.ph.jqtiplus.node.expression.operator.IsNull)6 Multiple (uk.ac.ed.ph.jqtiplus.node.expression.operator.Multiple)6 Sum (uk.ac.ed.ph.jqtiplus.node.expression.operator.Sum)6 ResponseRule (uk.ac.ed.ph.jqtiplus.node.item.response.processing.ResponseRule)6 ComplexReferenceIdentifier (uk.ac.ed.ph.jqtiplus.types.ComplexReferenceIdentifier)6 FloatValue (uk.ac.ed.ph.jqtiplus.value.FloatValue)6 MapResponse (uk.ac.ed.ph.jqtiplus.node.expression.general.MapResponse)4