|
| 1 | +@startuml |
| 2 | +!include style.puml |
| 3 | +skinparam ArrowFontStyle plain |
| 4 | + |
| 5 | +box Logic LOGIC_COLOR_T1 |
| 6 | +participant ":LogicManager" as LogicManager LOGIC_COLOR |
| 7 | +participant ":CampusConnectParser" as CampusConnectParser LOGIC_COLOR |
| 8 | +participant ":AddTagCommandParser" as AddTagCommandParser LOGIC_COLOR |
| 9 | +participant "a:AddTagCommand" as AddTagCommand LOGIC_COLOR |
| 10 | +participant "r:CommandResult" as CommandResult LOGIC_COLOR |
| 11 | +participant "m:Model" as Model MODEL_COLOR |
| 12 | +end box |
| 13 | + |
| 14 | +[-> LogicManager : execute("addTag 2 t/mate") |
| 15 | +activate LogicManager |
| 16 | + |
| 17 | +LogicManager -> CampusConnectParser : parseCommand("addTag 2 t/mate") |
| 18 | +activate CampusConnectParser |
| 19 | + |
| 20 | +create AddTagCommandParser |
| 21 | +CampusConnectParser -> AddTagCommandParser |
| 22 | +activate AddTagCommandParser |
| 23 | + |
| 24 | +AddTagCommandParser --> CampusConnectParser |
| 25 | +deactivate AddTagCommandParser |
| 26 | + |
| 27 | +CampusConnectParser -> AddTagCommandParser: parse("2 t/mate") |
| 28 | +activate AddTagCommandParser |
| 29 | + |
| 30 | +create AddTagCommand |
| 31 | +AddTagCommandParser -> AddTagCommand |
| 32 | +activate AddTagCommand |
| 33 | + |
| 34 | +AddTagCommand --> AddTagCommandParser : |
| 35 | +deactivate AddTagCommand |
| 36 | + |
| 37 | +AddTagCommandParser --> CampusConnectParser : addTagCommand |
| 38 | +AddTagCommandParser -[hidden]-> CampusConnectParser |
| 39 | +destroy AddTagCommandParser |
| 40 | + |
| 41 | +CampusConnectParser --> LogicManager : addTagCommand |
| 42 | +deactivate CampusConnectParser |
| 43 | + |
| 44 | +LogicManager -> AddTagCommand : execute(m) |
| 45 | +activate AddTagCommand |
| 46 | + |
| 47 | +AddTagCommand -> Model : getFilteredPersonList() |
| 48 | +activate Model |
| 49 | + |
| 50 | +Model --> AddTagCommand : lastShownList |
| 51 | +deactivate Model |
| 52 | + |
| 53 | +AddTagCommand -> Model : get(index) |
| 54 | +activate Model |
| 55 | + |
| 56 | +Model --> AddTagCommand : personToEdit |
| 57 | +deactivate Model |
| 58 | + |
| 59 | +AddTagCommand -> AddTagCommand : createEditedPerson(personToEdit, addTagDescriptor) |
| 60 | + |
| 61 | +AddTagCommand --> AddTagCommand : editedPerson |
| 62 | + |
| 63 | +AddTagCommand -> Model : deletePerson(personToEdit) |
| 64 | +activate Model |
| 65 | + |
| 66 | +Model --> AddTagCommand |
| 67 | +deactivate Model |
| 68 | + |
| 69 | +AddTagCommand -> Model : insertPerson(editedPerson, index) |
| 70 | +activate Model |
| 71 | + |
| 72 | +Model --> AddTagCommand |
| 73 | +deactivate Model |
| 74 | + |
| 75 | +AddTagCommand -> Model : updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS) |
| 76 | +activate Model |
| 77 | + |
| 78 | +Model --> AddTagCommand |
| 79 | +deactivate Model |
| 80 | + |
| 81 | +create CommandResult |
| 82 | +AddTagCommand -> CommandResult |
| 83 | +activate CommandResult |
| 84 | + |
| 85 | +CommandResult --> AddTagCommand : r |
| 86 | +deactivate CommandResult |
| 87 | + |
| 88 | +AddTagCommand --> LogicManager |
| 89 | +deactivate AddTagCommand |
| 90 | + |
| 91 | +[<-- LogicManager |
| 92 | +deactivate LogicManager |
| 93 | +@enduml |
0 commit comments