Examples of evaluateCalculation()


Examples of org.olat.course.condition.interpreter.ConditionInterpreter.evaluateCalculation()

    String passedExpressionStr = scoreCalculator.getPassedExpression();

    ConditionInterpreter ci = userCourseEnv.getConditionInterpreter();
    userCourseEnv.getScoreAccounting().setEvaluatingCourseNode(this);
    if (scoreExpressionStr != null) {
      score = new Float(ci.evaluateCalculation(scoreExpressionStr));
    }
    if (passedExpressionStr != null) {
      passed = new Boolean(ci.evaluateCondition(passedExpressionStr));
    }
    ScoreEvaluation se = new ScoreEvaluation(score, passed);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.