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 #102 from ReganChoy/branch-DG_v1.3
Update DG for LastMet
- Loading branch information
Showing
3 changed files
with
111 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,26 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam objectFontColor white | ||
|
||
object "<u>:LastMetCommand</u>" as LastMetCommand LOGIC_COLOR | ||
object "<u>:LastMetCommandParser</u>" as LastMetCommandParser LOGIC_COLOR | ||
object "<u>:AddressBookParser</u>" as AddressBookParser LOGIC_COLOR | ||
object "<u>:Model</u>" as Model MODEL_COLOR | ||
object "<u>:CommandResult</u>" as CommandResult LOGIC_COLOR | ||
object "<u>metPerson:Person" as Person1 LOGIC_COLOR | ||
object "<u>personToMeet:Person" as Person2 LOGIC_COLOR | ||
object "<u>:ArgumentMultimap" as ArgumentMultimap LOGIC_COLOR | ||
object "<u>:ParserUtil" as ParserUtil LOGIC_COLOR | ||
|
||
AddressBookParser --> LastMetCommandParser : calls | ||
AddressBookParser --> LastMetCommand | ||
LastMetCommandParser -> LastMetCommand | ||
LastMetCommandParser --> ArgumentMultimap : instantiates | ||
ParserUtil --> ArgumentMultimap : parses | ||
LastMetCommand --> Person1 | ||
LastMetCommand --> Person2 | ||
LastMetCommand --> Model | ||
LastMetCommand -right-> CommandResult : outputs | ||
Model --> Person2 : Removes | ||
Model --> Person1 : Updates | ||
@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,60 @@ | ||
@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 "a:LastMetCommand" as LastMetCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute("met 1 d/2024-03-04") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("met 1 d/2024-03-04") | ||
activate AddressBookParser | ||
|
||
create LastMetCommand | ||
AddressBookParser -> LastMetCommand : LastMetCommand(1, newLastMet) | ||
activate LastMetCommand | ||
|
||
LastMetCommand --> AddressBookParser | ||
deactivate LastMetCommand | ||
|
||
AddressBookParser --> LogicManager : a | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> LastMetCommand : execute() | ||
activate LastMetCommand | ||
|
||
LastMetCommand -> Model : setPerson(personToMeet, metPerson) | ||
activate Model | ||
|
||
Model --> LastMetCommand | ||
deactivate Model | ||
|
||
LastMetCommand -> Model : setDisplayClient(metPerson) | ||
activate Model | ||
|
||
Model --> LastMetCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
LastMetCommand --> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> LastMetCommand | ||
deactivate CommandResult | ||
|
||
LastMetCommand --> LogicManager : result | ||
deactivate LastMetCommand | ||
LastMetCommand -[hidden]-> LogicManager : result | ||
destroy LastMetCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |