forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from jiahui0309/edit-dg-implementation
Fix DG features sequence diagrams
- Loading branch information
Showing
15 changed files
with
297 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,18 +6,26 @@ box Logic LOGIC_COLOR_T1 | |
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":AddCommandParser" as AddCommandParser LOGIC_COLOR | ||
participant "d:AddCommand" as AddCommand LOGIC_COLOR | ||
participant "p:Person" as Person LOGIC_COLOR | ||
participant "a:AddCommand" as AddCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("add n/John Doe p/12345678 \n e/[email protected] i/T0123456A ag/12 s/Male \n a/John street, block 123, #01-01") | ||
note left of LogicManager | ||
In the diagram, params refers to the following: | ||
"n\John Doe p\12345678 | ||
e\[email protected] i\T0123456A ag\12 s\M | ||
a\John street, block 123, #01-01" | ||
end note | ||
|
||
[-> LogicManager : execute("add params") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("add n/John Doe p/12345678 \n e/[email protected] i/T0123456A ag/12 s/Male \n a/John street, block 123, #01-01") | ||
LogicManager -> AddressBookParser : parseCommand("add params") | ||
activate AddressBookParser | ||
|
||
create AddCommandParser | ||
|
@@ -27,14 +35,21 @@ activate AddCommandParser | |
AddCommandParser --> AddressBookParser | ||
deactivate AddCommandParser | ||
|
||
AddressBookParser -> AddCommandParser : parse("add n/John Doe p/12345678 \n e/[email protected] i/T0123456A ag/12 s/Male \n a/John street, block 123, #01-01") | ||
AddressBookParser -> AddCommandParser : parse("params") | ||
activate AddCommandParser | ||
|
||
create Person | ||
AddCommandParser -> Person: | ||
activate Person | ||
|
||
Person --> AddCommandParser | ||
deactivate Person | ||
|
||
create AddCommand | ||
AddCommandParser -> AddCommand | ||
AddCommandParser -> AddCommand : new AddCommand(p) | ||
activate AddCommand | ||
|
||
AddCommand --> AddCommandParser : | ||
AddCommand --> AddCommandParser : a | ||
deactivate AddCommand | ||
|
||
AddCommandParser --> AddressBookParser : a | ||
|
@@ -49,7 +64,13 @@ deactivate AddressBookParser | |
LogicManager -> AddCommand : execute(m) | ||
activate AddCommand | ||
|
||
AddCommand -> Model : setPerson(T0123456A, \n new Person(John Doe, 12345678, ...)) | ||
AddCommand -> Model : hasPerson(p) | ||
activate Model | ||
|
||
Model --> AddCommand | ||
deactivate Model | ||
|
||
AddCommand -> Model : addPerson(p) | ||
activate Model | ||
|
||
Model --> AddCommand | ||
|
@@ -65,6 +86,10 @@ deactivate CommandResult | |
AddCommand --> LogicManager : r | ||
deactivate AddCommand | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
AddCommand -[hidden]-> LogicManager | ||
destroy AddCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@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
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
Oops, something went wrong.