Table of Contents


Acknowledgements

This project, ABCLI, builds on the Address Book Level 3 (AB3) project, originally developed by the SE-EDU initiative. We extend our heartfelt thanks to the AB3 developers for their foundational work, which has greatly influenced the structure and functionality of ABCLI.

We would also like to express our gratitude to the creators of the following resources, libraries, and tools that were pivotal in the development of ABCLI:

The contributions of these resources and their developers were indispensable in bringing ABCLI to fruition, and we deeply value their impact on our work.


Setting up, getting started

Refer to the guide Setting up and getting started.


Design

:bulb: Tip: The .puml files used to create diagrams in this document docs/diagrams folder. Refer to the PlantUML Tutorial at se-edu/guides to learn how to create and edit diagrams.

Architecture

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.

  • At app launch, it initializes the other components in the correct sequence, and connects them up with each other.
  • At shut down, it shuts down the other components and invokes cleanup methods where necessary.

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),

  • defines its API in an interface with the same name as the Component.
  • implements its functionality using a concrete {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.

UI component

The API of this component is specified in Ui.java

Structure of the UI Component

The UI consists of a MainWindow that is made up of parts e.g.CommandBox, ResultDisplay, BuyerListPanel, 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,

  • executes user commands using the Logic component.
  • listens for changes to Model data so that the UI can be updated with the modified data.
  • keeps a reference to the Logic component, because the UI relies on the Logic to execute commands.
  • depends on some classes in the Model component, as it displays Buyer, MeetUp or Property object residing in the Model.

Logic component

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.

Interactions Inside the Logic Component for the `delete 1` Command

:information_source: 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:

  1. When Logic is called upon to execute a command, it is passed to the AbcliParser class.
  2. The AbcliParser class then creates either a BuyerCommandParser, MeetUpCommandParser, or PropertyCommandParser according to its currentMode.
  3. The created CommandParser then creates another parser that matches the command (e.g., DeleteCommandParser) and uses it to parse the command. The type of parser created here is dependent on the CommandParser created in step 2, e.g. a MeetUpCommandParser will create a DeleteCommandParser for the MeetUp class, while a BuyerCommandParser will create a DeleteCommandParser for the Buyer class.
  4. This results in a Command object (more precisely, an object of one of its subclasses e.g., DeleteCommand) which is executed by the LogicManager.
  5. The command can communicate with the Model when it is executed (e.g. to delete a buyer).
    Note that although this is shown as a single step in the diagram above (for simplicity), in the code it can take several interactions (between the command object and the Model) to achieve.
  6. The result of the command execution is encapsulated as a 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:

  • When called upon to parse a user command, the AbcliParser class creates a BMPCommandParser (BMP is a placeholder for the different mode of parsers, either a BuyerCommandParser, MeetUpCommandParser, or PropertyCommandParser). The created BMPCommandParser then 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 an XYZCommand object (e.g., AddCommand) which the AbcliParser returns back as a Command object.
  • All XYZCommandParser classes (e.g., AddCommandParser, DeleteCommandParser, …) inherit from the Parser interface so that they can be treated similarly where possible e.g. during testing.
  • All BMPCommandParser classes (BuyerCommandParser, MeetUpCommandParser, and PropertyCommandParser) extends the CommandParser class so that all of them have access to general commands e.g. HelpCommand, Exit Command.

Model component

:information_source: Note: This model class diagram is simplified for readability. The implementation of the Buyer, MeetUp and Property models are given below.

The Model component,

  • stores the buyer list data i.e., all Buyer objects (which are contained in a UniqueBuyerList object).
  • stores the meet-up list data i.e. all MeetUp objects (which are contained in a UniqueMeetUpList object).
  • stores the property list data i.e. all Property objects (which are contained in a UniquePropertyList object).
  • stores the currently ‘selected’ Buyer objects (e.g., results of a search query) as a separate filtered list which is exposed to outsiders as an unmodifiable ObservableList<Buyer> 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.
  • stores the currently ‘selected’ MeetUp and Property objects in a similar fashion to the currently ‘selected’ Buyer objects.
  • stores a UserPref object that represents the user’s preferences. This is exposed to the outside as a ReadOnlyUserPref objects.
  • does not depend on any of the other three components (as the Model represents data entities of the domain, they should make sense on their own without depending on other components)

Storage component

API : Storage.java

The Storage component,

  • can save buyer list data, meetup list data, property list data, and user preference data in JSON format, and read them back into corresponding objects.
  • inherits from BuyerListStorage, MeetUpListStorage, PropertyListStorage, and UserPrefStorage, which means it can be treated as any of them (if only the functionality of only one is needed).
  • depends on some classes in the Model component (because the Storage component’s job is to save/retrieve objects that belong to the Model)

Common classes

Classes used by multiple components are in the seedu.budget.commons package.


Implementation

This section describes some noteworthy details on how certain features are implemented.

Parser Mode Switching

Implementation

User inputs are parsed through AbcliParser to create executable Command objects. The parsing done by AbcliParser is determined by its mode of parsing, which is either the Buyer mode, MeetUp mode, or Property mode. For example, in the Buyer mode, AbcliParser will create a BuyerCommandParser object to parse the input, and create a command that is of type Buyer.

The mode of AbcliParser can be switched by executing a SwitchParserModeCommand. An example of switching to the MeetUp mode:

  1. User inputs switch m, which is then passed to the AbcliParser class.
  2. The AbcliParser class then creates either a BuyerCommandParser, MeetUpCommandParser, or PropertyCommandParser according to its currentMode. (The default current mode is set to Buyer mode, and the type of CommandParser created here does not matter since all of them handle SwitchParserModeCommand the same way).
  3. The created CommandParser then creates a SwitchParserModeCommandParser and uses it to parse the command.
  4. This results in a SwitchParserModeCommand with the mode ParserMode.MEETUP which is executed by the LogicManager.
  5. The SwitchParserModeCommand then switches the currentMode of AbcliParser to ParserMode.MEETUP when executed. The currentMode will affect the type of CommandParser that will be created for future parses (in step 2).
  6. The result of the command execution is encapsulated as a CommandResult object which is returned back from Logic.

The diagram below shows the activity diagram for a user wanting to delete the first MeetUp in his MeetUpList:


Documentation, logging, testing, configuration, dev-ops


Appendix: Product Details

Product scope

Target user profile:

A real estate agent who…

  • has a need to manage a significant number of client contacts
  • frequently needs to track client information such as their budget
  • hopes to schedule and manage appointments with the clients
  • hopes to ensure smooth communication with clients by sending updates on listings and appointment reminders
  • prefers desktop apps over other types
  • can type fast
  • prefers typing to mouse interactions
  • is reasonably comfortable using CLI apps

Value proposition: Using CLI to streamline management of client contacts and communications will make it more efficient than a typical mouse/GUI driven app

User stories

Priorities: High (must have) - * * *, Medium (nice to have) - * *, Low (unlikely to have) - *

Priority As a …​ I want to …​ So that I can…​
* * * new user see usage instructions refer to instructions when I forget how to use the App
* * * user add a new client keep track of their information
* * * user delete a client remove entries that I no longer need
* * * user find a client by name locate details of clients without having to go through the entire list
* * * user categorize clients into buyers and properties (sellers) easily manage different client types
* * * user filter clients by name easily locate clients in the address book
* * * user filter properties by name or address easily locate properties in the address book
* * * user filter meet-ups by subject easily locate meet-ups in the address book
* * * user view my contacts using commands contact them for business
* * * user collect the name, contact number, and email of clients I have access to these important information
* * * user switch between viewing modes be focused on whichever list I want to view
* * * user collect the subject, start and end date of my meetups and the client involved I have access to these important information
* * * user collect the landlord name, address, phone number of properties I have access to these important information
* * * user have a meetup schedule keep track of future meetups
* * * user tag clients with labels like high priority or first-time buyer prioritize my outreach efforts
* * user a standardise command format easily pick up how to use the app
* * user store notes about clients’ property preferences focus on active prospects
* * user set reminders for client follow-ups don’t miss important communication
* * user group clients by address preferences tailor property recommendations to their needs
* * user track status of property deals for each client (e.g. interested, offer made, contract signed) track which stage the client is at
* * user add notes to client interactions easily send property updates
* * user collect budget preference, neighborhood preference, and property of my buyer and seller tailor property recommendations to their needs
* * user edit my contact list easily change the details of my contacts
* * user edit my meetup details easily update the details of my scheduled meetups
* user hide private contact details minimize chance of someone else seeing them by accident
* user filter clients by their buying timelines (e.g. immediate, next 5 months) maintain regular communication
* user send bulk emails to groups of clients inform them of the latest property updates
* long-term user archive old client contacts I can keep my active contacts list uncluttered, while still having the ability to retrieve historical client information if needed.
* long-term user log the last interaction date with the client capture important details discussed in meetings or phone calls
* expert user import contacts from my phone or other databases quicky build my buyer list
* user set a follow-up frequency for each client stay in regulr contact
* user track a client’s viewing history know which clients have been shown to which property
* user set up reminders for key seller-related milestones (e.g. contract expiration, price reduction discussions) never miss an important deadline
* user track client communication preferences engage them through their preferred channels
* user generate a visual timeline of a property’s selling process easily communicate progress to property owners
* user receive notifications when it’s time to follow up with a client not forget
* user assign a lead source to each client, e.g. referral, open house, website know where my business is coming from
* real estate agent schedule and track open house events ensure smooth operations and follow up with attendees
* user monitor competing listings in the same area adjust pricing and marketing strategies accordingly
* user track commission details for each property sale keep accurate financial records
* user generate reports on the number of leads generated per listing show sellers the interest their property is receiving
* user manage and log referral partner interactions (e.g. contractors, photographers) maintain strong professional relationships
* user track which clients were referred by past clients send buyers personalized appreciation messages and foster long-term relationships

Use cases

(For all use cases below, the System is ABCLI and the Actor is the User, unless specified otherwise)

Use Case 1: Switching parser modes

MSS

  1. User requests to switch the parser mode.
  2. ABCLI switches to the desired parser mode.
  3. ABCLI shows the corresponding list of items in the new mode.

Use case ends.

Extensions

  • 1a. The inputted parser mode is invalid.
    • 1a1. ABCLI informs the User of the error.

    Use case ends.

Use Case 2: Adding a buyer

MSS

  1. User requests to add a buyer.
  2. ABCLI adds the buyer and displays the updated list of buyers.

Use case ends.

Extensions

  • 1a. The inputted command format is invalid.
    • 1a1. ABCLI informs the User of the error.

    Use case ends.

  • 1b. The inputted fields are invalid.
    • 1b1. ABCLI informs the User of the error.

    Use case ends.

Use Case 3: Deleting a buyer

MSS

  1. User requests to view buyers.
  2. ABCLI shows the list of buyers.
  3. User requests to delete a specific buyer based on the buyer’s index in the list.
  4. ABCLI deletes the buyer and displays the updated list of the buyers.

Use case ends.

Extensions

  • 3a. The index for deletion is not a positive whole number.
    • 3a1. ABCLI informs the User of the error.

    Use case ends.

  • 3b. The index for deletion is out of range.
    • 3b1. ABCLI informs the User of the error.

    Use case ends.

Use Case 4: Editing a buyer

MSS

  1. User requests to view buyers.
  2. ABCLI shows the list of buyers.
  3. User requests to edit a specific buyer based on the buyer’s index in the list.
  4. ABCLI edits the buyer and displays the updated list of the buyers.

Use case ends.

Extensions

  • 3a. The inputted fields are invalid.
    • 3a1. ABCLI informs the User of the error.

    Use case ends.

  • 3b. The index for editing is out of range.
    • 3b1. ABCLI informs the User of the error.

    Use case ends.

  • 3c. No field to edit is provided.
    • 3c1. ABCLI informs the User of the error.

    Use case ends.

Use Case 5: Viewing all buyers

MSS

  1. User requests to view all buyers.
  2. ABCLI shows the list of buyers.

Use case ends.

Use Case 6: Finding buyers

MSS

  1. User requests to find buyers by matching keywords to the buyers’ name.
  2. ABCLI shows the filtered list of buyers whose name matches the keywords.

Use case ends.

Extensions

  • 1a. The inputted keywords are invalid.
    • 1a1. ABCLI informs the User of the error.

    Use case ends.

Use Case 7: Adding a meetup

MSS

  1. Similar to Use Case 2: Adding a buyer

Use Case 8: Deleting a meetup

MSS

  1. Similar to Use Case 3: Deleting a buyer

Use Case 9: Editing a meetup

MSS

  1. Similar to Use Case 4: Editing a buyer

Use Case 10: Viewing all meetups

MSS

  1. Similar to Use Case 5: Viewing all buyers

Use Case 11: Finding meetups

MSS

  1. Similar to Use Case 6: Finding buyers

Use Case 12: Adding a property

MSS

  1. Similar to Use Case 2: Adding a buyer

Use Case 13: Deleting a property

MSS

  1. Similar to Use Case 3: Deleting a buyer

Use Case 14: Editing a property

MSS

  1. Similar to Use Case 4: Editing a buyer

Use Case 15: Viewing all properties

MSS

  1. Similar to Use Case 5: Viewing all buyers

Use Case 16: Finding properties

MSS

  1. Similar to Use Case 6: Finding buyers

Non-Functional Requirements

  1. ABCLI should be a result of evolving/enhancing/morphing the given codebase.

  2. ABCLI should work on any mainstream OS as long as it has Java 17 or above installed.

  3. ABCLI should be able to hold up to 1000 buyers without a noticeable sluggishness in performance for typical usage.

  4. A user with above average typing speed for regular English text (i.e. not code, not system admin commands) should be able to accomplish most of the tasks faster using commands than using the mouse.

  5. ABCLI should be targeting users who can type fast and prefer typing to other means of input.

  6. ABCLI should be for a single user.

  7. ABCLI needs to be developed in a breadth-first incremental manner over the project duration.

  8. ABCLI’s data should be stored locally and should be in a human editable text file.

  9. ABCLI cannot use a DBMS to store data.

  10. ABCLI should follow the Object-oriented paradigm primarily.

  11. ABCLI should work on the Windows, Linux, and OS-X platforms.

  12. ABCLI should work on a computer that has version 17 of Java.

  13. ABCLI should work without requiring an installer.

  14. ABCLI should not depend on your own remote server.

  15. The use of third-party frameworks/libraries/services is allowed but only if they are free, open-source, and have permissive license terms and do not require any installation by users and do not violate other constraints.

  16. The GUI should work well for standard screen resolutions 1920x1080 and higher and for screen scales 100% and 125%. In addition, the GUI should be usable for resolutions 1280x720 and higher, and for screen scales 150%.

  17. ABCLI has to be packaged into a single JAR file.


Appendix: Instructions for manual testing

Given below are instructions to test the app manually.

:information_source: Note: These instructions only provide a starting point for testers to work on; testers are expected to do more exploratory testing.

Launch and shutdown

  1. Initial launch

    1. Download the jar file and copy into an empty folder

    2. Open a command terminal, cd into the folder you put the jar file in, and use the java -jar abcli.jar command to run the application.
      Expected: Shows the GUI with a set of sample contacts. The window size may not be optimum.

  2. Saving window preferences

    1. Resize the window to an optimum size. Move the window to a different location. Close the window.

    2. Re-launch the app by double-clicking the jar file.
      Expected: The most recent window size and location is retained.

  3. Multiple launches

    1. Prerequisites: List all buyers using the view command. At least two buyers in the list.

    2. Launching the app two times by double-clicking the jar file twice.
      Expected: A new instance of the application should open with each double click

    3. Execute delete 1 on one of the opened application and close the application.

    4. Execute delete 2 on the other opened application and close the application.

    5. Launch another instance of the application.
      Expected: Second contact from the original buyer list is deleted but not the first. This is because if there are changes made to both instances of the application, only the changes made on the most recent application is saved.

  4. Force close (unexpected shutdown)

    1. Prerequisites: List all buyers using the view command. At least one buyer in the list.

    2. Launching the app and execute delete 1.
      Expected: A new instance of the application should open and running this command deletes the first contact from the buyer list.

    3. Force close the app using Task Manager.

    4. Re-launch another instance of the application.
      Expected: Changes made are saved.

Adding a buyer

  1. Adding a new buyer to the buyer list

    1. Prerequisites: Switch to buyer mode using the switch b command. Ensure that no buyer with the name John Doe or Betsy Crowe is present in the list.

    2. Test case: add n/John Doe p/98765432 e/johnd@example.com b/100000
      Expected: A new buyer with the name John Doe is added to the list. Details of the added buyer are shown in the status message.

    3. Test case: add n/Betsy Crowe t/urgent e/betsycrowe@example.com b/7000000 p/91234567 t/referred
      Expected: A new buyer with the name Betsy Croweand tags urgent and referred is added to the list. Details of the added buyer are shown in the status message.

    4. Test case: add n/John Doe p/invalidPhone e/johnd@example.com b/100000
      Expected: No buyer is added. Error message indicating an invalid phone number is shown as the status message.

    5. Test case: add n/John Doe p/98765432 e/johnd@example.com b/
      Expected: No buyer is added. Error message indicating an invalid budget (because budget is blank) is shown as the status message.

  2. Adding an existing buyer to the buyer list

    1. Prerequisites: Switch to buyer mode using the switch b command. Ensure that a buyer with the name John Doe is already present in the list.

    2. Test case: add n/John Doe p/98765432 e/johndoe@example.com b/100000
      Expected: No buyer is added. Error message indicating that the buyer already exists is shown as the status message.

Adding a meet-up

  1. Adding a new meet-up to the meet-up list

    1. Prerequisites: Switch to meet-up mode using the switch m command. Ensure that no meet-up with the subject Discuss work plans and from 2024-02-03 14:00 and to 2024-02-03 15:30 is present in the list.

    2. Test case: add s/Discuss work plans i/Meet with Alex and David to discuss the March Project f/2024-02-03 14:00 t/2024-02-03 15:30 n/Alex Yeoh n/David Li
      Expected: A new meet-up with the subject Discuss work plans is added to the list. Details of the added meet-up are shown in the status message. Note:
      • If the added buyers (i.e. Alex Yeoh, David Li) do not exist in the buyer list, they are flagged as red.
      • If the date-time ranges of the meet-up overlap with that of another meet-up, the from and to date-time of both overlapping meet-ups will be flagged as red.
    3. Test case: add s/Invalid Meeting i/Discuss with team f/2024-02-04 14:00 t/2024-02-04 13:00 n/John Doe
      Expected: No meet-up is added. Error message indicating that from must be after to is shown as the status message.
  2. Adding an existing meet-up to the meet-up list

    1. Prerequisites: Switch to meet-up mode using the switch m command. Ensure that a meet-up with the subject Discuss work plans and from 2024-02-03 14:00 and to 2024-02-03 15:30 is present in the list.

    2. Test case: add s/Discuss work plans i/New information f/2024-02-03 14:00 t/2024-02-03 15:30 n/John Doe
      Expected: No meet-up is added. Error message indicating that the meet-up already exists is shown as the status message.

Adding a property

  1. Adding a new property to the property list

    1. Prerequisites: Switch to property mode using the switch p command. Ensure that no property with the address Paya Lebar Rd #01-01 is present in the list.

    2. Test case: add n/Sean p/87152433 a/Paya Lebar Rd #01-01 s/200000 t/Condominium
      Expected: A new property with the address Paya Lebar Rd #01-01 is added to the list. Details of the added property are shown in the status message.

    3. Test case: add n/Sean p/invalidPhone a/Bukit Timah Rd s/200000 t/Condominium
      Expected: No property is added. Error message indicating an invalid phone number is shown as the status message.

    4. Test case: add n/Sean p/87152433 a/Bukit Timah Rd s/ t/Condominium
      Expected: No property is added. Error message indicating an invalid asking price (because asking price is blank) is shown as the status message.

  2. Adding an existing property to the property list

    1. Prerequisites: Switch to property mode using the switch p command. Ensure that a property with the address Paya Lebar Rd #01-01 is already present in the list.

    2. Test case: add n/Alice p/87152433 a/Paya Lebar Rd #01-01 s/300000 t/Landed
      Expected: No property is added. Error message indicating that the property already exists is shown as the status message.

Deleting a buyer

  1. Deleting a buyer while all buyers are being shown

    1. Prerequisites: Switch to buyer mode using the switch b command. List all buyers using the view command. Multiple buyers in the list.

    2. Test case: delete 1
      Expected: First buyer is deleted from the list. Details of the deleted buyer shown in the status message.

    3. Test case: delete 0, delete -1, delete y (where y is not a positive number)
      Expected: No buyer is deleted. Error message indicating invalid command format is shown as the status message.

    4. Test case: delete x(where x is larger than the list size)
      Expected: No buyer is deleted. Error message indicating invalid buyer index is shown as the status message.

    5. Other incorrect delete commands to try: delete, delete abc, ...
      Expected: No buyer is deleted. Error message indicating invalid command format is shown as the status message.

  2. Deleting a buyer while some buyers are filtered in the list

    1. Prerequisites: Switch to buyer mode using the switch b command. Filter the buyer list using the find command to show only some buyers (fewer than full list) using relevant filters.

    2. Test case: delete 1
      Expected: First (and only) buyer in the filtered list is deleted. Details of the deleted buyer are shown in the status message.

    3. Test case: delete x (where x is within the bounds of the full list but not within the filtered list)
      Expected: No buyer is deleted. Error message indicating an invalid buyer index is shown as the status message.

Deleting a meet-up

  1. Similar steps to those outlined in deleting a buyer can be followed, but in the context of meet-up mode. Before performing the tests, ensure the application is in meet-up mode by using the switch m command.

Deleting a property

  1. Similar steps to those outlined in deleting a buyer can be followed, but in the context of property mode. Before performing the tests, ensure the application is in property mode by using the switch p command.

Editing a buyer

  1. Editing a buyer while all buyers are being shown

    1. Prerequisites: Switch to buyer mode using the switch b command. List all buyers using the view command. Multiple buyers are present in the list.

    2. Test case: edit 1 b/700000 p/91234567
      Expected: First buyer’s budget and phone number are updated. All other fields remain the same. Details of the edited buyer are shown in the status message.

    3. Test case: edit 0 b/700000, edit -1 b/700000, edit y b/700000 (where y is not a positive number)
      Expected: No changes are made. Error message indicating invalid command format is shown as the status message.

    4. Test case: edit 1
      Expected: No changes are made as no fields are specified. Error message prompts for at least one field to edit.

    5. Test case: edit x b/700000(where x is larger than the list size)
      Expected: No changes are made. Error message indicating invalid buyer index is shown as the status message.

    6. Test case: edit 1 b/700000 p/91@83817
      Expected: No changes are made. Error message indicating invalid phone number is shown as the status message.

  2. Editing a buyer in a filtered list

    1. Prerequisites: Switch to buyer mode using the switch b command. Filter the buyer list using the find command to show only some buyers (fewer than full list) using relevant filters.

    2. Test case: edit 1 p/87151234
      Expected: First (and only) buyer in the filtered list has its phone number updated. Details of the edited buyer shown in the status message.

    3. Test case: edit x p/87151234 (where x is within the bounds of the full list but not within the filtered list)
      Expected: No changes made. Error message indicating an invalid buyer index is shown as the status message.

  3. Attempting to edit to create a duplicate buyer

    1. Prerequisites: Switch to buyer mode using the switch b command. List all buyers using the view command. At least two buyers present.

    2. Test case: edit 1 n/x (where x is another existing name)
      Expected: No changes are made. Error message indicating that buyer already exists in application is shown as the status message.

Editing a meet-up

  1. Editing a meet-up while all meet-ups are being shown

    1. Prerequisites: Switch to meet-up mode using the switch m command. List all meet-ups using the view command. Multiple meet-ups are present in the list.

    2. Test case: edit 1 i/New information n/Adam
      Expected: First meet-up information and added buyers are updated. All other fields remain the same. Details of the edited meet-up are shown in the status message. Note that if added buyer (i.e. Adam) is not found in the buyer list, it will be flagged out as red.

    3. Test case: edit 0 i/New information, edit -1 i/New information, edit y i/New information (where y is not a positive number)
      Expected: No changes are made. Error message indicating invalid command format is shown as the status message.

    4. Test case: edit 1
      Expected: No changes are made as no fields are specified. Error message prompts for at least one field to edit.

    5. Test case: edit x i/New information(where x is larger than the list size)
      Expected: No changes are made. Error message indicating invalid meet-up index is shown as the status message.

    6. Test case: edit 1 t/23 June 2024
      Expected: No changes are made. Error message indicating an invalid to date-time format is shown as the status message.

  2. Editing a meet-up in a filtered list

    1. Prerequisites: Switch to meet-up mode using the switch m command. Filter the meet-up list using the find command to show only some meet-ups (fewer than full list) using relevant filters.

    2. Test case: edit 1 i/New information
      Expected: First (and only) meet-up in the filtered list has its information updated. Details of the edited meet-up is shown in the status message.

    3. Test case: edit x i/New information (where x is within the bounds of the full list but not within the filtered list)
      Expected: No changes made. Error message indicating an invalid meet-up index is shown as the status message.

  3. Attempting to edit to create a duplicate meet-up

    1. Prerequisites: Switch to meet-up mode using the switch m command. List all meet-ups using the view command. At least two meet-ups present.

    2. Test case: edit 1 s/xt t/xt f/xf (where xs, xt, xf are the subject, to and from of another existing meet-up in the list)
      Expected: No changes are made. Error message indicating that meet-up already exists in application is shown as the status message.

Editing a property

  1. Editing a property while all properties are being shown

    1. Prerequisites: Switch to property mode using the switch p command. List all properties using the view command. Multiple properties are present in the list.

    2. Test case: edit 1 s/700000 p/91234567
      Expected: First property’s asking price and landlord phone number are updated. All other fields remain the same. Details of the edited property are shown in the status message.

    3. Test case: edit 0 s/700000, edit -1 s/700000, edit y s/700000 (where y is not a positive number)
      Expected: No changes are made. Error message indicating invalid command format is shown as the status message.

    4. Test case: edit 1
      Expected: No changes are made as no fields are specified. Error message prompts for at least one field to edit.

    5. Test case: edit x s/700000(where x is larger than the list size)
      Expected: No changes are made. Error message indicating invalid property index is shown as the status message.

    6. Test case: edit 1 s/700000 p/91@83817
      Expected: No changes are made. Error message indicating invalid phone number is shown as the status message.

  2. Editing a property in a filtered list

    1. Prerequisites: Switch to property mode using the switch p command. Filter the property list using the find command to show only some properties (fewer than full list) using relevant filters.

    2. Test case: edit 1 p/87151234
      Expected: First (and only) property in the filtered list has its landlord phone number updated. Details of the edited property shown in the status message.

    3. Test case: edit x p/87151234 (where x is within the bounds of the full list but not within the filtered list)
      Expected: No changes made. Error message indicating an invalid property index is shown as the status message.

  3. Attempting to edit to create a duplicate property

    1. Prerequisites: Switch to property mode using the switch p command. List all properties using the view command. At least two properties present.

    2. Test case: edit 1 a/x (where x is another existing address)
      Expected: No changes are made. Error message indicating that property already exists in application is shown as the status message.

Finding a buyer

  1. Finding buyers by name keywords

    1. Prerequisites: Switch to buyer mode using the switch b command.

    2. Test case: find n/Alex David
      Expected: Buyers with names containing the keywords Alex or David are shown in the list. The number of buyers found is displayed in the status message.

    3. Test case: find n/ (empty keyword)
      Expected: Error message indicating an invalid name (because name is blank) will be shown as status message.

Finding a meet-up

  1. Finding meet-up by subject keywords

    1. Prerequisites: Switch to meet-up mode using the switch m command.

    2. Test case: find s/Sales Investors
      Expected: Meet-ups with names containing the keywords Sales or Investors are shown in the list. The number of meet-ups found is displayed in the status message.

    3. Test case: find s/ (empty keyword)
      Expected: Error message indicating an invalid subject (because subject is blank) will be shown as status message.

Finding a property

  1. Finding properties by address keywords

    1. Prerequisites: Switch to property mode using the switch p command.

    2. Test case: find a/Bishan Marsiling Shibuya
      Expected: Properties with addresses containing the keywords Bishan, Marsiling, or Shibuya are shown in the list. The number of properties found is displayed in the status message.

    3. Test case: find a/ (empty keyword)
      Expected: Error message indicating an invalid address (because address is blank) will be shown as status message.

  2. Finding properties by landlord name keywords

    1. Prerequisites: Switch to property mode using the switch p command.

    2. Test case: find n/Kurz Elle Bob
      Expected: Properties with landlord names containing Kurz, Elle, or Bob are shown in the list. The number of properties found is displayed in the status message.

    3. Test case: find n/
      Expected: Error message indicating an invalid name (because landlord name is blank) will be shown as status message.

  3. Attempting to input an incorrect find command format

    1. Prerequisites: Switch to property mode using the switch p command.

    2. Test case: find a/bishan n/john, find
      Expected: Error message indicating invalid command format is shown as status message.

Saving data

  1. Dealing with missing / corrupted data files
    1. Under the data section, delete 1 or more of the data files before starting the application. Expected: The program will automatically populate the data folder with a sample file.

    2. Under the data section, add a new parameter into one of the entries in any file.
      Expected: The program will ignore the new parameter and read the data file as usual.

    3. Under the data section, edit any of the required parameters in any of the files to turn the parameter invalid. Expected: The program will ignore any saved data from that file and open an empty file.

Appendix: Planned Enhancements

Our team size is 5.

Support for special characters in names

  • We plan to add support for special characters in names such as Lupita Nyong’o, Adib S/O Tharman etc. This can be done by updating the validation regex to accept certain special characters.

Restriction of property types

  • Property types will be given restrictions in the future such that nonsensical types will not be accepted. We will create an enum with common types such as HDB, Landed Property, Condominium etc.

Improved duplication detection

  • Buyer duplication detection will be changed from the current method of checking for repeated names to checking for a repeated phone number OR email as these are better unique identifiers.

Setting a maximum for budget and asking price

  • Currently, there are no restrictions on the maximum value an asking price or budget can take. Therefore, the user can input unrealistic values such as 999,999,999,999. This also creates an issue of long overflow when the value is too large (exceeds 9223372036854775807) as the application uses the java.lang.Long.parseLong() method.
  • A planned enhancement will be to use validation regex to ensure that the asking price and budget values are below a maximum, which can be set to 1,000,000,000.

Find using more parameters

  • find will be updated for all 3 modes to allow the use of more parameters (such as: b/BUDGET, p/PHONE, e/EMAIL, and t/TAG for buyers). We will change the find command to accept more types of parameters.

Appendix: Glossary

Glossary

  1. ABCLI
    Our product name.

  2. CLI
    The command line interface is a way to interact with a computer by typing text commands instead of using a mouse to click on icons.

  3. Flag
    In our context, a flag is something preceded by a /, but is not the initial command. e.g. in add n/NAME, n/ is a flag but add is not.

  4. GUI
    Graphical user interface. The screen you see when opening the application.

  5. JAR file
    A JAR (Java ARchive) file is a compressed package that bundles multiple Java classes and resources for easier distribution and deployment. It can also be executable if it contains a Main-Class entry, allowing it to be run directly on any system with a Java Runtime Environment (JRE).

  6. JavaFX
    JavaFX is a Java library used to build rich, interactive graphical user interfaces (GUIs) for desktop applications. It provides tools for designing and styling UI components and supports modern features like 2D/3D graphics, animation, and media playback.

  7. Non-Functional Requirement
    A non-functional requirement specifies criteria that judge the operation of a system, such as performance, reliability, and usability. Unlike functional requirements, it focuses on how a system performs rather than what it does.

  8. Parameter
    A value that you need to provide for the command to work. e.g. in add n/NAME, NAME is a parameter.

  9. Plant UML
    PlantUML is a tool that allows users to create diagrams, such as UML diagrams, by writing simple, text-based descriptions that are then converted into visual representations. It supports a range of diagrams—like class, sequence, and activity diagrams—and is often used to quickly illustrate system designs or workflows.

  10. Use Case
    A use case describes a specific way that a user interacts with a system to achieve a goal, often outlining steps from start to finish. It helps clarify system requirements by detailing the actions, conditions, and outcomes for each interaction scenario.