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.
- Loading branch information
1 parent
0c10941
commit b3eea45
Showing
3 changed files
with
50 additions
and
31 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
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,46 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
mainframe sd Execute delete command | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant "d:DeleteCommand" as DeleteCommand LOGIC_COLOR | ||
participant "result:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Module" as Module MODEL_COLOR | ||
participant "model:Model" as Model MODEL_COLOR | ||
end box | ||
[-> DeleteCommand : execute(model) | ||
activate DeleteCommand | ||
|
||
DeleteCommand -> Model : checkDbValidModuleCode("CS3230") | ||
activate Model | ||
|
||
Model --> DeleteCommand | ||
deactivate Model | ||
|
||
DeleteCommand -> Model : getModule("CS3230") | ||
activate Model | ||
|
||
Model --> DeleteCommand : targetMod | ||
deactivate Model | ||
|
||
DeleteCommand -> Model : deleteModule(targetMod) | ||
activate Model | ||
|
||
Model --> DeleteCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteCommand | ||
deactivate CommandResult | ||
|
||
[<--DeleteCommand : result | ||
deactivate DeleteCommand | ||
@enduml |