-
Notifications
You must be signed in to change notification settings - Fork 89
[CS2113-T17-3] Stocker #15
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
Open
TeoHaoZhi
wants to merge
517
commits into
nus-cs2113-AY2324S1:master
Choose a base branch
from
AY2324S1-CS2113-T17-3:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 218 commits
Commits
Show all changes
517 commits
Select commit
Hold shift + click to select a range
57ee8fc
Merge pull request #127 from karishma-t/karishma-VendorSupply
TeoHaoZhi daf87ec
added parser diagram
Barbaracwx 72f9902
Merge pull request #128 from Barbaracwx/DG-parser
TeoHaoZhi d84e998
update UG
Barbaracwx 5a4a03d
update UG
Barbaracwx 407d2dd
Merge pull request #129 from Barbaracwx/branch-updateUG
TeoHaoZhi 806511b
Update UG
karishma-t dd17f9b
Merge pull request #130 from karishma-t/karishma-updateUG
TeoHaoZhi 975a03f
Add Command Result in Developer Guide
azfarulmatin 6c56dc7
Merge pull request #131 from azfarulmatin/AzfarulMatin-CalculatePrice
azfarulmatin f342fa4
Update Junit Test for find command using serial number
azfarulmatin 2354792
Update ListCommand Junit Test
azfarulmatin 13d04c0
Merge pull request #132 from azfarulmatin/AzfarulMatin-CalculatePrice
azfarulmatin 2b8fc42
Modify delete DG
karishma-t e1c9c8a
Add addVendorSupply dg
karishma-t f73462e
Merge pull request #133 from karishma-t/karishma-Developer-Guide
azfarulmatin 425255d
Remove all throwing methods in the main class
martinschnder 4867382
Try to resolve various warning
martinschnder 5590992
Resolve warning and make vendors non static
martinschnder 992f613
Add negative number verifications
martinschnder 5cb9b75
Fix Ped Bug
TeoHaoZhi ef45263
Fix Ped UserGuide bug
TeoHaoZhi a946e64
Merge pull request #208 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi e7640fe
Fix login system PED Bugs
TeoHaoZhi 741f27e
Merge pull request #209 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 7e111f8
Fix grammer error
TeoHaoZhi 037a76f
Update UserGuide FAQ
TeoHaoZhi 509339a
Merge pull request #210 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 07a5675
Update UserGuide to fix PED bug
TeoHaoZhi ad70664
Fix User Guide PED Bug
TeoHaoZhi 83997d3
Merge pull request #211 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 76a4f62
Fix UserGuide PED
TeoHaoZhi 940f906
Merge pull request #212 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 408b7dc
Add Table of contents to UserGuide to fix PED issue
TeoHaoZhi b676f6f
Merge pull request #213 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 7928b0b
Fix Ped Bugs
TeoHaoZhi f907e0a
Fix Checkstyle
TeoHaoZhi c5fd226
Merge pull request #214 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 99c5b41
Fix userguide PED Bug
TeoHaoZhi 95adc7f
Merge pull request #215 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi ad470e2
Fix PED save command bug
TeoHaoZhi 8909924
Fix PED bug
TeoHaoZhi 18ef899
Merge pull request #216 from TeoHaoZhi/PED_Bug_Fixes_HaoZhi
TeoHaoZhi 9d70ab9
Edit ReadMe landing page
TeoHaoZhi 099d1f3
Merge pull request #217 from TeoHaoZhi/PPP-HaoZhi
TeoHaoZhi 9bee0f4
Update PPP
TeoHaoZhi ad34339
Merge pull request #218 from TeoHaoZhi/PPP-HaoZhi
TeoHaoZhi b04611c
Update PPP Links
TeoHaoZhi 83bb1dc
Merge pull request #219 from TeoHaoZhi/PPP-HaoZhi
TeoHaoZhi fa1bb1b
Update PPP Links
TeoHaoZhi ba2a4ae
Merge pull request #220 from TeoHaoZhi/PPP-HaoZhi
TeoHaoZhi fec3be5
Edit userguide
TeoHaoZhi 7027ee1
Update PPP
TeoHaoZhi 1da900f
Update PPP
TeoHaoZhi 7bc16f8
Merge pull request #221 from TeoHaoZhi/PPP-HaoZhi
TeoHaoZhi 4be24b7
Update UML Diagram and PPP
TeoHaoZhi f749837
Edit UML Diagram
TeoHaoZhi 91a611b
Update UML
TeoHaoZhi b7bbc03
Merge pull request #222 from TeoHaoZhi/PPP-HaoZhi
TeoHaoZhi 3cd46d1
Update Developer Guide
TeoHaoZhi 4d0ce89
Merge pull request #223 from TeoHaoZhi/DG_PED_FIXES
TeoHaoZhi 76a40e6
Fix delete command
martinschnder fc0ab4d
Update delete command documentation
martinschnder c727286
Fix number exeception in addtocart command
martinschnder 65a045f
Fix null exception checkout
martinschnder afddca6
Add name verification in add command and fixed type in userguide
martinschnder 7221cd2
Add whitespace verification in addcommand
martinschnder 4ae7439
Triming all fields in addcommand
martinschnder 10dc763
Fix bug that allowed duplicate vendor entry
TeoHaoZhi 3dcec03
Fix Checkstyle
TeoHaoZhi 4b763e4
Merge pull request #224 from TeoHaoZhi/AddVendorDuplicateFix
TeoHaoZhi 6cf6f3d
Fix bugs for invalid list command
azfarulmatin 7f03201
Update ListCommand to pass checkstyle
azfarulmatin 99b903c
Merge pull request #225 from azfarulmatin/master
azfarulmatin aafdc4f
Update UserGuide to add find by Serial Number
azfarulmatin 2ee5479
Merge pull request #226 from azfarulmatin/AzfarulMatin-SerialNumber
azfarulmatin 21977e0
Add Selling price function for user to key in
azfarulmatin e78af3c
Fix Checkstyle for price function
azfarulmatin 352e499
Merge pull request #227 from azfarulmatin/AzfarulMatin-Price
azfarulmatin 6950f4b
used serial number as key for cart and inventory
martinschnder 36fca5b
resolved bug of too much quantity in cart before checkout
martinschnder e81ee7e
Fix save and load function
martinschnder 4f9085f
Fix add duplicate drug
martinschnder d385f1b
Merge pull request #228 from martinschnder/changeStockStructure
martinschnder a9ad8ff
solve issue of help command
Barbaracwx 4c14a54
Merge pull request #229 from Barbaracwx/branch-Issues
TeoHaoZhi c9e4a63
added alert when below threshold level
Barbaracwx 50cbdc4
added alert
Barbaracwx 05ada66
fix issue #200 inconsistent date formatting
Barbaracwx 1107824
made sure that invalid command not caught fixed issue #189
Barbaracwx de617bf
fixed code
Barbaracwx b860128
fixed issue #184
Barbaracwx 7d5667b
fixed issue #181
Barbaracwx 10a6387
fixed issue #172
Barbaracwx bb5b73e
fixed issue #165
Barbaracwx 290ae25
fixed code
Barbaracwx 9edb1c7
fixed code
Barbaracwx 6153a32
Merge pull request #230 from Barbaracwx/branch-AlertUser
TeoHaoZhi edf6972
Merge pull request #231 from Barbaracwx/branch-FixDG
TeoHaoZhi 26a3209
Merge pull request #232 from Barbaracwx/branch-FixIssue
TeoHaoZhi c27ad59
updated about us
Barbaracwx 1edfcd6
updated about us page
Barbaracwx e4a06f8
Merge pull request #234 from Barbaracwx/aboutus
TeoHaoZhi 98fed83
change keyword to camelcase
Barbaracwx 147dd7b
updated about us page
Barbaracwx 84a83cc
edited help command such that if same name and same expiry date, will…
Barbaracwx 6d8143b
Merge pull request #235 from Barbaracwx/aboutus
TeoHaoZhi b23a505
Add martin portfolio
martinschnder 93c6e14
changed add command to return the appropriate message success
Barbaracwx f322664
Merge pull request #236 from Barbaracwx/master
TeoHaoZhi a28c5b4
Fixed issue #164 - program crashes when '\' is included in command input
Barbaracwx f3f9994
Merge pull request #237 from Barbaracwx/branch-Fix-Issue
TeoHaoZhi 523a4d6
fixed issue #167 adding the same drug to a vendor twice causes it to …
Barbaracwx d9fd36b
fixed issue #174 - all functions are specified in user guide in comma…
Barbaracwx 2044833
Merge pull request #238 from Barbaracwx/branch-Fix-Issue
TeoHaoZhi 73a7fb9
Merge pull request #239 from Barbaracwx/branch-Fix-Issue
TeoHaoZhi 35a22b0
fixed issue #203 - added rationale behind cart features
Barbaracwx 42dce0d
Merge pull request #240 from Barbaracwx/branch-Fix-Issue
TeoHaoZhi a289595
added delete vendor method
Barbaracwx e80c6a7
edited user guide to add in delete vendor command
Barbaracwx 02f84c7
Merge pull request #241 from Barbaracwx/DeleteVendor
azfarulmatin 1fac1fa
edited ppp
Barbaracwx f1bfff6
Add Price Calculation function in Cart
azfarulmatin a78bb35
Fix Checkstyle error for viewCartCommand
azfarulmatin e89b134
Merge pull request #246 from azfarulmatin/AzfarulMatin-Price
azfarulmatin 36a476f
Merge pull request #243 from Barbaracwx/PPP
azfarulmatin 4287d71
Update UserGuide to add the Price function
azfarulmatin c4ef7b9
Fix bugs for adding same serial number but different drug name
azfarulmatin 50c4e5b
Update CartEntry to return total cost
azfarulmatin d320478
Fix checkstyle error
azfarulmatin 918cc0b
Fix gradle check
azfarulmatin db18bc0
Merge pull request #249 from azfarulmatin/master
azfarulmatin bd9fa50
Modify vendor supply list to consistent format
karishma-t 77da550
checkstyle
karishma-t 0119ed6
fix description
karishma-t 367041a
modify description case sensitivity
karishma-t 40df6df
added commands in help
karishma-t 533738f
add delete vendor supply
karishma-t 4794423
Modify vendor command for consistency
karishma-t 3b16289
Changed file name to enable PPP to be tracked
TeoHaoZhi 4ca2c2e
Merge pull request #251 from karishma-t/karishma-fixIssue
TeoHaoZhi e247f23
Merge pull request #252 from TeoHaoZhi/PPPDRAFT
TeoHaoZhi d302ec4
added expiry date function to list
Barbaracwx 556b0c6
Merge pull request #253 from Barbaracwx/tryexpireddate
TeoHaoZhi 2401a85
Change name to fit command better
TeoHaoZhi cfc5aa9
Fix bug
TeoHaoZhi d814853
Merge pull request #255 from TeoHaoZhi/SAVECOMMAND
TeoHaoZhi 61b4ba4
changed add command user guide
Barbaracwx 5ad1763
Merge pull request #256 from Barbaracwx/master
TeoHaoZhi 8ab2f6c
changed help command to add add
Barbaracwx a2b3bcb
changed help command
Barbaracwx 2d28de7
Merge pull request #257 from Barbaracwx/master
TeoHaoZhi 923b280
changed help command
Barbaracwx 80e01d9
Merge pull request #258 from Barbaracwx/master
azfarulmatin 7099410
Add total price when checking out
azfarulmatin 5b9b1c7
Fix bug of corrupted files
TeoHaoZhi 710a845
Merge pull request #259 from TeoHaoZhi/SaveBugFix
TeoHaoZhi 418f886
Fix drug corrupted txt file bug
TeoHaoZhi 3926113
Fix Checkstyle
TeoHaoZhi c291244
Merge pull request #260 from TeoHaoZhi/FixDrugCorruptedFileBug
TeoHaoZhi 2bedda0
Add ppp
karishma-t 554af59
ppp
karishma-t 12a0a70
Merge pull request #262 from karishma-t/karishma-updateUG
azfarulmatin 275958c
Update Azfarul Matin PPP
azfarulmatin c6c4423
Merge pull request #263 from azfarulmatin/AzfarulMatin-Price
azfarulmatin 8b0ced8
Modify descriptions for less ambiguity
karishma-t 6115d90
Modify user story
karishma-t e5a3d0d
Merge pull request #264 from karishma-t/karishma-updateUG
TeoHaoZhi 01e137e
Update UG
TeoHaoZhi 7daca78
Merge pull request #267 from TeoHaoZhi/UGFixing
TeoHaoZhi 9380de9
add such that if past expiry date, unable to add to cart
Barbaracwx 6cb8f80
changed user guide
Barbaracwx ed3413e
edited help command
Barbaracwx c71b001
Merge pull request #268 from Barbaracwx/branch-expiredDate
TeoHaoZhi f4ab005
updated docs
Barbaracwx 780d81e
Add author tag for help command
TeoHaoZhi 846b629
Merge pull request #269 from TeoHaoZhi/AuthorTag
TeoHaoZhi 597a2fa
Merge pull request #270 from Barbaracwx/branch-expiredDate
TeoHaoZhi 370bc4e
updated PPP
Barbaracwx 248a3fa
Merge pull request #272 from Barbaracwx/newPPP
TeoHaoZhi 425e7ba
added serial number to stock level list
Barbaracwx 4110a00
edited parser to make serial number only input ABC123 format
Barbaracwx c1e5f81
Add list to see sold items
azfarulmatin 9c63a7b
Merge pull request #274 from azfarulmatin/AzfarulMatin-Price
azfarulmatin 1846960
Update save sales and list sales
azfarulmatin 59bf965
Merge branch 'AzfarulMatin-Price'
azfarulmatin 3fa94d9
Update checkoutcommand
azfarulmatin e9a9d42
Update DG
TeoHaoZhi a353a0c
Merge pull request #273 from Barbaracwx/newPPP
TeoHaoZhi d216859
Merge pull request #275 from TeoHaoZhi/DGFIX
TeoHaoZhi cc036be
Merge conflicts for CheckOutCommand
azfarulmatin 0276378
Merge branch 'AzfarulMatin-Price'
azfarulmatin 7828cb6
Update listSales and saveSales in Developer Guide and User Guide
azfarulmatin 0554b0d
Merge pull request #276 from azfarulmatin/master
azfarulmatin 5da7de5
changed md name
Barbaracwx 8eb316e
Merge pull request #277 from Barbaracwx/master
TeoHaoZhi 4f199bb
Add UML diagrams for checkout, listSales, and saveSales
azfarulmatin 51cf4b8
Merge pull request #278 from azfarulmatin/master
azfarulmatin c672739
Update Userguide
TeoHaoZhi bce5499
Merge pull request #279 from TeoHaoZhi/UGFIX2
TeoHaoZhi ad19109
Update UserGuide
TeoHaoZhi d252ca1
Merge pull request #280 from TeoHaoZhi/UGFIX2
TeoHaoZhi 08ee2f1
Update user stories
karishma-t b06c75b
Update dg
karishma-t e7da9e0
Merge pull request #281 from karishma-t/karishma-Developer-Guide
TeoHaoZhi 0ee9db2
Fix bugs for checkoutcommand to update the correct quantity in the dr…
azfarulmatin 595fb42
Fix bugs for listSales
azfarulmatin 5096597
Merge pull request #282 from azfarulmatin/master
azfarulmatin 2a509f6
Update bugs for saveSalesCommand
azfarulmatin b19df7a
Merge pull request #283 from azfarulmatin/master
azfarulmatin e792b3b
Fix bugs for malicious changes in soldItems.txt
azfarulmatin e5b91e4
Merge pull request #284 from azfarulmatin/master
azfarulmatin 2cddd0b
Add AddDescription diagram
karishma-t d1cad68
Delete soldItems.txt
TeoHaoZhi f5167f5
Merge pull request #285 from karishma-t/karishma-Developer-Guide
TeoHaoZhi 5dc151f
Update git ignore
TeoHaoZhi c29d3f4
Remove redundant exception
TeoHaoZhi c4a97ec
Merge pull request #286 from TeoHaoZhi/master
TeoHaoZhi c935684
Add delete vendor supply UG
karishma-t 523c3df
Update DG and removed some warnings
karishma-t 392cbd4
Fix PPP
TeoHaoZhi 43f8027
Merge pull request #288 from karishma-t/karishma-Developer-Guide
TeoHaoZhi 661ffa6
updated PPP
Barbaracwx 526fbcc
Merge pull request #289 from TeoHaoZhi/PPPUpdates
TeoHaoZhi 7cb107f
Merge pull request #290 from Barbaracwx/changedstuff
TeoHaoZhi 425b700
Update PPP
TeoHaoZhi f9b5fbc
Merge pull request #291 from TeoHaoZhi/PPPUpdates
TeoHaoZhi acd83aa
Update PPP
TeoHaoZhi 27df923
Merge pull request #292 from TeoHaoZhi/PPPUpdates
TeoHaoZhi c80efd1
Update ppp
karishma-t 83621e4
Merge pull request #293 from karishma-t/karishma-Developer-Guide
azfarulmatin 88d04ba
Update PPP, UML diagrams, UG and DG
azfarulmatin aa88c22
Merge pull request #295 from azfarulmatin/master
azfarulmatin f88a613
Update PPP
azfarulmatin 868fef8
Merge pull request #296 from azfarulmatin/master
azfarulmatin 10440fe
Update User Guide
azfarulmatin cfb9e0c
Merge pull request #297 from azfarulmatin/master
azfarulmatin e5bdfe1
changed parser diagram
Barbaracwx feb2bf5
changed parser diagram
Barbaracwx 1afa454
fix ppp link
karishma-t 39e38e3
Merge pull request #298 from Barbaracwx/changedstuff
azfarulmatin 6ca21e1
Merge pull request #299 from karishma-t/karishma-updateUG
azfarulmatin 5be8b0e
spacing for ppp
karishma-t 442d4db
modify spacing for ppp
karishma-t 128a97e
parser diagram
Barbaracwx c3ba10d
edited ppp
Barbaracwx 68fcf8b
Merge pull request #301 from karishma-t/karishma-updateUG
TeoHaoZhi 86116f6
Merge pull request #300 from Barbaracwx/master
TeoHaoZhi ab087ee
Update PPP
azfarulmatin d804ad8
Merge pull request #302 from azfarulmatin/master
azfarulmatin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ bin/ | |
|
||
/text-ui-test/ACTUAL.TXT | ||
text-ui-test/EXPECTED-UNIX.TXT | ||
users.txt | ||
|
||
drugs.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: seedu.stocker.Stocker | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# About us | ||
|
||
Display | Name | Github Profile | Portfolio | ||
--------|:----:|:--------------:|:---------: | ||
 | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md) | ||
 | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md) | ||
 | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md) | ||
 | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md) | ||
 | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md) | ||
