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 #165 from Lin-Shuang-Shuang/branch-DGfeature
Update DG
- Loading branch information
Showing
27 changed files
with
731 additions
and
193 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,84 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":PlannerParser" as PlannerParser LOGIC_COLOR | ||
participant ":AddCommentCommandParser" as AddCommentCommandParser LOGIC_COLOR | ||
participant "d:AddCommentCommand" as AddCommentCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
participant "Duke:Project" as Project1 MODEL_COLOR | ||
|
||
end box | ||
|
||
[-> LogicManager : execute("add comment c1 /from p2 /to Duke") | ||
activate LogicManager | ||
|
||
LogicManager -> PlannerParser : parseCommand("add comment c1 /from pa /to a") | ||
activate PlannerParser | ||
|
||
create AddCommentCommandParser | ||
PlannerParser -> AddCommentCommandParser | ||
activate AddCommentCommandParser | ||
|
||
AddCommentCommandParser --> PlannerParser | ||
deactivate AddCommentCommandParser | ||
|
||
PlannerParser -> AddCommentCommandParser : parse("c1 /from p2 /to Duke") | ||
activate AddCommentCommandParser | ||
|
||
create AddCommentCommand | ||
AddCommentCommandParser -> AddCommentCommand | ||
activate AddCommentCommand | ||
|
||
AddCommentCommand --> AddCommentCommandParser : | ||
deactivate AddCommentCommand | ||
|
||
AddCommentCommandParser --> PlannerParser : d | ||
deactivate AddCommentCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
AddCommentCommandParser -[hidden]-> PlannerParser | ||
destroy AddCommentCommandParser | ||
|
||
PlannerParser --> LogicManager : d | ||
deactivate PlannerParser | ||
|
||
LogicManager -> AddCommentCommand : execute(m) | ||
activate AddCommentCommand | ||
|
||
AddCommentCommand -> Model : findProject(Duke) | ||
activate Model | ||
|
||
Model --> AddCommentCommand: Duke | ||
deactivate Model | ||
|
||
AddCommentCommand -> Project1: addComment(c1) | ||
|
||
activate Project1 | ||
|
||
|
||
Project1 --> AddCommentCommand: | ||
deactivate Project1 | ||
|
||
|
||
|
||
create CommandResult | ||
AddCommentCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AddCommentCommand | ||
deactivate CommandResult | ||
|
||
|
||
|
||
AddCommentCommand --> LogicManager : r | ||
deactivate AddCommentCommand | ||
|
||
[<--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
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
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
Oops, something went wrong.