-
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 #162 from AY2324S2-CS2103T-W12-2/aditya/dg-tweaks
Add untracked puml for delete_timing diagram
- Loading branch information
Showing
1 changed file
with
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@startuml | ||
'Belongs to @AdityaB4, Adapted from author of AddModuleTimingSequenceDiagram | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":DeleteStudentModuleTimingCommandParser" as DeleteStudentModuleTimingCommandParser LOGIC_COLOR | ||
participant "d:DeleteStudentModuleTimingCommand" as DeleteStudentModuleTimingCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("delete_timing i/1 m/CS2103T d/Mon st/0800 et/1200") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("delete_timing i/1 m/CS2103T d/Mon st/0800 et/1200") | ||
activate AddressBookParser | ||
|
||
create DeleteStudentModuleTimingCommandParser | ||
AddressBookParser -> DeleteStudentModuleTimingCommandParser | ||
activate DeleteStudentModuleTimingCommandParser | ||
|
||
DeleteStudentModuleTimingCommandParser --> AddressBookParser | ||
deactivate DeleteStudentModuleTimingCommandParser | ||
|
||
AddressBookParser -> DeleteStudentModuleTimingCommandParser : parse("i/1 m/CS2103T d/Mon st/0800 et/1200") | ||
activate DeleteStudentModuleTimingCommandParser | ||
|
||
create DeleteStudentModuleTimingCommand | ||
DeleteStudentModuleTimingCommandParser -> DeleteStudentModuleTimingCommand | ||
activate DeleteStudentModuleTimingCommand | ||
|
||
DeleteStudentModuleTimingCommand --> DeleteStudentModuleTimingCommandParser : | ||
deactivate DeleteStudentModuleTimingCommand | ||
|
||
DeleteStudentModuleTimingCommandParser --> AddressBookParser : d | ||
deactivate DeleteStudentModuleTimingCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteStudentModuleTimingCommandParser -[hidden]-> AddressBookParser | ||
destroy DeleteStudentModuleTimingCommandParser | ||
|
||
AddressBookParser --> LogicManager : d | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> DeleteStudentModuleTimingCommand : execute(m) | ||
activate DeleteStudentModuleTimingCommand | ||
|
||
DeleteStudentModuleTimingCommand -> Model : deleteModuleTimingFromStudent(moduleTiming, studentToModify) | ||
activate Model | ||
|
||
Model --> DeleteStudentModuleTimingCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteStudentModuleTimingCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteStudentModuleTimingCommand | ||
deactivate CommandResult | ||
|
||
DeleteStudentModuleTimingCommand --> LogicManager : r | ||
deactivate DeleteStudentModuleTimingCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |