forked from AY2425S1-CS2103T-F13-4/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
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 AY2425S1-CS2103T-F13-4#83 from beginner-web-develo…
…per/update-uml-for-view-transactions Update DG for listt
- Loading branch information
Showing
3 changed files
with
101 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes listt command; | ||
:Model updates person list; | ||
:GUI displays transactions list; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([execute deletet command]) | ||
:Delete transaction; | ||
:Model updates transaction list; | ||
else([execute summary command]) | ||
:Model filters transaction list; | ||
endif | ||
|
||
:GUI displays transaction list; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "t:ListTransactionCommand" as ListTransactionCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(listt 1) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(listt 1)) | ||
activate AddressBookParser | ||
|
||
create ListTransactionCommand | ||
AddressBookParser -> ListTransactionCommand | ||
activate ListTransactionCommand | ||
|
||
ListTransactionCommand --> AddressBookParser | ||
deactivate ListTransactionCommand | ||
|
||
AddressBookParser --> LogicManager : t | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> ListTransactionCommand : execute() | ||
activate ListTransactionCommand | ||
|
||
ListTransactionCommand -> Model : updateFilteredPersonList() | ||
activate Model | ||
|
||
Model --> ListTransactionCommand | ||
deactivate Model | ||
|
||
ListTransactionCommand -> Model : setViewTransactions(true) | ||
activate Model | ||
|
||
Model --> ListTransactionCommand | ||
deactivate Model | ||
|
||
ListTransactionCommand -> Model : updateTransactionList() | ||
activate Model | ||
|
||
Model --> ListTransactionCommand | ||
deactivate Model | ||
|
||
ListTransactionCommand --> LogicManager : result | ||
deactivate ListTransactionCommand | ||
ListTransactionCommand -[hidden]-> LogicManager : result | ||
destroy ListTransactionCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |