Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix edit sequence diagram #207

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.