Class RubricUtils

java.lang.Object
org.tudalgo.algoutils.tutor.general.jagr.RubricUtils

public class RubricUtils extends Object
Utility class for creating Criterions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.sourcegrade.jagr.api.rubric.Criterion
    criterion(String description, int points, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs)
    Creates a new Criterion with the given description and test.
    static org.sourcegrade.jagr.api.rubric.Criterion
    criterion(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef)
    Creates a new Criterion with the given description and test.
    static org.sourcegrade.jagr.api.rubric.Criterion
    criterion(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs)
     
    static org.sourcegrade.jagr.api.rubric.Criterion
    criterion(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef, int points)
    Creates a new Criterion with the given description and test.
    static org.sourcegrade.jagr.api.rubric.Criterion.Builder
    defaultCriterionBuilder(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef)
    Creates a new Criterion.Builder with the given description and test.
    static org.sourcegrade.jagr.api.rubric.Criterion.Builder
    defaultCriterionBuilder(String description, org.sourcegrade.jagr.api.rubric.JUnitTestRef... testRefs)
    Creates a new Criterion.Builder with the given description and test.
    static org.sourcegrade.jagr.api.rubric.Grader
    Creates a Grader for manual tutor grading with a maximum of 1 point.
    static org.sourcegrade.jagr.api.rubric.Grader
    graderPrivateOnly(int points)
    Creates a Grader for manual tutor grading.
    static org.sourcegrade.jagr.api.rubric.Grader
    Creates a Grader for manual tutor grading with a maximum of 1 point.
    static org.sourcegrade.jagr.api.rubric.Grader
    manualGrader(int points)
    Creates a Grader for manual tutor grading.
    static org.sourcegrade.jagr.api.rubric.Grader
    testAwareGrader(org.sourcegrade.jagr.api.rubric.JUnitTestRef testRef)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 new Criterion.Builder with 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 new Criterion.Builder with 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 new Criterion with 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 new Criterion with 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 new Criterion with 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 a Grader for 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 a Grader for 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 a Grader for 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 a Grader for manual tutor grading with a maximum of 1 point.
      Returns:
      The newly created grader.