Package de.hsh.graja.core
Interface ModuleEvaluator
- All Known Implementing Classes:
CheckstyleEvaluator,CompileEvaluator,HumanEvaluator,JunitEvaluator,PmdEvaluator
public interface ModuleEvaluator
A ModuleEvaluator can create
GradingAspectResults from ModuleRunnerResults.
E. g. a JUnit evaluator can evaluate the results of a JUnit execution, extract that piece
of information, that is needed for a specific grading aspect, i. e. identify the result
for a specific test method, and then create e result object for
that grading aspect. For a detailed documentation of the role of module evaluators
in the context of the grading process
see javadocs of class Graja.-
Method Summary
Modifier and TypeMethodDescriptioncreateGradingAspectResult(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg, ResultSpec resultSpec, int level) Create a resultGradingAspectResultobject for aGradingAspectobject.doublegetSuccessRate(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg)
-
Method Details
-
createGradingAspectResult
GradingAspectResult createGradingAspectResult(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg, ResultSpec resultSpec, int level) Create a resultGradingAspectResultobject for aGradingAspectobject.- Parameters:
mrr- the result of the module runner as input parameteraspect- for this aspect this method creates a result. This is an input parameter.moduleCfg- the module configuration as input parameterresultSpec- the specificiation of result parameterslevel- a number 1 or greater meaning the distance from the aspect to the root of the grading scheme tree.- Returns:
- the result object created by this method
-
getSuccessRate
-