Skip to content

Commit

Permalink
Merge pull request #200 from Cohii2/hengJunxiang-docs
Browse files Browse the repository at this point in the history
Change Location of Balance Structure Diagram
  • Loading branch information
MonkeScripts authored Apr 15, 2024
2 parents d2b5be8 + 5131e72 commit 07c2791
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ and each `Group` object is stored in its own `.txt` file after program's runtime

![Architecture_Diagram](images/ArchitectureDiagram.jpg)

### Balance

Below is a Class Diagram for the Balance Feature:

![Balance Structure](images/BalanceStructure.png)

### Group Storage

The Group Storage feature allows users to save group information to files when exiting groups or ending the program. It also enables users to load group information from files when entering groups. This feature ensures that changes made to a group are persisted across sessions and that users can resume their interactions with groups seamlessly.
Expand Down Expand Up @@ -145,10 +151,6 @@ The following sequence diagrams show the process of adding an equal split and un
#### Implementation


Below is a Class Diagram for the Balance Feature:

![Balance Structure](images/BalanceStructure.png)

The Balance feature is facilitated through the Balance class.
It allows a user to view a printed list of other users in the Group, and the amount that is owed by/to each user.

Expand Down
6 changes: 5 additions & 1 deletion src/main/java/seedu/duke/Group.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,8 @@ private User findUser(String userName) {
}
return null;
}
}

public static void removeGroup(String groupName) {
groups.remove(groupName);
}
}

0 comments on commit 07c2791

Please sign in to comment.