From 21e213b5ccd9051493cc070b6c2af09010091358 Mon Sep 17 00:00:00 2001 From: Aditya Bajaj Date: Mon, 15 Apr 2024 23:24:49 +0800 Subject: [PATCH] Add untracked puml for delete_timing diagram --- .../DeleteModuleTimingSequenceDiagram.puml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 docs/diagrams/DeleteModuleTimingSequenceDiagram.puml diff --git a/docs/diagrams/DeleteModuleTimingSequenceDiagram.puml b/docs/diagrams/DeleteModuleTimingSequenceDiagram.puml new file mode 100644 index 00000000000..f004f326a44 --- /dev/null +++ b/docs/diagrams/DeleteModuleTimingSequenceDiagram.puml @@ -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