Skip to content

Commit

Permalink
Add untracked puml for delete_timing diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaB4 committed Apr 15, 2024
1 parent 30ff55a commit 21e213b
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions docs/diagrams/DeleteModuleTimingSequenceDiagram.puml
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

0 comments on commit 21e213b

Please sign in to comment.