-
Notifications
You must be signed in to change notification settings - Fork 520
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 #233 from NatLeong/update-readcheck-uml
Update UML diagrams for read and check commands
- Loading branch information
Showing
4 changed files
with
80 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
@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 ":CheckCommandParser" as CheckCommandParser LOGIC_COLOR | ||
participant "c:CheckCommand" as CheckCommand 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("check T0123456A") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("check T0123456A") | ||
activate AddressBookParser | ||
|
||
create CheckCommandParser | ||
AddressBookParser -> CheckCommandParser | ||
activate CheckCommandParser | ||
|
||
CheckCommandParser --> AddressBookParser | ||
deactivate CheckCommandParser | ||
|
||
AddressBookParser -> CheckCommandParser : parse("T0123456A") | ||
activate CheckCommandParser | ||
|
||
create CheckCommand | ||
CheckCommandParser -> CheckCommand | ||
activate CheckCommand | ||
|
||
CheckCommand --> CheckCommandParser : | ||
deactivate CheckCommand | ||
|
||
CheckCommandParser --> AddressBookParser : c | ||
deactivate CheckCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
CheckCommandParser -[hidden]-> AddressBookParser | ||
destroy CheckCommandParser | ||
|
||
AddressBookParser --> LogicManager : c | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> CheckCommand : execute(m) | ||
activate CheckCommand | ||
|
||
CheckCommand -> Model : updateFilteredPersonList(new NricContainsKeywordsPredicate("T0123456A")); | ||
activate Model | ||
|
||
Model --> CheckCommand : getFilteredPersonList() | ||
deactivate Model | ||
|
||
CheckCommand -> Model : updateFilteredVisitList(new VisitContainsNricPredicate("T0123456A")); | ||
activate Model | ||
|
||
Model --> CheckCommand : getFilteredVisitList() | ||
deactivate Model | ||
|
||
create CommandResult | ||
CheckCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> CheckCommand | ||
deactivate CommandResult | ||
|
||
CheckCommand --> LogicManager : r | ||
deactivate CheckCommand | ||
|
||
[<--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
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.