Class CheckstyleEvaluator
- java.lang.Object
-
- de.hsh.graja.core.modules.checkstyle.CheckstyleEvaluator
-
- All Implemented Interfaces:
ModuleEvaluator
public class CheckstyleEvaluator extends Object implements ModuleEvaluator
-
-
Constructor Summary
Constructors Constructor Description CheckstyleEvaluator()
-
Method Summary
All Methods Instance Methods Concrete 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
public GradingAspectResult createGradingAspectResult(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg, ResultSpec resultSpec, int level)
Description copied from interface:ModuleEvaluator
Create a resultGradingAspectResult
object for aGradingAspect
object.- Specified by:
createGradingAspectResult
in interfaceModuleEvaluator
- 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
public double getSuccessRate(ModuleRunnerResult mrr, GradingAspect aspect, ModuleConfiguration moduleCfg)
- Specified by:
getSuccessRate
in interfaceModuleEvaluator
-
-