Skip to content

Commit

Permalink
Merge pull request #116 from JerryWang0000/branch-puml
Browse files Browse the repository at this point in the history
Update UndoSequenceDiagram-Logic & -Model uml
  • Loading branch information
tsulim authored Mar 20, 2024
2 parents 4eacb41 + a20deb2 commit 47b962b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions docs/diagrams/UndoSequenceDiagram-Logic.puml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
participant ":LogicManager" as LogicManager LOGIC_COLOR
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR
participant ":StaffConnectParser" as StaffConnectParser LOGIC_COLOR
participant "u:UndoCommand" as UndoCommand LOGIC_COLOR
end box

Expand All @@ -14,23 +14,23 @@ end box
[-> LogicManager : execute(undo)
activate LogicManager

LogicManager -> AddressBookParser : parseCommand(undo)
activate AddressBookParser
LogicManager -> StaffConnectParser : parseCommand(undo)
activate StaffConnectParser

create UndoCommand
AddressBookParser -> UndoCommand
StaffConnectParser -> UndoCommand
activate UndoCommand

UndoCommand --> AddressBookParser
UndoCommand --> StaffConnectParser
deactivate UndoCommand

AddressBookParser --> LogicManager : u
deactivate AddressBookParser
StaffConnectParser --> LogicManager : u
deactivate StaffConnectParser

LogicManager -> UndoCommand : execute()
activate UndoCommand

UndoCommand -> Model : undoAddressBook()
UndoCommand -> Model : undoStaffBook()
activate Model

Model --> UndoCommand
Expand Down
14 changes: 7 additions & 7 deletions docs/diagrams/UndoSequenceDiagram-Model.puml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ skinparam ArrowFontStyle plain

box Model MODEL_COLOR_T1
participant ":Model" as Model MODEL_COLOR
participant ":VersionedAddressBook" as VersionedAddressBook MODEL_COLOR
participant ":VersionedStaffBook" as VersionedStaffBook MODEL_COLOR
end box

[-> Model : undoAddressBook()
[-> Model : undoStaffBook()
activate Model

Model -> VersionedAddressBook : undo()
activate VersionedAddressBook
Model -> VersionedStaffBook : undo()
activate VersionedStaffBook

VersionedAddressBook -> VersionedAddressBook :resetData(ReadOnlyAddressBook)
VersionedAddressBook --> Model :
deactivate VersionedAddressBook
VersionedStaffBook -> VersionedStaffBook :resetData(ReadOnlyStaffBook)
VersionedStaffBook --> Model :
deactivate VersionedStaffBook

[<-- Model
deactivate Model
Expand Down
Binary file modified docs/images/UndoSequenceDiagram-Logic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/UndoSequenceDiagram-Model.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 47b962b

Please sign in to comment.