Skip to content

Commit

Permalink
Merge pull request #161 from samuelory/Samuel-V2.4
Browse files Browse the repository at this point in the history
Mild adjustment to DG
  • Loading branch information
JeffinsonDarmawan committed Apr 10, 2024
2 parents 3509042 + 728ff40 commit c9cd9d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Removing Bouquets follows a similar logic, just that instead of calling `Bouquet

`info <flowerName>` command prints information about the specified flower

![Info Command Sequence Diagram](/docs/UML-diagrams/Ian/InfoCommandUML.png)
![Info Command Sequence Diagram](UML-diagrams/Ian/InfoCommandUML.png)

Step 1: Flower information mechanism utilize the `parser` class to parse user command for a specific flower name inputted.

Expand Down Expand Up @@ -85,7 +85,7 @@ Help command utilises the `parser` class to identify the keyword `help`

`add <flower> /q <quantity> /to <targetBouquet>` command adds specified number of flower to a bouquet

![Add Flower Command Diagram](/docs/UML-diagrams/Ijaaz/Ijaaz-UML.png)
![Add Flower Command Diagram](UML-diagrams/Ijaaz/Ijaaz-UML.png)

Step 1: Firstly the input is put into the `Parser.parse()` method to identify that it is infact an add flower command.

Expand All @@ -103,7 +103,7 @@ Step 5: A confirmation message is then sent back to the user

The proposed storage mechanism will utilize a class `storage` who is in charge of getting the file, `encoder` which will encode current model into a .txt file format, `decoder` which will decode .txt file into a usable model.

![Storage Class Diagram](/docs/UML-diagrams/Ian/storage.png)
![Storage Class Diagram](UML-diagrams/Ian/storage.png)

#### Design Considerations:
- Alternative 1 (current choice): use .txt files as storage
Expand Down Expand Up @@ -159,7 +159,7 @@ Priorities: High (must have) `* * *`, Medium (nice to have) `* *`, Low (unlikely

## Use cases

(For all all use cases below, the System is `Florizz` and the Actor is the `user`, unless specified otherwise)
(For all use cases below, the System is `Florizz` and the Actor is the `user`, unless specified otherwise)

**Use case: Create a new bouquet named "for valentine" and add 3 stalks of rose into the bouquet**

Expand Down
Binary file modified docs/UML-diagrams/Samuel/AddBouquets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/UML-diagrams/Samuel/AddBouquets.puml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ deactivate AddBouquetCommand
destroy AddBouquetCommand

Florizz-->user : "added valentines"
deactivate Florizz
@enduml

0 comments on commit c9cd9d1

Please sign in to comment.