Skip to content

Commit

Permalink
Merge pull request #207 from seadragon2000341/fix-dg-bug
Browse files Browse the repository at this point in the history
fix edit sequence diagram
  • Loading branch information
eugenetangkj authored Apr 10, 2023
2 parents 0e40b7b + 64d1d15 commit 676f800
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions docs/diagrams/EditSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ participant ":LogicManager" as LogicManager LOGIC_COLOR
participant ":InternBuddyParser" as InternBuddyParser LOGIC_COLOR
participant ":EditCommandParser" as EditCommandParser LOGIC_COLOR
participant "e:EditCommand" as EditCommand LOGIC_COLOR
participant ":cr:CommandResult" as CommandResult LOGIC_COLOR
participant "cr:CommandResult" as CommandResult LOGIC_COLOR
participant ":EditInternshipDescriptor" as Descriptor LOGIC_COLOR
participant "<<class>> \n EditCommand" as ClassEditCommand LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
Expand Down Expand Up @@ -52,15 +53,24 @@ deactivate InternBuddyParser

LogicManager -> EditCommand : execute()
activate EditCommand
EditCommand -> Descriptor
activate Descriptor
Descriptor --> EditCommand : edited
deactivate Descriptor
Descriptor -[hidden]-> EditCommand
destroy Descriptor
EditCommand -> ClassEditCommand : createEditedInternship(toEdit, editInternshipDescriptor)
activate ClassEditCommand
ClassEditCommand -->EditCommand :edited
deactivate ClassEditCommand
'EditCommand -> Descriptor
'activate Descriptor
'Descriptor --> EditCommand : edited
'deactivate Descriptor
'Descriptor -[hidden]-> EditCommand
'destroy Descriptor
EditCommand -> Model : setInternship(toEdit, edited)
activate Model

Model --> EditCommand
deactivate Model
EditCommand -> Model : updateSelectedInternship(edited)
activate Model

Model --> EditCommand
deactivate Model

Expand All @@ -74,7 +84,8 @@ deactivate CommandResult
EditCommand --> LogicManager : cr
deactivate EditCommand

[<--LogicManager
[<--LogicManager : cr
destroy EditCommand
destroy Descriptor
deactivate LogicManager
@enduml
Binary file modified docs/images/EditSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 676f800

Please sign in to comment.