Skip to content

Commit

Permalink
Merge pull request #253 from keithxun/branch-update-DG
Browse files Browse the repository at this point in the history
Update delete member sequence diagram
  • Loading branch information
starchypotatocode authored Nov 12, 2024
2 parents 10faa45 + a4b4caa commit a0ccb64
Showing 1 changed file with 31 additions and 38 deletions.
69 changes: 31 additions & 38 deletions docs/diagrams/DeleteSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
participant ":LogicManager" as LogicManager LOGIC_COLOR
participant ":Parser" as Parser LOGIC_COLOR
participant ":DeleteCommandParser" as DeleteCommandParser LOGIC_COLOR
participant "d:DeleteCommand" as DeleteCommand LOGIC_COLOR
participant "r:CommandResult" as CommandResult LOGIC_COLOR
participant ":HallPointerParser" as Parser LOGIC_COLOR
participant ":DeleteMemberCommandParser" as DeleteMemberCommandParser LOGIC_COLOR
participant "dmc:DeleteMemberCommand" as DeleteMemberCommand LOGIC_COLOR
participant "result:CommandResult" as CommandResult LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
participant "m:Model" as Model MODEL_COLOR
participant "member:Member" as Member MODEL_COLOR
participant "model:Model" as Model MODEL_COLOR
end box

[-> LogicManager : execute("delete_member 1")
Expand All @@ -21,57 +20,51 @@ activate LogicManager
LogicManager -> Parser : parseCommand("delete_member 1")
activate Parser

create DeleteCommandParser
Parser -> DeleteCommandParser
activate DeleteCommandParser
create DeleteMemberCommandParser
Parser -> DeleteMemberCommandParser
activate DeleteMemberCommandParser

DeleteCommandParser --> Parser
deactivate DeleteCommandParser
DeleteMemberCommandParser --> Parser
deactivate DeleteMemberCommandParser

Parser -> DeleteCommandParser : parse("1")
activate DeleteCommandParser
Parser -> DeleteMemberCommandParser : parse("1")
activate DeleteMemberCommandParser

create DeleteCommand
DeleteCommandParser -> DeleteCommand
activate DeleteCommand
create DeleteMemberCommand
DeleteMemberCommandParser -> DeleteMemberCommand
activate DeleteMemberCommand

DeleteCommand --> DeleteCommandParser :
deactivate DeleteCommand
DeleteMemberCommand --> DeleteMemberCommandParser : dmc
deactivate DeleteMemberCommand

DeleteCommandParser --> Parser : d
deactivate DeleteCommandParser
DeleteMemberCommandParser --> Parser : dmc
deactivate DeleteMemberCommandParser
'Hidden arrow to position the destroy marker below the end of the activation bar.
DeleteCommandParser -[hidden]-> Parser
destroy DeleteCommandParser
DeleteMemberCommandParser -[hidden]-> Parser
destroy DeleteMemberCommandParser

Parser --> LogicManager : d
Parser --> LogicManager : dmc
deactivate Parser

LogicManager -> DeleteCommand : execute(m)
activate DeleteCommand
LogicManager -> DeleteMemberCommand : execute(model)
activate DeleteMemberCommand

DeleteCommand -> Model : getFilteredMemberList()
DeleteMemberCommand -> Model : deleteMember(member)
activate Model

Model --> DeleteCommand : List<Member>
deactivate Model

DeleteCommand -> Model : deleteMember(member)
activate Model

Model --> DeleteCommand
Model --> DeleteMemberCommand
deactivate Model

create CommandResult
DeleteCommand -> CommandResult
DeleteMemberCommand -> CommandResult
activate CommandResult

CommandResult --> DeleteCommand
CommandResult --> DeleteMemberCommand : result
deactivate CommandResult

DeleteCommand --> LogicManager : r
deactivate DeleteCommand
DeleteMemberCommand --> LogicManager : result
deactivate DeleteMemberCommand

[<--LogicManager
[<-- LogicManager
deactivate LogicManager
@enduml

0 comments on commit a0ccb64

Please sign in to comment.