Package com.gophers.services.helpers
Class MarkSchemeLoader
java.lang.Object
com.gophers.services.helpers.MarkSchemeLoader
- All Implemented Interfaces:
MarkSchemeLoaderStrategy
The MarkSchemeLoader class loads grading weightings from a YAML file.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MarkSchemeLoader
public MarkSchemeLoader()Default constructor for the MarkSchemeLoader class. Initializes a new instance of the MarkSchemeLoader to load the mark scheme for grading.
-
-
Method Details
-
loadWeightings
Loads the grading weightings from the YAML mark scheme file.- Specified by:
loadWeightingsin interfaceMarkSchemeLoaderStrategy- Returns:
- a
Mapwhere keys are grade types and values are maps of grading criteria and weights - Throws:
IllegalStateException- if the mark scheme cannot be loaded
-