-
Notifications
You must be signed in to change notification settings - Fork 519
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 #283 from sethteo/update-dg
Update dg
- Loading branch information
Showing
5 changed files
with
161 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,21 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes ViewClient command; | ||
|
||
if () then ([No 'c' prefix]) | ||
-Error: Invalid command format | ||
stop | ||
else ([Valid prefix]) | ||
if () then ([invalid index]) | ||
-Error: The person index [invalid index] provided is invalid! | ||
stop | ||
else([valid index]) | ||
:Display client with specified index; | ||
:Display client with specified index; | ||
stop | ||
|
||
endif | ||
@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,92 @@ | ||
@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 ":ViewCommandParser" as ViewCommandParser LOGIC_COLOR | ||
participant "v:ViewClientCommand" as ViewClientCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
participant "predicate:MeetingBelongingToClientPredicate" as MeetingBelongingToClientPredicate LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":ModelManager" as ModelManager MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("view c 1") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("view c 1") | ||
activate AddressBookParser | ||
|
||
create ViewCommandParser | ||
AddressBookParser -> ViewCommandParser | ||
activate ViewCommandParser | ||
|
||
ViewCommandParser --> AddressBookParser | ||
deactivate ViewCommandParser | ||
|
||
AddressBookParser -> ViewCommandParser : parse("c 1") | ||
activate ViewCommandParser | ||
|
||
create ViewClientCommand | ||
ViewCommandParser -> ViewClientCommand | ||
activate ViewClientCommand | ||
|
||
ViewClientCommand --> ViewCommandParser : v | ||
deactivate ViewClientCommand | ||
|
||
ViewCommandParser --> AddressBookParser : v | ||
deactivate ViewCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ViewCommandParser -[hidden]-> AddressBookParser | ||
destroy ViewCommandParser | ||
|
||
AddressBookParser --> LogicManager : v | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> ViewClientCommand : execute() | ||
activate ViewClientCommand | ||
|
||
ViewClientCommand -> ModelManager : getFilteredPersonList() | ||
activate ModelManager | ||
|
||
ModelManager --> ViewClientCommand : lastShownList | ||
deactivate ModelManager | ||
|
||
ViewClientCommand -> ModelManager : updateFilteredPersonList(p -> p.equals(lastShownList.get(1))) | ||
activate ModelManager | ||
|
||
ModelManager --> ViewClientCommand | ||
deactivate ModelManager | ||
|
||
create MeetingBelongingToClientPredicate | ||
ViewClientCommand -> MeetingBelongingToClientPredicate : new MeetingBelongingToClientPredicate(lastShownList.get(1)) | ||
activate MeetingBelongingToClientPredicate | ||
|
||
MeetingBelongingToClientPredicate --> ViewClientCommand : predicate | ||
deactivate MeetingBelongingToClientPredicate | ||
|
||
ViewClientCommand -> ModelManager : updateFilteredMeetingList(predicate) | ||
activate ModelManager | ||
|
||
ModelManager --> ViewClientCommand | ||
deactivate ModelManager | ||
|
||
create CommandResult | ||
ViewClientCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ViewClientCommand : r | ||
deactivate CommandResult | ||
|
||
ViewClientCommand --> LogicManager : r | ||
deactivate ViewClientCommand | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ViewCommandParser -[hidden]-> LogicManager | ||
|
||
[<-- LogicManager : r | ||
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.