Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractGradeFactory - Class in com.gophers.structures.factory
-
Abstract factory class for creating
Gradeobjects. - AbstractGradeFactory() - Constructor for class com.gophers.structures.factory.AbstractGradeFactory
- allocateFeedback() - Method in class com.gophers.structures.grades.ChatBotGeneratorGrade
-
Allocates feedback for the chatbot generator test.
- allocateFeedback() - Method in class com.gophers.structures.grades.ChatBotGrade
-
Allocates feedback for the chatbot test.
- allocateFeedback() - Method in class com.gophers.structures.grades.ChatBotPlatformGrade
-
Allocates feedback for the chatbot platform test.
- allocateFeedback() - Method in class com.gophers.structures.grades.ChatBotSimulationGrade
-
Allocates feedback for the chatbot simulation test.
- allocateFeedback() - Method in class com.gophers.structures.grades.GradeTemplate
-
Allocates feedback for each test.
- allocateFeedback() - Method in class com.gophers.structures.grades.ProgramGrade
-
Initializes the feedback map for program grading based on test weightings.
- allocateWeightings() - Method in class com.gophers.structures.grades.ChatBotGeneratorGrade
-
Allocates weightings for each test in the chatbot generator grade.
- allocateWeightings() - Method in class com.gophers.structures.grades.ChatBotGrade
-
Allocates weightings for each test in the chatbot grade.
- allocateWeightings() - Method in class com.gophers.structures.grades.ChatBotPlatformGrade
-
Allocates weightings for each test in the chatbot platform grade.
- allocateWeightings() - Method in class com.gophers.structures.grades.ChatBotSimulationGrade
-
Allocates weightings for each test in the chatbot simulation.
- allocateWeightings() - Method in class com.gophers.structures.grades.GradeTemplate
-
Allocates weightings for each test.
- allocateWeightings() - Method in class com.gophers.structures.grades.ProgramGrade
-
Allocates test weightings for program grading by loading configuration values specific to program grading criteria.
- App - Class in com.gophers
-
The main entry point for the autograder application.
- App() - Constructor for class com.gophers.App
- ASSIGNMENT_TOTAL_MARKS - Static variable in class com.gophers.utilities.Constants
-
Total marks for the entire assignment.
- AssignmentDetails - Class in com.gophers.structures.domain
-
Represents details of an assignment including the student's details and the assignment grade.
- AssignmentDetails(StudentDetails, AssignmentGrade) - Constructor for class com.gophers.structures.domain.AssignmentDetails
-
Constructor to initialize the student's details and the assignment grade.
- AssignmentGrade - Class in com.gophers.structures.domain
-
Represents grades and feedback for an assignment.
- AssignmentGrade(List<Grade>) - Constructor for class com.gophers.structures.domain.AssignmentGrade
-
Constructor to initialize grades and feedback from a list of grade objects.
- AssignmentTestRunner - Class in com.gophers.services.handlers
-
The AssignmentTestRunner class executes JUnit test cases related to student submissions.
- AssignmentTestRunner() - Constructor for class com.gophers.services.handlers.AssignmentTestRunner
-
Constructs an AssignmentTestRunner and initializes the list of test classes to run.
B
C
- calculateBonus(int, int) - Static method in class com.gophers.services.helpers.GradeUtils
-
Calculates the bonus breakdown based on the total score and bonus value.
- calculateTotalGrade(Map<String, Integer>) - Static method in class com.gophers.services.helpers.GradeUtils
-
Calculates the total grade based on the provided grades map.
- CHATBOT_GENERATOR_GRADE - Static variable in class com.gophers.utilities.Constants
-
ChatBot Generator grading category.
- CHATBOT_GENERATOR_GRADE_INDEX - Static variable in class com.gophers.utilities.Constants
-
Index for ChatBot Generator Grade in grading array.
- CHATBOT_GENERATOR_GRADE_TOTAL_MARKS - Static variable in class com.gophers.utilities.Constants
-
Total marks for ChatBot Generator Grade.
- CHATBOT_GRADE - Static variable in class com.gophers.utilities.Constants
-
ChatBot grading category.
- CHATBOT_GRADE_INDEX - Static variable in class com.gophers.utilities.Constants
-
Index for ChatBot Grade in grading array.
- CHATBOT_GRADE_TOTAL_MARKS - Static variable in class com.gophers.utilities.Constants
-
Total marks for ChatBot Grade.
- CHATBOT_PLATFORM_GRADE - Static variable in class com.gophers.utilities.Constants
-
ChatBot Platform grading category.
- CHATBOT_PLATFORM_GRADE_INDEX - Static variable in class com.gophers.utilities.Constants
-
Index for ChatBot Platform Grade in grading array.
- CHATBOT_PLATFORM_GRADE_TOTAL_MARKS - Static variable in class com.gophers.utilities.Constants
-
Total marks for ChatBot Platform Grade.
- CHATBOT_SIMULATION_GRADE - Static variable in class com.gophers.utilities.Constants
-
ChatBot Simulation grading category.
- CHATBOT_SIMULATION_GRADE_INDEX - Static variable in class com.gophers.utilities.Constants
-
Index for ChatBot Simulation Grade in grading array.
- CHATBOT_SIMULATION_GRADE_TOTAL_MARKS - Static variable in class com.gophers.utilities.Constants
-
Total marks for ChatBot Simulation Grade.
- ChatBotGeneratorGrade - Class in com.gophers.structures.grades
-
A concrete implementation of
GradeTemplatefor grading the chatbot generator. - ChatBotGeneratorGrade(Result) - Constructor for class com.gophers.structures.grades.ChatBotGeneratorGrade
-
Constructs a
ChatBotGeneratorGradeinstance using the result of a test. - ChatBotGeneratorTest - Class in com.gophers.services.testCases
-
Unit tests for the `ChatBotGenerator` class, focusing on verifying that the `generateChatBotLLM` method is correctly implemented and returns expected results based on various input codes.
- ChatBotGeneratorTest() - Constructor for class com.gophers.services.testCases.ChatBotGeneratorTest
- ChatBotGrade - Class in com.gophers.structures.grades
-
A concrete implementation of
GradeTemplatefor grading the chatbot. - ChatBotGrade(Result) - Constructor for class com.gophers.structures.grades.ChatBotGrade
-
Constructs a
ChatBotGradeinstance using the result of a test. - ChatBotPlatformGrade - Class in com.gophers.structures.grades
-
A concrete implementation of
GradeTemplatefor grading the chatbot platform. - ChatBotPlatformGrade(Result) - Constructor for class com.gophers.structures.grades.ChatBotPlatformGrade
-
Constructs a
ChatBotPlatformGradeinstance using the result of a test. - ChatBotPlatformTest - Class in com.gophers.services.testCases
-
Test suite for the ChatBotPlatform class which manages a collection of ChatBot instances.
- ChatBotPlatformTest() - Constructor for class com.gophers.services.testCases.ChatBotPlatformTest
- ChatBotSimulationGrade - Class in com.gophers.structures.grades
-
A concrete implementation of
GradeTemplatefor grading the chatbot simulation. - ChatBotSimulationGrade(Result) - Constructor for class com.gophers.structures.grades.ChatBotSimulationGrade
-
Constructs a
ChatBotSimulationGradeinstance using the result of a test. - ChatBotSimulationTest - Class in com.gophers.services.testCases
-
Test suite for the ChatBotSimulation class that verifies various aspects of the chat bot system.
- ChatBotSimulationTest() - Constructor for class com.gophers.services.testCases.ChatBotSimulationTest
- ChatBotTest - Class in com.gophers.services.testCases
-
Unit tests for the `ChatBot` class, focusing on verifying methods are correctly implemented and returns expected results based on various input codes.
- ChatBotTest() - Constructor for class com.gophers.services.testCases.ChatBotTest
- com.gophers - package com.gophers
- com.gophers.interfaces - package com.gophers.interfaces
- com.gophers.services.handlers - package com.gophers.services.handlers
- com.gophers.services.helpers - package com.gophers.services.helpers
- com.gophers.services.testCases - package com.gophers.services.testCases
- com.gophers.structures.domain - package com.gophers.structures.domain
- com.gophers.structures.factory - package com.gophers.structures.factory
- com.gophers.structures.grades - package com.gophers.structures.grades
- com.gophers.utilities - package com.gophers.utilities
- compareString(String, String) - Static method in class com.gophers.utilities.TextProcessor
-
Compares two strings by checking if the sanitized actual string contains the sanitized expected string.
- compile() - Method in interface com.gophers.interfaces.CompileCommand
-
Compiles the student submission code and returns the result of the compilation.
- compile() - Method in class com.gophers.services.helpers.JavaCompileCommand
-
Compiles all Java files in the submission directory.
- CompileCommand - Interface in com.gophers.interfaces
-
The CompileCommand interface defines a contract for compiling student submission code.
- Constants - Class in com.gophers.utilities
-
Constants class containing static final variables used across the application.
- createItem(Result, int) - Method in interface com.gophers.interfaces.Factory
-
Creates a single item based on a JUnit test result and its index.
- createItem(Result, int) - Method in class com.gophers.structures.factory.AbstractGradeFactory
-
Creates a single
Gradeobject based on the given test result and index. - createItem(Result, int) - Method in class com.gophers.structures.factory.GradeFactory
-
Creates a specific
Gradeobject based on the given index. - createItems(List<Result>) - Method in interface com.gophers.interfaces.Factory
-
Creates a list of items based on a list of JUnit test results.
- createItems(List<Result>) - Method in class com.gophers.structures.factory.AbstractGradeFactory
-
Creates a list of
Gradeobjects based on the given test results. - CRITERIA - Static variable in class com.gophers.utilities.Constants
-
Array of grading criteria categories.
E
- extractSubmissions(String) - Static method in class com.gophers.services.handlers.SubmissionExtractor
-
Extracts submissions from the given zip file and organizes them.
- extractZipEntries(InputStream, String) - Static method in class com.gophers.utilities.ZipFileExtractor
-
Extracts all entries from a ZIP input stream and saves them to a specified directory.
F
- Facade - Interface in com.gophers.interfaces
-
The Facade interface defines a method for processing student submissions.
- Factory<T> - Interface in com.gophers.interfaces
-
The Factory interface defines methods for creating items or a collection of items based on JUnit test results.
- FAILED - Static variable in class com.gophers.utilities.Constants
-
Label for failing status.
- FEEDBACK - Static variable in class com.gophers.utilities.Constants
-
Feedback label.
- feedbackMap - Variable in class com.gophers.structures.grades.GradeTemplate
-
A map that stores feedback for each test method.
- formatTestResult(String, int, int) - Static method in class com.gophers.services.helpers.GradeUtils
-
Formats a test result string.
G
- generate(AssignmentDetails) - Method in interface com.gophers.interfaces.PDF
-
Generates a PDF report based on the provided assignment details.
- generate(AssignmentDetails) - Method in class com.gophers.services.handlers.PDFGenerator
-
Generates a PDF report for the given assignment details.
- getClass(String) - Static method in class com.gophers.structures.domain.Submission
-
Retrieves a class by its name using the submission's class loader.
- getComment(int) - Static method in class com.gophers.services.helpers.GradeUtils
-
Retrieves a comment based on the total score.
- getFeedbackAsStatus(Map<String, Integer>) - Static method in class com.gophers.services.helpers.GradeUtils
-
Generates feedback statuses (Passed/Failed) for tests.
- getInstance(String) - Static method in class com.gophers.structures.domain.Submission
-
Retrieves the singleton instance of Submission.
- getMarks() - Method in interface com.gophers.interfaces.Grade
-
Retrieves the marks awarded for the assignment or task.
- getMarks() - Method in class com.gophers.structures.grades.GradeTemplate
-
Returns the marks earned by the student for the test or assignment.
- getMethod(Class<?>, String, Class<?>...) - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Helper method to get a method reference using reflection.
- getMethod(String, Class<?>...) - Method in class com.gophers.services.testCases.ChatBotTest
-
Retrieves a method from the `ChatBot` class using reflection.
- getSubmissionDirectory() - Static method in class com.gophers.structures.domain.Submission
-
Gets the directory path of the submission.
- getTestFeedback() - Method in interface com.gophers.interfaces.Grade
-
Retrieves feedback from tests as a mapping of test names to their scores.
- getTestFeedback() - Method in class com.gophers.structures.grades.GradeTemplate
-
Returns a map containing feedback for each test method.
- getTotalMarks() - Method in interface com.gophers.interfaces.Grade
-
Retrieves the total marks possible for the assignment or task.
- getTotalMarks() - Method in class com.gophers.structures.grades.GradeTemplate
-
Returns the total marks available for the assignment or test.
- getTotalMarks(int) - Static method in class com.gophers.services.helpers.GradeUtils
-
Retrieves the total marks for a specific index.
- getWeightings(String) - Static method in class com.gophers.services.handlers.GradeConfigLoader
-
Retrieves the weightings for a specific grade type.
- Grade - Interface in com.gophers.interfaces
-
The Grade interface defines methods to retrieve grading details.
- GradeConfigLoader - Class in com.gophers.services.handlers
-
The GradeConfigLoader class is responsible for loading and providing grading weightings for various grading types.
- GradeConfigLoader() - Constructor for class com.gophers.services.handlers.GradeConfigLoader
-
Default constructor for GradeConfigLoader class.
- GradeFactory - Class in com.gophers.structures.factory
-
A factory class to create specific types of
Gradeobjects based on the given index. - GradeFactory() - Constructor for class com.gophers.structures.factory.GradeFactory
- GradeTemplate - Class in com.gophers.structures.grades
-
An abstract class that implements the
Gradeinterface and provides a template for grading assignments or tests based on results. - GradeTemplate(Result, int) - Constructor for class com.gophers.structures.grades.GradeTemplate
-
Constructs a new GradeTemplate instance with the given test result and total available marks.
- GradeUtils - Class in com.gophers.services.helpers
-
Utility class for grading-related operations, including calculations and formatting.
- GradeUtils() - Constructor for class com.gophers.services.helpers.GradeUtils
- GradingFacade - Class in com.gophers.services.handlers
-
The GradingFacade class provides a high-level interface for processing student submissions, running tests, grading, and generating reports.
- GradingFacade() - Constructor for class com.gophers.services.handlers.GradingFacade
I
- instantiateChatBots() - Method in class com.gophers.services.testCases.ChatBotTest
-
Instantiates two ChatBot objects: one using the default constructor and the other using the overloaded constructor with an integer argument.
- isCompiled() - Static method in class com.gophers.structures.domain.Submission
-
Checks if the submission was successfully compiled.
J
- JavaCompileCommand - Class in com.gophers.services.helpers
-
The JavaCompileCommand class handles compiling Java files in a specific directory.
- JavaCompileCommand(String) - Constructor for class com.gophers.services.helpers.JavaCompileCommand
-
Constructs a JavaCompileCommand with the given submission directory.
L
- loadAs(InputStream) - Method in class com.gophers.utilities.Yaml
-
Loads and parses YAML data from an input stream into a nested map structure.
- loadWeightings() - Method in interface com.gophers.interfaces.MarkSchemeLoaderStrategy
-
Loads the weightings for each test case or grading component.
- loadWeightings() - Method in class com.gophers.services.helpers.MarkSchemeLoader
-
Loads the grading weightings from the YAML mark scheme file.
M
- main(String[]) - Static method in class com.gophers.App
-
The main method which serves as the entry point for the application.
- MARK_SCHEME - Static variable in class com.gophers.utilities.Constants
-
Mark scheme file name.
- MarkSchemeLoader - Class in com.gophers.services.helpers
-
The MarkSchemeLoader class loads grading weightings from a YAML file.
- MarkSchemeLoader() - Constructor for class com.gophers.services.helpers.MarkSchemeLoader
-
Default constructor for the MarkSchemeLoader class.
- MarkSchemeLoaderStrategy - Interface in com.gophers.interfaces
-
The MarkSchemeLoaderStrategy interface defines a method for loading grading weightings.
- matchString(String, String) - Static method in class com.gophers.utilities.TextProcessor
-
Compares two strings by checking if they are identical after sanitization.
O
- organizeSubmissions(String) - Static method in class com.gophers.services.helpers.SubmissionOrganizer
-
Organizes submissions in the specified output directory.
- OUTPUT_DIRECTORY - Static variable in class com.gophers.utilities.Constants
-
Directory for student submissions.
P
- PASSED - Static variable in class com.gophers.utilities.Constants
-
Label for passing status.
- PASSES_ALL_JUNIT_TESTS - Static variable in class com.gophers.utilities.Constants
-
Label for passing all JUnit tests status.
- PDF - Interface in com.gophers.interfaces
-
The PDF interface defines a method for generating a PDF report.
- PDF_EXTENSION - Static variable in class com.gophers.utilities.Constants
-
PDF file extension.
- PDFGenerator - Class in com.gophers.services.handlers
-
The PDFGenerator class generates PDF reports for assignments based on the provided assignment details.
- PDFGenerator() - Constructor for class com.gophers.services.handlers.PDFGenerator
-
Default constructor for the PDFGenerator class.
- processSubmission(String) - Method in class com.gophers.services.handlers.GradingFacade
-
Processes a single student submission by running tests, calculating grades, and preparing assignment details.
- processSubmissions(String) - Method in interface com.gophers.interfaces.Facade
-
Processes the submissions contained in the provided zip file.
- processSubmissions(String) - Method in class com.gophers.services.handlers.GradingFacade
-
Processes student submissions from a zip file.
- PROGRAM_GRADE - Static variable in class com.gophers.utilities.Constants
-
Program grading category.
- PROGRAM_GRADE_INDEX - Static variable in class com.gophers.utilities.Constants
-
Index for Program Grade in grading array.
- PROGRAM_GRADE_TOTAL_MARKS - Static variable in class com.gophers.utilities.Constants
-
Total marks for Program Grade.
- ProgramGrade - Class in com.gophers.structures.grades
-
Represents a grading structure specific to programming assignments, extending the generic
GradeTemplatewith configuration and feedback specific to the program component of a course. - ProgramGrade(Result) - Constructor for class com.gophers.structures.grades.ProgramGrade
-
Constructs a new
ProgramGradewith the specified test results. - ProgramTest - Class in com.gophers.services.testCases
-
The ProgramTest class provides a suite of tests to verify the functionality of the code, ensuring that it compiles and runs successfully.
- ProgramTest() - Constructor for class com.gophers.services.testCases.ProgramTest
-
Default constructor for the ProgramTest class.
R
- resetInstance(String) - Static method in class com.gophers.structures.domain.Submission
-
Resets the singleton instance with a new submission directory.
- resetStaticFields() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Resets static message counter in the ChatBot class to ensure consistent test conditions for each test case.
- resetStaticFields() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Resets static fields in the ChatBot class to ensure each test starts fresh.
- resetStaticFields() - Method in class com.gophers.services.testCases.ChatBotTest
-
Resets the static field `messageNumber` in the `ChatBot` class to 0.
- runAllTests() - Method in interface com.gophers.interfaces.TestRunner
-
Runs all tests and returns their results.
- runAllTests() - Method in class com.gophers.services.handlers.AssignmentTestRunner
-
Runs all predefined JUnit test cases and returns their results.
S
- setUp() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Initializes the `generator` reference to the `ChatBotGenerator` class before each test.
- setUp() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Sets up the test environment before each test.
- setUp() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Sets up the test environment before each test.
- setUp() - Method in class com.gophers.services.testCases.ChatBotTest
-
Sets up the test environment by initializing the ChatBot class, instantiating default and overloaded ChatBot instances, and preparing method references and static field resets.
- setUp() - Method in class com.gophers.services.testCases.ProgramTest
-
Sets up the test environment by redirecting the `System.out` stream to capture output generated during the tests.
- STUDENT_PERCENTAGE - Static variable in class com.gophers.utilities.Constants
-
Label for student percentage.
- STUDENT_SUBMISSIONS_DIR - Static variable in class com.gophers.utilities.Constants
-
Directory for student submissions.
- StudentDetails - Class in com.gophers.structures.domain
-
Represents details of a student derived from a submission file name.
- StudentDetails(String) - Constructor for class com.gophers.structures.domain.StudentDetails
-
Constructor to parse student details from the submission file name.
- Submission - Class in com.gophers.structures.domain
-
Singleton class representing a student's submission, including compilation status and file loading.
- SubmissionExtractor - Class in com.gophers.services.handlers
-
The SubmissionExtractor class handles extracting student submissions from a zip file.
- SubmissionExtractor() - Constructor for class com.gophers.services.handlers.SubmissionExtractor
-
Default constructor for the SubmissionExtractor class.
- SubmissionOrganizer - Class in com.gophers.services.helpers
-
The SubmissionOrganizer class organizes student submissions by unzipping files and preparing directories.
- SubmissionOrganizer() - Constructor for class com.gophers.services.helpers.SubmissionOrganizer
-
Default constructor for the SubmissionOrganizer class.
- SUBMISSIONS - Static variable in class com.gophers.utilities.Constants
-
Submission ZIP file name.
T
- tearDown() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Cleans up the `generator` reference by setting it to null after each test.
- tearDown() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Restores the original System.out after each test.
- tearDown() - Method in class com.gophers.services.testCases.ProgramTest
-
Restores the original `System.out` stream after each test has run.
- TEMPLATE_PATH - Static variable in class com.gophers.utilities.Constants
-
PDF template path.
- testAddChatBotAddsFirstBot() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests adding the first ChatBot to the platform with LLM code 1.
- testAddChatBotAddsSecondBot() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests adding a second ChatBot to the platform with LLM code 2.
- testAddChatBotAfterLimitReached() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Verifies that adding a new ChatBot fails when the message limit is reached.
- testAddChatBotIncrementsBotCount() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Verifies that the bot count increments correctly as new bots are added.
- testAddChatBotReachesLimit() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that the message limit is properly enforced across all bots.
- testAllChatBotModelsPresent() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Tests if all required chat bot models are present in the simulation.
- testAtLeastOneInteractionOccurred() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Verifies that at least one chat bot interaction occurred.
- testBotsCollectionEmptyInitially() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Confirms that the bots collection is empty when a new ChatBotPlatform instance is created.
- testBotsCollectionInitialized() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that the bots collection is properly initialized when creating a new ChatBotPlatform instance.
- testBotsCollectionIsPrivate() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Verifies that the bots collection field is declared as private to ensure proper encapsulation.
- testChatBotNameField() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `chatBotName` field exists, is private, and is of type `String`.
- testChatBotPlatformBotsCollectionInitialized() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Verifies that the bots collection is initialized as an ArrayList
when creating a new ChatBotPlatform instance. - testChatBotPlatformConstructor() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests the successful creation of a ChatBotPlatform instance.
- testChatBotPlatformInitialization() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Verifies that ChatBotPlatform is properly initialized in the main method.
- testChatBotsSectionPresent() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Verifies that the "Your ChatBots" section is present in the output.
- testCompiles() - Method in class com.gophers.services.testCases.ProgramTest
-
Tests that the `compile` method of the `JavaCompileCommand` correctly compiles the submission without errors.
- testDefaultConstructor_CorrectName() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the default constructor assigns the correct default name, "ChatGPT-3.5", to the `ChatBot` instance.
- testDefaultConstructor_InitialResponseCount() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the default constructor initializes the `numResponsesGenerated` field to 0.
- testDefaultConstructor_ObjectNotNull() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the default constructor of the `ChatBot` class creates a non-null instance.
- testFinalSummaryNotEmpty() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Verifies that the final summary section is not empty.
- testFinalSummaryStatistics() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Tests if the final summary contains all required statistics.
- testGenerateChatBotLLM_ReturnsBardForCode3() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests that `generateChatBotLLM` returns "Bard" for input code 3.
- testGenerateChatBotLLM_ReturnsChatGPT35ForInvalidCodes() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests that `generateChatBotLLM` returns "ChatGPT-3.5" for invalid codes.
- testGenerateChatBotLLM_ReturnsClaudeForCode4() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests that `generateChatBotLLM` returns "Claude" for input code 4.
- testGenerateChatBotLLM_ReturnsLLaMaForCode1() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests that `generateChatBotLLM` returns "LLaMa" for input code 1.
- testGenerateChatBotLLM_ReturnsMistral7BForCode2() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests that `generateChatBotLLM` returns "Mistral7B" for input code 2.
- testGenerateChatBotLLM_ReturnsSolarForCode5() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests that `generateChatBotLLM` returns "Solar" for input code 5.
- testGenerateResponse_ContainsUniqueMessageNumber() - Method in class com.gophers.services.testCases.ChatBotTest
-
Verifies that the `generateResponse` method generates unique message numbers for each response.
- testGenerateResponse_IncrementsCounters() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `generateResponse` method increments the response counters (both `numResponsesGenerated` and `totalNumResponsesGenerated`) when invoked.
- testGenerateResponse_isPrivate() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `generateResponse` method is private.
- testGenerateResponse_ReturnsCorrectStringFormat() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `generateResponse` method returns a response with the correct format, including the message number and generated text.
- testGenerateResponse_ReturnsString() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `generateResponse` method returns a String.
- testGetChatBotListContainsBotNames() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that getChatBotList output contains correct bot names.
- testGetChatBotListContainsBotNumbers() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that getChatBotList output contains correct bot numbers.
- testGetChatBotListContainsMessageCountPerBot() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that getChatBotList correctly reports message count per bot.
- testGetChatBotListContainsTotalMessagesRemaining() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that getChatBotList correctly reports remaining available messages.
- testGetChatBotListContainsTotalMessagesUsed() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests that getChatBotList correctly reports total messages used across all bots.
- testGetChatBotName() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `getChatBotName` method returns the correct names for the default and bard ChatBot instances.
- testGetTotalNumMessagesRemaining_IsStatic() - Method in class com.gophers.services.testCases.ChatBotTest
-
Verifies that the `getTotalNumMessagesRemaining` method is static.
- testGetTotalNumMessagesRemaining_ReachesZero() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `getTotalNumMessagesRemaining` method correctly reaches zero when the message limit is reached.
- testGetTotalNumMessagesRemaining_ReturnsCorrectValue() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `getTotalNumMessagesRemaining` method correctly calculates the remaining messages based on the message limit and responses generated.
- testGetTotalNumResponsesGenerated_IsStatic() - Method in class com.gophers.services.testCases.ChatBotTest
-
Verifies that the `getTotalNumResponsesGenerated` method is static.
- testGetTotalNumResponsesGenerated_ReturnsTotalMessages() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `getTotalNumResponsesGenerated` method correctly returns the total number of messages generated, after multiple responses.
- testInitialSummaryStatistics() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Tests if the initial summary statistics are correctly displayed.
- testInteractWithBotAfterLimitReached() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests interaction with invalid out-of-range bot index.
- testInteractWithBotInvalidNegativeIndex() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests interaction with invalid negative bot index.
- testInteractWithValidBot() - Method in class com.gophers.services.testCases.ChatBotPlatformTest
-
Tests successful interaction with a valid bot index.
- testInvalidBotNumberResponsePresent() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Verifies that incorrect bot number errors are handled and displayed.
- testLimitReached_InitiallyFalse() - Method in class com.gophers.services.testCases.ChatBotTest
-
Verifies that the `limitReached` method returns false initially (before the limit is reached).
- testLimitReached_IsStatic() - Method in class com.gophers.services.testCases.ChatBotTest
-
Verifies that the `limitReached` method is static.
- testLimitReached_TrueWhenLimitReached() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `limitReached` method returns true when the message limit is reached.
- testMainMethodStartsWithHelloWorld() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Tests if the main method correctly outputs "Hello World!" at the start.
- testMarks - Variable in class com.gophers.structures.grades.GradeTemplate
-
A map that stores the marks assigned to each test method.
- testMessageLimitField_EqualsTen() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `messageLimit` field has a value of 10.
- testMessageLimitField_Exists() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `messageLimit` field exists in the `ChatBot` class.
- testMessageLimitField_StaticPrivateInteger() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `messageLimit` field is private, static, and of type `int`.
- testMessageNumberField_Exists() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `messageNumber` field exists, is private, and is static, with an initial value of 0.
- testMessageNumberField_PrivateStaticEqualsZero() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `messageNumber` field is private, static, and has an initial value of 0.
- testMessageNumberFormatInBotResponses() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Tests if bot responses follow the correct message number format "(Message#...)".
- testMethodIsStatic_generateChatBotLLM() - Method in class com.gophers.services.testCases.ChatBotGeneratorTest
-
Tests if the `generateChatBotLLM` method is static and successfully returns a non-null result when invoked with a valid input.
- testNumResponsesGenerated() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `numResponsesGenerated` field is correctly initialized to 0 and increments when the bot is prompted with a message.
- testNumResponsesGeneratedField() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `numResponsesGenerated` field exists, is private, and is of type `int`.
- testOverloadedConstructor_InvalidLLMCode() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the overloaded constructor assigns the default name "ChatGPT-3.5" when an invalid LLM code is provided.
- testOverloadedConstructor_ObjectNotNull() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the overloaded constructor of the `ChatBot` class creates a non-null instance.
- testOverloadedConstructor_ValidLLMCodes() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the overloaded constructor correctly assigns valid names based on the provided LLM code (e.g., "LLaMa", "Mistral7B", "Bard", "Solar").
- TestRunner<T> - Interface in com.gophers.interfaces
-
The TestRunner interface defines a method for executing test cases.
- testRuns() - Method in class com.gophers.services.testCases.ProgramTest
-
Tests that the `main` method of the `ChatBotSimulation` class runs successfully.
- testSimulationPerformsExactlyFifteenInteractions() - Method in class com.gophers.services.testCases.ChatBotSimulationTest
-
Tests if the simulation performs exactly 15 interactions.
- testToString_BotNameHeaderExists() - Method in class com.gophers.services.testCases.ChatBotTest
-
Tests that the `toString` method includes the ChatBot's name as a header.
- TextProcessor - Class in com.gophers.utilities
-
Utility class for processing and comparing text strings.
- TextProcessor() - Constructor for class com.gophers.utilities.TextProcessor
-
Default constructor for TextProcessor class.
- toPDFData() - Method in class com.gophers.structures.domain.AssignmentDetails
-
Converts the assignment details into a map format suitable for PDF generation.
- toPDFData() - Method in class com.gophers.structures.domain.AssignmentGrade
-
Converts the grade details into a map format suitable for PDF generation.
- toPDFData() - Method in class com.gophers.structures.domain.StudentDetails
-
Converts the student details into a map format suitable for PDF generation.
- toString() - Method in class com.gophers.structures.domain.AssignmentDetails
-
Provides a string representation of the assignment details.
- toString() - Method in class com.gophers.structures.domain.AssignmentGrade
-
Provides a detailed string representation of grades and feedback.
- toString() - Method in class com.gophers.structures.domain.StudentDetails
-
Provides a string representation of the student details.
- TOTAL - Static variable in class com.gophers.utilities.Constants
-
Label for total score.
Y
- Yaml - Class in com.gophers.utilities
-
Utility class for parsing a simple YAML structure from an input stream.
- Yaml() - Constructor for class com.gophers.utilities.Yaml
-
Default constructor for Yaml class.
Z
- ZIP_EXTENSION - Static variable in class com.gophers.utilities.Constants
-
ZIP file extension.
- ZipFileExtractor - Class in com.gophers.utilities
-
Utility class for extracting files from a ZIP archive.
- ZipFileExtractor() - Constructor for class com.gophers.utilities.ZipFileExtractor
-
Default constructor for ZipFileExtractor class.
All Classes and Interfaces|All Packages|Constant Field Values