-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CS2113T-T09-3] SITUS #25
base: master
Are you sure you want to change the base?
[CS2113T-T09-3] SITUS #25
Conversation
|
||
The sequence diagram for when the user inputs `alerts all` is shown below. | ||
|
||
![image](images/AlertsAllSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The sequence diagram for the `AlertExpiringSoonCommand.run()` is shown below. The user can also call this via `alerts expiry` | ||
|
||
![image](images/AlertExpirySequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For `AlertLowStockCommand`, it is less complicated, and the sequence diagram shown below. The user can also call this via `alerts stock` | ||
|
||
|
||
![image](images/AlertStockSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The _sequence diagram_ below shows how the components interact with each other given a scenario where the user | ||
enters the input `add n/carrot a/1 e/2021-11-12` | ||
|
||
![image](images/InteractionSeqDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DG is well done overall other than some potential improvements pointed out. Well done!
|
||
The sequence diagram for when the user inputs `alerts all` is shown below. | ||
|
||
![image](images/AlertsAllSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential missing deletion of object:
AlertExpiringSoonCommand
andAlertLowStockCommand
whenAlertCommand
returns,AlertCommand
whenParser
returns.
|
||
The class diagram below shows the relationships between `Parser`, `Command` and `XYZCommand`. | ||
|
||
![image](images/ParserDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Add {abstract}
to Command
in the class diagram to make it clear that it is an abstract class.
|
||
### 3.1. System Architecture | ||
|
||
![System Architecture](images/SysArch%20Diagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider changing the colour choices for Parser
and/or Command
as the current colour choices may make it hard for readers to read the words inside the box.
Then calling `delete n/ carrot e/ 25/12/2021` will remove the second entry in the `carrot` category. | ||
The sequence diagram below illustrates the above command example | ||
|
||
![image](images/DeleteSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The sequence diagram for when the user inputs `alerts all` is shown below. | ||
|
||
![image](images/AlertsAllSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The sequence diagram for the `AlertExpiringSoonCommand.run()` is shown below. The user can also call this via `alerts expiry` | ||
|
||
![image](images/AlertExpirySequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For `AlertLowStockCommand`, it is less complicated, and the sequence diagram shown below. The user can also call this via `alerts stock` | ||
|
||
|
||
![image](images/AlertStockSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The sequence diagram for when the user inputs `alerts all` is shown below. | ||
|
||
![image](images/AlertsAllSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
Below is a partial class diagram of the `IngredientList` component | ||
|
||
![image](images/IngredientListDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Conflicts: # docs/UserGuide.md
Added exception for update and delete command
Fixed Ingredient Formatting
Changed formatting for date DATE
Updated link in UG to latest release
Updated help command
Fixed a bug for update where decimal amounts cause an exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, a great work, team!
The _sequence diagram_ below shows how the components interact with each other given a scenario where the user | ||
enters the input `add n/carrot a/1 e/2021-11-12` | ||
|
||
![image](images/InteractionSeqDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command's instantiated object is no longer used. An cross should be drawn at the end.
|
||
The sequence diagram for when the user inputs `alerts all` is shown below. | ||
|
||
![image](images/AlertsAllSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a cross for the instantiated AlertCommand once the parser returns as the instantiated object is no longer used.
|
||
The sequence diagram for when the user inputs `alerts all` is shown below. | ||
|
||
![image](images/AlertsAllSequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The activation bar should have some difference in the length to show the execution flow
|
||
The sequence diagram for the `AlertExpiringSoonCommand.run()` is shown below. The user can also call this via `alerts expiry` | ||
|
||
![image](images/AlertExpirySequenceDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The activation bar should not get cross the OPT of the flow diagram because it is not guaranteed to execute while only expireDate is guaranteed to be returned from Ingredient
The _sequence diagram_ below shows how the components interact with each other given a scenario where the user | ||
enters the input `add n/carrot a/1 e/2021-11-12` | ||
|
||
![image](images/InteractionSeqDiagram.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
The **UI** component can be found in the `UI` package. The UI reads commands from the user, sends the command to `Main` to be executed and prints an output message upon completion of the command or if an error occurred. | ||
|
||
### 3.3. Parser component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of talking about how Parser calls the parseXYZCommand() and executes... in 3.4. Command component, will it be better to move the parseXYZCommand() part to 3.3. Parser component? Coz it is a method of the parser, and should be considered as part of the parser component I guess.
|
||
### 1.1. Purpose | ||
This document specifies the architectural and software design decisions in the implementation of the Smart Inventory | ||
Tracking and Updating System (SITUS). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there is "Instructions for manual testing" section in the DG, maybe can add additional purposes ( like showing the developers how to test/improve the software)?
`IngredientList` object will only use `loadIngredientsFromMemory()` and `writeIngredientsToMemory()` methods | ||
of the storage class only when there is a change in the ingredient list of the program. | ||
|
||
## 4. Implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the implementation section, since this DG has one of the purposes as "specifying software design decisions", I guess it is good to also mention some of the alternatives designs your team had thought of, as well as their pros and cons, to explain why your team decided to use current design.
Fixed Bugs where thresholds can be less than or equal to 0, causing w…
…ount and expiry dates in the past for Add
Trying to fix formatting issues for DG
Still trying to fix DG formatting
Third try's the charm for fixing DG formatting
Attempt 4 at fixing formatting
This reverts commit b060c1b.
Revert "Attempt 4 at fixing formatting"
Attempt 5 at fixing DG formatting
Attempt 6 at fixing formatting issue DG
Attempt 7 at fixing DG formatting
Added some page breaks for DG PDF conversion
edit DG and AddCommandTest
Added page break
Updated J-Unit testing
Final coding style fix...
Smart Inventory Tracking and Updating System (SITUS) will help restaurant inventory managers to keep track of and update their stock.