Package org.olat.course.condition.interpreter

Examples of org.olat.course.condition.interpreter.ConditionInterpreter


 
  public UserCourseEnvironmentImpl(IdentityEnvironment identityEnvironment, CourseEnvironment courseEnvironment) {
    this.courseEnvironment = courseEnvironment;
    this.identityEnvironment = identityEnvironment;
    this.scoreAccounting = new ScoreAccounting(this);
    this.conditionInterpreter = new ConditionInterpreter(this);
  }
View Full Code Here


  private ConditionInterpreter ci;
  private ScoreAccounting sa;

  EditorUserCourseEnvironmentImpl(CourseEditorEnv courseEditorEnv){
    this.courseEditorEnv = courseEditorEnv;
    this.ci = new ConditionInterpreter(this);
    this.courseEditorEnv.setConditionInterpreter(ci);
    this.sa = new ScoreAccounting(this);
  }
View Full Code Here

      return null;
    }
    String scoreExpressionStr = scoreCalculator.getScoreExpression();
    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);
    return se;
  }
View Full Code Here

TOP

Related Classes of org.olat.course.condition.interpreter.ConditionInterpreter

Copyright © 2018 www.massapicom. 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.