Package de.hsh.graja.core
Class Module
- java.lang.Object
-
- de.hsh.graja.core.Module
-
public class Module extends Object
A Module is one step of the grading process. Examples are a JUnit step and a PMD step. A module consists of a
ModuleType
, aModuleRunner
and aModuleEvaluator
. For a detailed documentation of the role of modules in the context of the grading process see javadocs of classGraja
.An instance of this class is a simple data container with references to the module type, the module runner and the module evaluator.
-
-
Constructor Summary
Constructors Constructor Description Module(ModuleRunner runner, ModuleEvaluator evaluator, ModuleType moduleType, String moduleId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleEvaluator
getEvaluator()
String
getModuleId()
ModuleType
getModuleType()
ModuleRunner
getRunner()
void
setRunner(ModuleRunner runner)
-
-
-
Constructor Detail
-
Module
public Module(ModuleRunner runner, ModuleEvaluator evaluator, ModuleType moduleType, String moduleId)
- Parameters:
runner
- can be null for Modules that run in a separate JVMevaluator
-moduleType
-moduleId
-
-
-
Method Detail
-
getRunner
public ModuleRunner getRunner()
-
setRunner
public void setRunner(ModuleRunner runner)
-
getEvaluator
public ModuleEvaluator getEvaluator()
-
getModuleType
public ModuleType getModuleType()
-
getModuleId
public String getModuleId()
-
-