Class BasicEvaluatorService
java.lang.Object
me.nickhanson.codeforge.evaluator.BasicEvaluatorService
- All Implemented Interfaces:
AnswerEvaluator
Basic implementation of the AnswerEvaluator interface.
Compares submitted answers to expected answers with normalization.
- Author:
- Nick Hanson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates a submitted answer for a given challenge.
-
Constructor Details
-
BasicEvaluatorService
public BasicEvaluatorService()
-
-
Method Details
-
evaluate
Evaluates a submitted answer for a given challenge.- Specified by:
evaluatein interfaceAnswerEvaluator- Parameters:
challenge- The challenge to evaluate against.submission- The submitted answer.- Returns:
- An AnswerEvaluation containing the evaluation results.
-