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.
Merge pull request #102 from bernicechio/update-DG
Update DG with design details
- Loading branch information
Showing
5 changed files
with
134 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,14 @@ | ||
@startuml | ||
start | ||
:User executes command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([command generates PDF]) | ||
:Execute Report Generator; | ||
:Generate PDF Report; | ||
else ([else]) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":GenReportCommandParser" as GenReportCommandParser LOGIC_COLOR | ||
participant "g:GenReportCommand" as GenReportCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Storage STORAGE_COLOR_T1 | ||
participant ":ReportGenerator" as Storage STORAGE_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("genReport B1") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("genReport B1") | ||
activate AddressBookParser | ||
|
||
create GenReportCommandParser | ||
AddressBookParser -> GenReportCommandParser | ||
activate GenReportCommandParser | ||
|
||
GenReportCommandParser --> AddressBookParser | ||
deactivate GenReportCommandParser | ||
|
||
AddressBookParser -> GenReportCommandParser : parse("B1") | ||
activate GenReportCommandParser | ||
|
||
create GenReportCommand | ||
GenReportCommandParser -> GenReportCommand | ||
activate GenReportCommand | ||
|
||
GenReportCommand --> GenReportCommandParser : g | ||
deactivate GenReportCommand | ||
|
||
GenReportCommandParser --> AddressBookParser : g | ||
deactivate GenReportCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
GenReportCommandParser -[hidden]-> AddressBookParser | ||
destroy GenReportCommandParser | ||
|
||
AddressBookParser --> LogicManager : g | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> GenReportCommand : execute() | ||
activate GenReportCommand | ||
|
||
GenReportCommand -> Storage : generate(body) | ||
activate Storage | ||
|
||
Storage --> GenReportCommand | ||
deactivate Storage | ||
|
||
create CommandResult | ||
GenReportCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> GenReportCommand | ||
deactivate CommandResult | ||
|
||
GenReportCommand --> LogicManager : result | ||
deactivate GenReportCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@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.