Package com.gophers.structures.grades
Class ChatBotGrade
java.lang.Object
com.gophers.structures.grades.GradeTemplate
com.gophers.structures.grades.ChatBotGrade
- All Implemented Interfaces:
Grade
A concrete implementation of
GradeTemplate for grading the chatbot.
This class defines how weightings and feedback are allocated for the chatbot grade.-
Field Summary
Fields inherited from class com.gophers.structures.grades.GradeTemplate
feedbackMap, testMarks -
Constructor Summary
ConstructorsConstructorDescriptionChatBotGrade(org.junit.runner.Result result) Constructs aChatBotGradeinstance using the result of a test. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAllocates feedback for the chatbot test.protected voidAllocates weightings for each test in the chatbot grade.Methods inherited from class com.gophers.structures.grades.GradeTemplate
getMarks, getTestFeedback, getTotalMarks
-
Constructor Details
-
ChatBotGrade
public ChatBotGrade(org.junit.runner.Result result) Constructs aChatBotGradeinstance using the result of a test. The constructor calls the parent class constructor and initializes the total marks.- Parameters:
result- The result of the test run for the chatbot grade.
-
-
Method Details
-
allocateWeightings
protected void allocateWeightings()Allocates weightings for each test in the chatbot grade. This method loads the weightings from theGradeConfigLoaderbased on the configuration defined for chatbot grading.- Specified by:
allocateWeightingsin classGradeTemplate
-
allocateFeedback
protected void allocateFeedback()Allocates feedback for the chatbot test. This method initializes the feedback map by copying the weightings fromGradeTemplate.testMarksinto theGradeTemplate.feedbackMap, as a baseline for feedback distribution.- Specified by:
allocateFeedbackin classGradeTemplate
-