forked from nus-cs2103-AY2324S1/tp
-
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 #168 from NgChunMan/166-Update-DG
166 Update DG
- Loading branch information
Showing
5 changed files
with
108 additions
and
48 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,91 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ProfBookParser" as ProfBookParser LOGIC_COLOR | ||
participant ":DeleteTaskCommandParser" as DeleteTaskCommandParser LOGIC_COLOR | ||
participant "d:DeleteTaskCommand" as DeleteTaskCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":ModelManager" as ModelManagerStatic MODEL_COLOR | ||
participant "opr:TaskOperation" as TaskOperation MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("rmt 1") | ||
activate LogicManager | ||
|
||
LogicManager -> ProfBookParser : parseCommand("rmt 1") | ||
activate ProfBookParser | ||
|
||
create DeleteTaskCommandParser | ||
ProfBookParser -> DeleteTaskCommandParser | ||
activate DeleteTaskCommandParser | ||
|
||
DeleteTaskCommandParser --> ProfBookParser | ||
deactivate DeleteTaskCommandParser | ||
|
||
ProfBookParser -> DeleteTaskCommandParser : parse("1") | ||
activate DeleteTaskCommandParser | ||
|
||
create DeleteTaskCommand | ||
DeleteTaskCommandParser -> DeleteTaskCommand | ||
activate DeleteTaskCommand | ||
|
||
DeleteTaskCommand --> DeleteTaskCommandParser : d | ||
deactivate DeleteTaskCommand | ||
|
||
DeleteTaskCommandParser --> ProfBookParser : d | ||
deactivate DeleteTaskCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteTaskCommandParser -[hidden]-> ProfBookParser | ||
destroy DeleteTaskCommandParser | ||
|
||
ProfBookParser --> LogicManager : d | ||
deactivate ProfBookParser | ||
|
||
LogicManager -> DeleteTaskCommand : execute(state) | ||
activate DeleteTaskCommand | ||
|
||
DeleteTaskCommand -> ModelManagerStatic : taskOperation(new Path("~/grp-001")) | ||
activate ModelManagerStatic | ||
|
||
create TaskOperation | ||
ModelManagerStatic -> TaskOperation | ||
activate TaskOperation | ||
|
||
TaskOperation --> ModelManagerStatic : opr | ||
deactivate TaskOperation | ||
|
||
ModelManagerStatic --> DeleteTaskCommand :opr | ||
deactivate ModelManagerStatic | ||
|
||
DeleteTaskCommand -> TaskOperation : opr.deleteTask(1) | ||
activate TaskOperation | ||
|
||
TaskOperation --> DeleteTaskCommand | ||
|
||
destroy TaskOperation | ||
|
||
DeleteTaskCommand -> ModelManagerStatic : updateList() | ||
activate ModelManagerStatic | ||
|
||
ModelManagerStatic --> DeleteTaskCommand | ||
deactivate ModelManagerStatic | ||
|
||
create CommandResult | ||
DeleteTaskCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteTaskCommand : result | ||
deactivate CommandResult | ||
|
||
DeleteTaskCommand --> LogicManager : result | ||
deactivate DeleteTaskCommand | ||
|
||
[<--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 was deleted.
Oops, something went wrong.