|
| 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 ":FindExercisesCommandParser" as FindExercisesCommandParser LOGIC_COLOR |
| 8 | +participant "f:FindExercisesCommand" as FindExercisesCommand 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("find_exercises bench") |
| 17 | +activate LogicManager |
| 18 | + |
| 19 | +LogicManager -> AddressBookParser : parseCommand("find_exercises bench") |
| 20 | +activate AddressBookParser |
| 21 | + |
| 22 | +create FindExercisesCommandParser |
| 23 | +AddressBookParser -> FindExercisesCommandParser |
| 24 | +activate FindExercisesCommandParser |
| 25 | + |
| 26 | +FindExercisesCommandParser --> AddressBookParser |
| 27 | +deactivate FindExercisesCommandParser |
| 28 | + |
| 29 | +AddressBookParser -> FindExercisesCommandParser : parse("bench") |
| 30 | +activate FindExercisesCommandParser |
| 31 | + |
| 32 | +create FindExercisesCommand |
| 33 | +FindExercisesCommandParser -> FindExercisesCommand |
| 34 | +activate FindExercisesCommand |
| 35 | + |
| 36 | +FindExercisesCommand --> FindExercisesCommandParser : f |
| 37 | +deactivate FindExercisesCommand |
| 38 | + |
| 39 | +FindExercisesCommandParser --> AddressBookParser : f |
| 40 | +deactivate FindExercisesCommandParser |
| 41 | +'Hidden arrow to position the destroy marker below the end of the activation bar. |
| 42 | +FindExercisesCommandParser -[hidden]-> AddressBookParser |
| 43 | +destroy FindExercisesCommandParser |
| 44 | + |
| 45 | +AddressBookParser --> LogicManager : f |
| 46 | +deactivate AddressBookParser |
| 47 | + |
| 48 | +LogicManager -> FindExercisesCommand : execute() |
| 49 | +activate FindExercisesCommand |
| 50 | + |
| 51 | +FindExercisesCommand-> Model : updateFilteredExerciseList(predicate) |
| 52 | +activate Model |
| 53 | + |
| 54 | +Model --> FindExercisesCommand |
| 55 | +deactivate Model |
| 56 | + |
| 57 | +create CommandResult |
| 58 | +FindExercisesCommand -> CommandResult |
| 59 | +activate CommandResult |
| 60 | + |
| 61 | +CommandResult --> FindExercisesCommand |
| 62 | +deactivate CommandResult |
| 63 | + |
| 64 | +FindExercisesCommand --> LogicManager : result |
| 65 | +deactivate FindExercisesCommand |
| 66 | + |
| 67 | +[<--LogicManager |
| 68 | +deactivate LogicManager |
| 69 | +@enduml |
0 commit comments