forked from nus-cs2103-AY1920S1/addressbook-level3
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
12,141 additions
and
596 deletions.
There are no files selected for viewing
This file contains 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains 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 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 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 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,17 +1,21 @@ | ||
@startuml | ||
(*) --> "check input" | ||
If "shares.length == name.length?" then | ||
--> [Yes] "set user's share to 0" | ||
--> "create split" | ||
--> (*) | ||
else | ||
if "share size is 1 more than name?" | ||
--> [yes] "user's share is the first" | ||
--> "create split" | ||
else | ||
--> "throw error" | ||
endif | ||
Endif | ||
-->(*) | ||
start | ||
:User executes Split command; | ||
:SplitCommandParser parses and validates user input; | ||
|
||
if() then ([Valid input]) | ||
|
||
:Creates SplitCommand containing List of shares and people; | ||
:Calculates Amount for each Person; | ||
:Update balance for each Person; | ||
:Update balance for Ledger; | ||
:Commit UserState; | ||
|
||
else([else]) | ||
:Throw ParseException; | ||
endif | ||
|
||
stop | ||
|
||
@enduml | ||
|
This file contains 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 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 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 +1 @@ | ||
<mxfile host="www.draw.io" modified="2019-11-10T08:33:31.177Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" etag="RSX0KZy_yEj3TpObvk-o" version="12.2.3" type="device" pages="1"><diagram name="Page-1" id="c4acf3e9-155e-7222-9cf6-157b1a14988f">7Vxtb9s2EP41BroBDfRiWfZHx3lZgWTp6m7tPg20xdhqZdGT6CTer99RIvVCUpaSWLbbqCha8URS0vHhc8c70j17snq6jtB6eUs8HPQsw3vq2Rc9yzL7xhD+Y5JtKnFdNxUsIt/jlXLB1P8Pc6HBpRvfw3GpIiUkoP66LJyTMMRzWpKhKCKP5Wr3JCg/dY0WWBFM5yhQpV98jy5T6dAxcvlv2F8sxZNNg9+Zofn3RUQ2IX9ez7Lvkz/p7RUSffH68RJ55LEgsi979iQihKZXq6cJDphuhdrSdlcVd7P3jnBIGzVw0XyG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xq17lqtF89UH7KFrNmFbnbYjoyEemCnS1ZTP1oqEldtlN70W0q/LlWj69Crbx6zFz+Q6we9bBVWaSDbQfbGtgOjw5bS4Gt5nBLIcV0GudZOoz/OBg3jo7x1+/ifcXvA4nlcJOVcrvBQOWsc82SfFcquri82UEs+w8aSscJ7JbWzUpw0q2J9Zmvq2+b+40N6sdE3fRrnJ29ocWOHB7UcZPu8H57ix3nx6Gm3RTzUuraIzUNm1JTxS84vJaaZMM3aoma5MzZyNlNNfJ7OYegGnW/2xunGs0K9bBUoyaGVmzvzxseEkfdKnHYITlOcujndExHTdn/OL9Tacv+nrubtOX6o0OQtrrj642TtiY+c1CG0JxV3mKkhhTfzoiMWuNsKOa/Bp9Oqfwn9+3L/wE=</diagram></mxfile> | ||
<mxfile host="www.draw.io" modified="2019-11-11T13:45:30.168Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36" etag="Hiek4UauTVmTFnLD2nXK" version="12.2.3" type="device" pages="1"><diagram name="Page-1" id="c4acf3e9-155e-7222-9cf6-157b1a14988f">7Vxtc5s4EP41nsndTDK8GGM+Os7LdSa59Or02n7qyEaxaTDygZzY/fUngcSLJAxODE4bMpkMWiQBq0fPrnal9MzxcnMdgtXiFrnQ7xmau+mZFz3DcEyD/KWCbSLoD+1EMA89NxHpmWDi/YRMqDHp2nNhVKiIEfKxtyoKZygI4AwXZCAM0XOx2gPyi09dgTmUBJMZ8GXpF8/Fi0Q6tLRM/hf05gv+ZF1jd6Zg9jgP0Tpgz+sZ5kP8k9xeAt4Xqx8tgIuecyLzsmeOQ4RwcrXcjKFPVcvVlrS7KrmbvncIA1yrgQ1mU2DZ/SG0TGcwPeUv9gT8NeTfMPBJZ+eu90Qu5/SyZ5+DaYRDQHRvX/AK5DH5OnKzMVouAVENuzMNxbpiD7GK8JYPS/TsLX0QkNL5Ai99ItTJ5QMK8IRV0kh5tvB89wZs0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TH++k28r/j3QHw5XGel3HosML8C35V4zq9mdvJI4zFD4TSB2dC6WYpN2hWhPv119U39sKFB9SDJe361s7N3tNgRo4MqblKd3W9usWP9OtRUERh8IXW9nJqGdamppWBLXzR8TkPUJCbOHGs31YjvZbVBNfJ2t3dONYoVartUI+eFlnTrzzseEkveKdHukBwnN/RbOKZOXfbXG2H/vUnbFP09ezdpi/WdNkhb3vD1zklbEZ9plSEUR5W3EMghxfczIk5jnE2K2T+DT6ZU9g/3zcv/AQ==</diagram></mxfile> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.