Class ChatBotPlatformGrade

java.lang.Object
com.gophers.structures.grades.GradeTemplate
com.gophers.structures.grades.ChatBotPlatformGrade
All Implemented Interfaces:
Grade

public class ChatBotPlatformGrade extends GradeTemplate
A concrete implementation of GradeTemplate for grading the chatbot platform. This class defines how weightings and feedback are allocated for the chatbot platform grade.
  • Constructor Details

    • ChatBotPlatformGrade

      public ChatBotPlatformGrade(org.junit.runner.Result result)
      Constructs a ChatBotPlatformGrade instance 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 platform.
  • Method Details

    • allocateWeightings

      protected void allocateWeightings()
      Allocates weightings for each test in the chatbot platform grade. This method loads the weightings from the GradeConfigLoader based on the configuration defined for chatbot platform grading.
      Specified by:
      allocateWeightings in class GradeTemplate
    • allocateFeedback

      protected void allocateFeedback()
      Allocates feedback for the chatbot platform test. This method initializes the feedback map by copying the weightings from GradeTemplate.testMarks into the GradeTemplate.feedbackMap, as a baseline for feedback distribution.
      Specified by:
      allocateFeedback in class GradeTemplate