The following table contains the numerous third party libaries, API and documentation consulted during the course of developing TuteeTally.
| Name | Description |
|---|---|
| AddressBook-Level 3 (AB-3) | Tuteetally is adapted from AB-3 that is created by the SE-EDU initiative. |
| Gradle | Used for build automation |
| Jackson | Used for parsing JSON files. |
| JavaFX | Used in rendering the GUI. |
| JUnit5 | Used for testing the codebase. |
| Oracle Java Docs | Used for understanding the default Java API |
Refer to the guide Setting up and getting started.
The Architecture Diagram given above explains the high-level design of the App.
Given below is a quick overview of main components and how they interact with each other.
Main components of the architecture
Main (consisting of classes Main and MainApp) is in charge of the app launch and shut down.
The bulk of the app's work is done by the following four components:
UI: The UI of the App.Logic: The command executor.Model: Holds the data of the App in memory.Storage: Reads data from, and writes data to, the hard disk.Commons represents a collection of classes used by multiple other components.
How the architecture components interact with each other
The Sequence Diagram below shows how the components interact with each other for the scenario where the user issues the command delete 1.
Each of the four main components (also shown in the diagram above),
interface with the same name as the Component.{Component Name}Manager class (which follows the corresponding API interface mentioned in the previous point.For example, the Logic component defines its API in the Logic.java interface and implements its functionality using the LogicManager.java class which follows the Logic interface. Other components interact with a given component through its interface rather than the concrete class (reason: to prevent outside component's being coupled to the implementation of a component), as illustrated in the (partial) class diagram below.
The sections below give more details of each component.
The API of this component is specified in Ui.java
The UI consists of a MainWindow that is made up of parts e.g.CommandBox, ResultDisplay, PersonListPanel, StatusBarFooter etc. All these, including the MainWindow, inherit from the abstract UiPart class which captures the commonalities between classes that represent parts of the visible GUI.
The UI component uses the JavaFx UI framework. The layout of these UI parts are defined in matching .fxml files that are in the src/main/resources/view folder. For example, the layout of the MainWindow is specified in MainWindow.fxml
The UI component,
Logic component.Model data so that the UI can be updated with the modified data.Logic component, because the UI relies on the Logic to execute commands.Model component, as it displays Person object residing in the Model.API : Logic.java
Here's a (partial) class diagram of the Logic component:
The sequence diagram below illustrates the interactions within the Logic component, taking execute("delete 1") API call as an example.
Note: The lifeline for DeleteCommandParser should end at the destroy marker (X) but due to a limitation of PlantUML, the lifeline continues till the end of diagram.
How the Logic component works:
Logic is called upon to execute a command, it is passed to an AddressBookParser object which in turn creates a parser that matches the command (e.g., DeleteCommandParser) and uses it to parse the command.Command object (more precisely, an object of one of its subclasses e.g., DeleteCommand) which is executed by the LogicManager.Model when it is executed (e.g. to delete a person).Model) to achieve.CommandResult object which is returned back from Logic.Here are the other classes in Logic (omitted from the class diagram above) that are used for parsing a user command:
How the parsing works:
AddressBookParser class creates an XYZCommandParser (XYZ is a placeholder for the specific command name e.g., AddCommandParser) which uses the other classes shown above to parse the user command and create a XYZCommand object (e.g., AddCommand) which the AddressBookParser returns back as a Command object.XYZCommandParser classes (e.g., AddCommandParser, DeleteCommandParser, ...) inherit from the Parser interface so that they can be treated similarly where possible e.g, during testing.API : Model.java
The Model component,
Person objects (which are contained in a UniquePersonList object).Person objects (e.g., results of a search query) as a separate filtered list which is exposed to outsiders as an unmodifiable ObservableList<Person> that can be 'observed' e.g. the UI can be bound to this list so that the UI automatically updates when the data in the list change.UserPref object that represents the user’s preferences. This is exposed to the outside as a ReadOnlyUserPref objects.Model represents data entities of the domain, they should make sense on their own without depending on other components)Note: An alternative (arguably, a more OOP) model is given below. It has a Tag list and a AllExamList in the AddressBook, which Person references.
This allows AddressBook to only require one Tag object per unique tag and correspondingly one Exam object per unique exam, instead of each Person needing their own Tag and Exam objects.
API : Storage.java
The Storage component,
AddressBookStorage and UserPrefStorage, which means it can be treated as either one (if only the functionality of only one is needed).Model component (because the Storage component's job is to save/retrieve objects that belong to the Model)The Commons package in the seedu.address contains classes that are shared across various components of the application.
This ensures that common functionalities are easily accessible across the system and thus promote code reuse. This also simplifies the task of
updating or enhancing functionality in one place.
Below is a breakdown of the main categories within this package:
Core
This category includes essential classes that are central to the application's operation:
Config: Manages configuration settings of the application, such as file paths and application-level settings. It helps in maintaining a flexible codebase that can adapt to different deployment environments without requiring code changes.
GuiSettings: Holds GUI configuration details which can be serialized for persistence across sessions. This class includes settings such as window size, window position, and other UI-related preferences that enhance the user's experience by maintaining a consistent application state.
LogsCenter: Provides a central management facility for logging messages throughout the application. It configures the logging libraries and specifies the uniform format and logging levels, making the debugging process and monitoring of runtime behaviors more systematic.
Exceptions
This category defines custom exceptions that handle specific error situations unique to the application:
Util
Utility classes that provide helper functions and shared functionalities used by multiple components:
This section of the developer guide covers the functionalities provided for retrieving student related details. This includes finding a student with a specific id or name, adding and checking past logs of a student, and retrieving summary statistics of all students.
This section describes some noteworthy details on how certain features are implemented.
The view command is a feature that allows the user to find and retrieve details related to student(s).
It consists of 4 variants
view -all : shows all students currently recorded in TuteeTally.view -name: shows all students recorded with their name, or part of their name matching the input.view -id : finds (unique) student associated with the unique id, and opens the log window.view -stats : opens a popup for summary statistics with regard to all students.The checking of which variant of view is triggered is detected based on the presence of prefixes in ViewCommandParser#parse.
Only one prefix is allowed to be in the command format at once. If more than one prefix is present, the user will receive an error message to remind them only one prefix is allowed.
Aspect: What to do when encountering more than 1 prefix:
Alternative 1 (current choice): Throws an error and prompts the user that only 1 prefix is allowed
Alternative 2: Executes all variants given in the command.
Step 1: User first calls view -stats. The input is passed into AddressBookParser which instantiates a ViewCommandParser instance.
The ViewCommandParser uses ViewCommandParser#arePrefixesPresent to check for presence of the -add prefix.
Step 2: The check for -add prefix returns false, and a similar check routine for prefixes is carried out for -name and -id
Step 3: The check for -stats return true, and a StatCommmand instance is returned to the LogicManager.
The LogicManager then executes StatCommand which returns a CommandResult with the isStatsCommand set to true.
This feature allows the user to see all current students stored in the app.
The mechanism is similar to list feature in AddressBook. Parser checks for -all flag using the sequence above and execute showing the entire list of students.
The feature can return user to the whole list after user uses view -id/view -name function to see specific student. A list of students will only be displayed if there is at least 1 student added to TuteeTally.
Below is a sequence diagram of how view all interacts with multiple classes.
Aspect: How view all executes:
Alternative 1 (current choice): In a view command class with view -id/-name.
Alternative 2: Separate classes for view -all and other view commands
For the prefixes -name and -id, a filtered list containing the search results will be returned.
Both variants utilize a similar logic to of passing in a prefix to model#updateFilteredPersonList to adjust the entries displayed by the GUI.
This feature allows the user to find all students with at least one matching keyword in their name.
This mechanism is similar to the find command in AddressBook. Parser checks for the -name flag using the sequence above and places the keywords into a NameContainsKeywordsPredicate.
This command will display any student with at least one keyword fully matching with a part of the name. (e.g. John keyword will display John Lim but not Joh Ng). If there are no such students, an empty list will be displayed.
Aspect: How view name finds students to display:
Alternative 1 (current choice): Returns students only if a part of their name fully matches a keyword.
Alternative 2: Returns students as long as their name contains all the characters of any keyword, and they appear in the right order.
John, but has to first scroll through Jo Jon and even James Ong)This feature allows the user to search for a specific student with the corresponding ID. The list of all logs of the target student will also be displayed in a popup.
Parser checks for the -id flag using the sequence above and checks if the id is a valid id. Then, it passes the id into a IsSameIdPredicate to filter for the student.
This command will display the student with the matching id, and open a popup containing their log information. If such a student does not exist, a prompt will be given to the user to retry.
Below is the activity diagram of how view -id executes.
This feature supports the viewing of summary statistics, it currently shows the
Currently, the Summary Stats Window can be accessed in 3 ways.
view -stats in the command box.F2 key on your keyboard.Stats dropdown menu on the top of TuteeTally and accessing the Summary stats from there.The Summary Stats window fetches the necessary stats from logic, which fetches the necessary data to update the statistics.
A Sequence Diagram can be seen below to show the interaction between the different class once "view -stats" is called:
The frame below shows how the logic class gets the command result.
The CommandResult will then be returned to the UIManager and a SummaryStatsWindow Instance will be created, the Sequence diagram below shows how
it get the SummaryStats from Logicthe respective frame will show SummaryStatsWindow::updateSummaryStats clearly.
Aspect: Where to store the SummaryStats:
Alternative 1 (current choice): The Summary Stats is stored in the UniquePersonsList and is updated everytime their respective field get updated.
Alternative 2: Compute statistics on demand
User Experience
This command is has a similar mechanism to the add feature, but targets a specific student instead.
This feature enables tutors to log session specific details for record to a specific student. Each log entry includes the total hours of the lesson, lesson content, the learning style of the student, as well as any additional notes. The date of the log entry is recorded as the system time when the user added the log.
The parser first checks if the there exists a student with the ID specified using the -id in current records. Then, the app adds the log entry to the end of the log list attached as a field to the student.
Below is the sequence diagram of how the log command interacts with multiple classes.
Aspect: Whether all fields in log should be compulsory
Aspect: Restrictions on log feature fields' contents
45 minutes for hours instead of restricting to an integer. Allowing empty fields partially mitigates aforementioned con of being forced to enter content even if the user deems it unnecessary, all while still providing a reminder to possibly important fields.This guide provides a concise overview of the student details retrieval system, designed to assist developers in understanding and utilizing these features effectively. For further details or clarification, please contact the development team.
This section of the developer guide covers the functionalities provided for managing student payments. It includes adding payments, marking payments as paid, and resetting payment statuses for students. These features are integral to maintaining accurate and up-to-date financial records for each student.
The AddPaymentCommand enables users to add payment records to students by specifying a unique student ID and the payment amount.
-addpayment flag, followed by the student's uniqueId and the amount.
The MarkPaymentCommand allows marking a student's payment as completed. This is typically used once a payment has been processed or received.
-markpayment flag, followed by the student's uniqueId.
This feature enables the system to reset the payment status of students, which is useful when a student has fully paid their dues or when adjustments to their payment records are needed.
-resetpayments flag and the student's uniqueId is issued by the user.
This guide provides a concise overview of the payment management functionalities within the system, designed to assist developers in understanding and utilizing these features effectively. For further details or clarification, please contact the development team.
This section covers the exam management system including add exam and delete exam.
Add Exam: Allows the addition of exam records to student accounts using unique identifiers. Delete Exam: Enables the deletion of exam records from student accounts.
The AddExamCommand enables users to add exam records to students by specifying a unique student ID, exam name, exam date, and optionally, exam time.
Aspect: Compulsory Fields
Alternative 1: Both Date and Time are Compulsory
Alternative 2 (current choice): Only Date is Compulsory, Time is Optional
Aspect: Restrictions on Date and Time
Alternative 1: Allow Past Dates and Times
Alternative 2 (current choice): Allow Current Date with Past Time
Alternative 3: Do Not Allow Past Dates or Times
Aspect: Time Slot Conflicts
Alternative 1: Allow Exams at the Same Time Slot
Alternative 2: Does Not Allow Exams at the Same Time Slot
The DeleteExamCommand allows deleting a specific exam record from a student.
The user inputs a command with the -deleteexam flag, followed by the student's uniqueId, exam name, exam date, and optionally, exam time. The system identifies the corresponding student and the specified exam. The system removes the specified exam record from the student and AllExamsList.
These descriptions provide an overview of the exam management features, their purposes, and how they are implemented in the system. They also include sequence diagrams illustrating the interactions between the user and the system for each feature. For further details or clarification, please contact the development team.
Target user profile:
Value proposition:
Priorities: High (must have) - * * *, Medium (nice to have) - * *, Low (unlikely to have) - *
| Priority | As a … | I want to … | So that I can… |
|---|---|---|---|
* * * | Tutor | add a student | track the details of the student |
* * * | Tutor | view student details summary on main page | get a brief idea of the student while navigating the list |
* * * | Tutor | delete a person | remove entries that I no longer need |
* * * | Tutor | view single students detail | see the individual detail for a single student |
* * * | Tutor | view total number of students | check if I have space for more students |
* * * | Tutor | track my payments | won't miss out on any payments |
* * * | Tutor | track my students' exams | personalise and plan better for lessons |
** | Tutor | log the lessons of a student | analyse past lessons when planning |
* | Tutor | filter students by their subjects | manage my students better |
[!NOTE] For all use cases below, the System is
TuteeTallyand the Actor is theuser, unless specified otherwise
Use case: Add a Student
MSS (Main Success Story)
User initiates the command to add a student by providing the student's name, address, contact number, subject, and level.
TuteeTally processes the provided information, adds the student particulars into the system, and assigns a unique ID to the student.
TuteeTally displays a confirmation message along with the details of the newly added student at the top of the list.
Use case ends.
Extensions
1a. User inputs the command in an incorrect format.
Use case ends.
1b. User enters a name that already exists in TuteeTally.
Use case resumes at step 2.
1c. User omits a required field in the command.
Use case ends.
Use case: View Student Detail
MSS
User requests to view details of students either by listing all or searching by name or ID.
TuteeTally retrieves and shows the relevant student details based on the request.
TuteeTally opens a popup and shows the past log entries of the student.
Use case ends.
Extensions
2a. The requested student does not exist or the list is empty.
Use case ends.
2b. User inputs an incorrect command format for viewing details.
Use case ends.
Use case: View Summary Statistics
MSS
User requests to view summary statistics of students.
TuteeTally processes the request and displays the total number of students along with other relevant statistics.
Use case ends.
Extensions
2a. There is an error in processing the request.
Use case ends.
Use case: Delete a Student
MSS
User requests to list Student
TuteeTally shows a list of Student
User requests to delete a specific Student in the list
TuteeTally deletes the Student
Use case ends.
Extensions
2a. The list is empty.
Use case ends.
3a. The given index is invalid.
3a1. TuteeTally shows an error message.
Use case resumes at step 2.
Use case: Add Payment
MSS (Main Success Story)
The user selects the option to add a payment.
The system prompts the user to enter the student's unique ID and the payment amount.
The user enters the required information and submits the command.
The system validates the information and confirms the student's account exists.
The system adds the payment to the student's account and updates the balance.
The system notifies the user that the payment has been successfully added.
Use case ends.
Extensions
1a. The user enters an invalid student ID.
Use case resumes at step 2.
2a. The user enters an invalid payment amount.
Use case resumes at step 3.
Use case: Mark Payment
MSS (Main Success Story)
The user selects the option to mark a payment as complete.
The system prompts the user to enter the student's unique ID and details of the payment to be marked as complete.
The user enters the required information and submits the command.
The system validates the information and confirms the student's account and pending payment exist.
The system marks the specified payment as complete and updates the account status.
The system notifies the user that the payment has been successfully marked as complete.
Use case ends.
Extensions
1a. The user enters an invalid student ID.
1a1. The system displays an error message and prompts the user to re-enter the student ID.
Use case resumes at step 2.
2a. The user enters an invalid payment amount.
2a1. The system displays an error message and prompts the user to re-enter the payment amount.
Use case resumes at step 3.
3a. There are no outstanding payments for the student.
3a1. The system informs the user there are no payments to mark as complete.
Use case ends.
Use case: Add Exam
MSS (Main Success Story)
The user selects the option to add an exam.
The system prompts the user to enter the student's unique ID, exam name, exam date, and optional exam time.
The user enters the required information and submits the command.
The system validates the information and confirms the student exists with student ID.
The system adds the exam to the student.
The system notifies the user that the exam has been successfully added.
Use case ends.
Extensions
1a. The user enters an invalid student ID.
1a1. The system displays an error message and prompts the user to re-enter the student ID.
Use case resumes at step 2.
2a. The user enters an invalid exam date or time.
2a1. The system displays an error message and prompts the user to re-enter the exam date or time in the command.
Use case resumes at step 3.
Use case: Delete Exam
MSS (Main Success Story)
The user selects the option to delete an exam.
The system prompts the user to enter the student's unique ID, exam name, exam date, and optional exam time.
The user enters the required information and submits the command.
The system validates the information and confirms the student exists and the specified exam exist.
The system removes the exam from the student.
The system notifies the user that the exam has been successfully deleted.
Use case ends.
Extensions
1a. The user enters an invalid student ID.
1a1. The system displays an error message and prompts the user to re-enter the student ID.
Use case resumes at step 2.
2a. The user enters incorrect exam details.
2a1. The system displays an error message and prompts the user to re-enter the exam details.
Use case resumes at step 3.
Team size: 4
11 to support JavaFx.Given below are instructions to test the app manually.
Note: These instructions only provide a starting point for testers to work on; testers are expected to do more exploratory testing.
list or view -all command. Multiple persons in the list.delete 000001 Expected: Contact with the ID #000001 is deleted from the list. Details of the deleted contact shown in the status message. Timestamp in the status bar is updated.delete 000000 Expected: No person is deleted. Error details shown in the status message. Status bar remains the same.delete, delete x, ... (where x is larger than the list size)
Expected: Similar to previous.addpaymentID. This command allows for specifying the payment amount either as a numerical value or as a text string for more descriptive purposes.ID must exist within the system.addpayment -id ID -amount 100.00 ID. The system confirms the addition with a success message and updates the student's payment history accordingly.markpaymentID must exist.markpayment -id ID -payment PAYMENT_AMOUNT PAYMENT_AMOUNT for the student ID is marked as complete. The system updates the payment status and provides a confirmation message.ID or PAYMENT_AMOUNT is provided, the system will return an error message indicating the issue and suggesting corrective actions.ID and PAYMENT_AMOUNT) are correctly entered to avoid discrepancies or errors in payment processing.resetpaymentsID. This command is used when a student's payment record needs to be cleared, typically after all dues have been settled or in case of adjustments.ID must exist.resetpayments -id ID ID are reset. The system confirms the reset with a success message, indicating that the student's payment history is now cleared.ID is provided, the system will return an error message indicating that the student could not be found.resetpayments command with caution, as it will clear all payment records for the specified student, potentially impacting their payment record.ID to avoid unintentional resets of payment information for the wrong student.addexamID. This command allows for specifying the exam name, exam date, and optionally, exam time.ID must exist within the system.addexam -id ID -examname EXAM_NAME -date EXAM_DATE [-time EXAM_TIME]ID. The system confirms the addition with a success message and updates the student's exam records accordingly.deleteexamID, exam name, exam date, and optionally, exam time.ID must exist and have the specified exam recorded.deleteexam -id ID -examname EXAM_NAME -date EXAM_DATE [-time EXAM_TIME]ID. The system confirms the deletion with a success message, and the student's exam records are updated accordingly.ID is provided, the system will return an error message indicating the issue and suggesting corrective actions.Always ensure that the unique id, exam name, and date are correctly entered to avoid discrepancies or errors in exam management. These commands are designed to interact seamlessly with the system's exam management module, ensuring accurate tracking and reporting of student exam records.