|
| 1 | +@startuml |
| 2 | +!include style.puml |
| 3 | + |
| 4 | +box Logic LOGIC_COLOR_T1 |
| 5 | +participant ":LogicManager" as LogicManager LOGIC_COLOR |
| 6 | +participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR |
| 7 | +participant ":DeleteGroupCommandParser" as DeleteGroupCommandParser LOGIC_COLOR |
| 8 | +participant "d:DeleteGroupCommand" as DeleteGroupCommand LOGIC_COLOR |
| 9 | +participant ":CommandResult" as CommandResult LOGIC_COLOR |
| 10 | +end box |
| 11 | + |
| 12 | +box Model MODEL_COLOR_T1 |
| 13 | +participant ":Model" as Model MODEL_COLOR |
| 14 | +end box |
| 15 | + |
| 16 | +[-> LogicManager : execute("deletegroup g/TUT05") |
| 17 | +activate LogicManager |
| 18 | + |
| 19 | +LogicManager -> AddressBookParser : parseCommand("deletegroup g/TUT05") |
| 20 | +activate AddressBookParser |
| 21 | + |
| 22 | +create DeleteGroupCommandParser |
| 23 | +AddressBookParser -> DeleteGroupCommandParser |
| 24 | +activate DeleteGroupCommandParser |
| 25 | + |
| 26 | +DeleteGroupCommandParser --> AddressBookParser |
| 27 | +deactivate DeleteGroupCommandParser |
| 28 | + |
| 29 | +AddressBookParser -> DeleteGroupCommandParser : parse("g/TUT05") |
| 30 | +activate DeleteGroupCommandParser |
| 31 | + |
| 32 | +create DeleteGroupCommand |
| 33 | +DeleteGroupCommandParser -> DeleteGroupCommand |
| 34 | +activate DeleteGroupCommand |
| 35 | + |
| 36 | +DeleteGroupCommand --> DeleteGroupCommandParser : d |
| 37 | +deactivate DeleteGroupCommand |
| 38 | + |
| 39 | +DeleteGroupCommandParser --> AddressBookParser : d |
| 40 | +deactivate DeleteGroupCommandParser |
| 41 | + |
| 42 | +DeleteGroupCommandParser -[hidden]-> AddressBookParser |
| 43 | +destroy DeleteGroupCommandParser |
| 44 | + |
| 45 | +AddressBookParser --> LogicManager : d |
| 46 | +deactivate AddressBookParser |
| 47 | + |
| 48 | +LogicManager -> DeleteGroupCommand : execute() |
| 49 | +activate DeleteGroupCommand |
| 50 | + |
| 51 | +DeleteGroupCommand -> Model : getFilteredGroupList() |
| 52 | +activate Model |
| 53 | + |
| 54 | +Model --> DeleteGroupCommand |
| 55 | +deactivate Model |
| 56 | + |
| 57 | +DeleteGroupCommand -> Model : deleteGroup(example) |
| 58 | +activate Model |
| 59 | + |
| 60 | +Model --> DeleteGroupCommand |
| 61 | +deactivate Model |
| 62 | + |
| 63 | +create CommandResult |
| 64 | +DeleteGroupCommand -> CommandResult |
| 65 | +activate CommandResult |
| 66 | + |
| 67 | +CommandResult --> DeleteGroupCommand : result |
| 68 | +deactivate CommandResult |
| 69 | + |
| 70 | +DeleteGroupCommand --> LogicManager : result |
| 71 | +deactivate DeleteGroupCommand |
| 72 | + |
| 73 | +[<--LogicManager |
| 74 | +deactivate LogicManager |
| 75 | +@enduml |
0 commit comments