Class GradeConfigLoader

java.lang.Object
com.gophers.services.handlers.GradeConfigLoader

public class GradeConfigLoader extends Object
The GradeConfigLoader class is responsible for loading and providing grading weightings for various grading types.
  • Constructor Details

    • GradeConfigLoader

      public GradeConfigLoader()
      Default constructor for GradeConfigLoader class. Initializes a new instance of the GradeConfigLoader.
  • Method Details

    • getWeightings

      public static Map<String,Integer> getWeightings(String gradeType)
      Retrieves the weightings for a specific grade type.
      Parameters:
      gradeType - the grade type for which to retrieve weightings
      Returns:
      a map of test cases to their respective weightings, or an empty map if the grade type is not found