Class BasicEvaluatorService

java.lang.Object
me.nickhanson.codeforge.evaluator.BasicEvaluatorService
All Implemented Interfaces:
AnswerEvaluator

public class BasicEvaluatorService extends Object implements AnswerEvaluator
Basic implementation of the AnswerEvaluator interface. Compares submitted answers to expected answers with normalization.
Author:
Nick Hanson
  • Constructor Details

    • BasicEvaluatorService

      public BasicEvaluatorService()
  • Method Details

    • evaluate

      public AnswerEvaluation evaluate(Challenge challenge, String submission)
      Evaluates a submitted answer for a given challenge.
      Specified by:
      evaluate in interface AnswerEvaluator
      Parameters:
      challenge - The challenge to evaluate against.
      submission - The submitted answer.
      Returns:
      An AnswerEvaluation containing the evaluation results.