| Display | Name | Github Profile | Portfolio | | ||
|-----------------------------|:----------------:|:------------------------------------------:|:--------------------------------:| | ||
|  | Martin Schneider | [Github](https://github.com/martinschnder) | [Portfolio](docs/team/Martin.md) | | ||
|  | Karishma | [Github](https://github.com/karishma-t) | [Portfolio](team/karishma.md) | | ||
|  | Barbara Chong | [Github](https://github.com/barbaracwx) | [Portfolio](team/Barbara.md) | | ||
|  | Teo Hao Zhi | [Github](https://github.com/TeoHaoZhi) | [Portfolio](team/HaoZhi.md) | | ||
|  | Azfarul Matin | [Github](https://github.com/azfarulmatin) | [Portfolio](team/Azfarul.md) | | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@startuml | ||
|
||
title Architecture Diagram | ||
|
||
skinparam component { | ||
BackgroundColor lightblue | ||
} | ||
|
||
|
||
[Parser] | ||
[Commands] | ||
[CommandResult] | ||
[LoginSystem and Ui] as interactor | ||
interface "user" | ||
|
||
user -[hidden]- Parser | ||
CommandResult -[hidden]- Parser | ||
|
||
interactor --> Parser : Makes sense of input | ||
Parser -> Commands : Searches for inputted command | ||
Commands -> CommandResult : Executes relevant command | ||
CommandResult -> interactor : Return control | ||
user -[#red]-> interactor : Logs in or Register | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@startuml FindCommandArchitectureDiagram | ||
|
||
!define LOGIC_COLOR #3333C4 | ||
|
||
!define ARROW_STYLE [-[#LOGIC_COLOR]->] | ||
|
||
actor User as U | ||
package "Your Application" { | ||
[User Interface] as UI | ||
[FindCommand] as FindCmd | ||
[Inventory] as Inv | ||
[StockEntry] as Entry | ||
[CommandResult] as CmdResult | ||
} | ||
|
||
U -down-> UI: Initiates 'Find' Command | ||
UI -down-> FindCmd: Invokes 'FindCommand' | ||
UI -down-> Inv: Accesses 'Inventory' | ||
FindCmd -down-> Entry: Iterates Through Entries | ||
Entry -down-> Entry: Checks Each Entry | ||
Entry --> FindCmd: Match/No Match | ||
FindCmd --> CmdResult: Prepares Result | ||
CmdResult -up-> UI: Returns Result | ||
CmdResult -up-> U: Displays Search Results | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@startuml FindCommandDiagram | ||
|
||
!define LOGIC_COLOR #3333C4 | ||
!define LOGIC_COLOR_T1 #7777DB | ||
|
||
actor User | ||
participant "FindCommand" as FindCmd LOGIC_COLOR_T1 | ||
participant "Inventory" as Inventory LOGIC_COLOR | ||
|
||
User -> FindCmd: Execute 'Find' Command | ||
User <-- FindCmd: CommandResult | ||
FindCmd -> Inventory: Retrieve Stock Entries | ||
Inventory --> FindCmd: List of Stock Entries | ||
FindCmd -> FindCmd: Process Entries | ||
FindCmd --> User: Display Search Results | ||
|
||
@enduml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@startuml | ||
class ListCommand { | ||
- COMMAND_WORD: String | ||
- MESSAGE_USAGE: String | ||
- MESSAGE_SUCCESS: String | ||
+ execute(): CommandResult | ||
} | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
|
||
hide footbox | ||
actor User | ||
Participant ":Stocker" as Stocker | ||
Participant ":Ui" as Ui | ||
Participant ":LoginSystem" as LoginSystem | ||
|
||
User -> Stocker : Stocker() | ||
activate Stocker | ||
Stocker -> Stocker : run() | ||
activate Stocker | ||
Stocker -> Stocker :start() | ||
Stocker -> Ui : Ui() | ||
deactivate Stocker | ||
|
||
activate Ui | ||
Ui -> Ui : showLoginMessage() | ||
activate Ui | ||
Ui -> Ui : ShowToUser() | ||
deactivate Ui | ||
Ui --> User : LoginMessage | ||
|
||
Stocker -> LoginSystem :LoginSystem() | ||
activate LoginSystem | ||
LoginSystem -> LoginSystem : run() | ||
activate LoginSystem | ||
LoginSystem -> LoginSystem : loadExistingUsers() | ||
LoginSystem -> LoginSystem: authenticateUserChoice() | ||
User -> LoginSystem : register or login input | ||
|
||
alt Register | ||
|
||
LoginSystem -> LoginSystem : newUserCreator() | ||
LoginSystem --> User : showSuccessfulRegistrationMessage() | ||
|
||
else Login | ||
LoginSystem ->LoginSystem : loginExistingUser() | ||
LoginSystem --> User: showSuccessfulLoginMessage() | ||
|
||
end | ||
deactivate LoginSystem | ||
|
||
deactivate LoginSystem | ||
|
||
@enduml |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 Design and Implementation look neat and easy to follow.