Package de.hsh.graja.core
Interface ModuleEvaluator
-
- All Known Implementing Classes:
CheckstyleEvaluator
,CompileEvaluator
,HumanEvaluator
,JunitEvaluator
,PmdEvaluator
public interface ModuleEvaluator
A ModuleEvaluator can createGradingAspectResult
s fromModuleRunnerResult
s. 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 classGraja
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GradingAspectResult
createGradingAspectResult(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg, ResultSpec resultSpec, int level)
Create a resultGradingAspectResult
object for aGradingAspect
object.double
getSuccessRate(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg)
-
-
-
Method Detail
-
createGradingAspectResult
GradingAspectResult createGradingAspectResult(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg, ResultSpec resultSpec, int level)
Create a resultGradingAspectResult
object for aGradingAspect
object.- 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
double getSuccessRate(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg)
-
-