Class RubricUtils
java.lang.Object
org.tudalgo.algoutils.tutor.general.jagr.RubricUtils
Utility class for creating
Criterions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.sourcegrade.jagr.api.rubric.CriterionCreates a newCriterionwith the given description and test.static org.sourcegrade.jagr.api.rubric.CriterionCreates a newCriterionwith the given description and test.static org.sourcegrade.jagr.api.rubric.Criterionstatic org.sourcegrade.jagr.api.rubric.CriterionCreates a newCriterionwith the given description and test.static org.sourcegrade.jagr.api.rubric.Criterion.BuilderdefaultCriterionBuilder(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef) Creates a newCriterion.Builderwith the given description and test.static org.sourcegrade.jagr.api.rubric.Criterion.BuilderdefaultCriterionBuilder(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs) Creates a newCriterion.Builderwith the given description and test.static org.sourcegrade.jagr.api.rubric.GraderCreates aGraderfor manual tutor grading with a maximum of 1 point.static org.sourcegrade.jagr.api.rubric.GradergraderPrivateOnly(int points) Creates aGraderfor manual tutor grading.static org.sourcegrade.jagr.api.rubric.GraderCreates aGraderfor manual tutor grading with a maximum of 1 point.static org.sourcegrade.jagr.api.rubric.GradermanualGrader(int points) Creates aGraderfor manual tutor grading.static org.sourcegrade.jagr.api.rubric.GradertestAwareGrader(org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef)
-
Constructor Details
-
RubricUtils
public RubricUtils()
-
-
Method Details
-
defaultCriterionBuilder
public static org.sourcegrade.jagr.api.rubric.Criterion.Builder defaultCriterionBuilder(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef) Creates a newCriterion.Builderwith the given description and test.- Parameters:
description- The description of the criterion.testRef- The test reference of the criterion.- Returns:
- The newly created criterion builder.
-
defaultCriterionBuilder
public static org.sourcegrade.jagr.api.rubric.Criterion.Builder defaultCriterionBuilder(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs) Creates a newCriterion.Builderwith the given description and test.- Parameters:
description- The description of the criterion.testRefs- The test references of the criterion.- Returns:
- The newly created criterion builder.
-
testAwareGrader
public static org.sourcegrade.jagr.api.rubric.Grader testAwareGrader(org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef) -
criterion
public static org.sourcegrade.jagr.api.rubric.Criterion criterion(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef) Creates a newCriterionwith the given description and test.- Parameters:
description- The description of the criterion.testRef- The test reference of the criterion.- Returns:
- The newly created criterion.
-
criterion
public static org.sourcegrade.jagr.api.rubric.Criterion criterion(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs) -
criterion
public static org.sourcegrade.jagr.api.rubric.Criterion criterion(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef, int points) Creates a newCriterionwith the given description and test.- Parameters:
description- The description of the criterion.testRef- The test reference of the criterion.points- The points of the criterion.- Returns:
- The newly created criterion.
-
criterion
public static org.sourcegrade.jagr.api.rubric.Criterion criterion(String description, int points, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs) Creates a newCriterionwith the given description and test.- Parameters:
description- The description of the criterion.testRefs- The test references of the criterion that need to pass.points- The points of the criterion.- Returns:
- The newly created criterion.
-
manualGrader
public static org.sourcegrade.jagr.api.rubric.Grader manualGrader(int points) Creates aGraderfor manual tutor grading.- Parameters:
points- The maximum points to be awarded.- Returns:
- The newly created grader.
-
manualGrader
public static org.sourcegrade.jagr.api.rubric.Grader manualGrader()Creates aGraderfor manual tutor grading with a maximum of 1 point.- Returns:
- The newly created grader.
-
graderPrivateOnly
public static org.sourcegrade.jagr.api.rubric.Grader graderPrivateOnly(int points) Creates aGraderfor manual tutor grading.- Parameters:
points- The maximum points to be awarded.- Returns:
- The newly created grader.
-
graderPrivateOnly
public static org.sourcegrade.jagr.api.rubric.Grader graderPrivateOnly()Creates aGraderfor manual tutor grading with a maximum of 1 point.- Returns:
- The newly created grader.
-