forked from nus-cs2103-AY2021S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Developer Guide to include Find Exercises feature
Add sequence diagram for Find Exercises using PlantUML
- Loading branch information
1 parent
206e419
commit 7610cf7
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":FindExercisesCommandParser" as FindExercisesCommandParser LOGIC_COLOR | ||
participant "f:FindExercisesCommand" as FindExercisesCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("find_exercises bench") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("find_exercises bench") | ||
activate AddressBookParser | ||
|
||
create FindExercisesCommandParser | ||
AddressBookParser -> FindExercisesCommandParser | ||
activate FindExercisesCommandParser | ||
|
||
FindExercisesCommandParser --> AddressBookParser | ||
deactivate FindExercisesCommandParser | ||
|
||
AddressBookParser -> FindExercisesCommandParser : parse("bench") | ||
activate FindExercisesCommandParser | ||
|
||
create FindExercisesCommand | ||
FindExercisesCommandParser -> FindExercisesCommand | ||
activate FindExercisesCommand | ||
|
||
FindExercisesCommand --> FindExercisesCommandParser : f | ||
deactivate FindExercisesCommand | ||
|
||
FindExercisesCommandParser --> AddressBookParser : f | ||
deactivate FindExercisesCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindExercisesCommandParser -[hidden]-> AddressBookParser | ||
destroy FindExercisesCommandParser | ||
|
||
AddressBookParser --> LogicManager : f | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FindExercisesCommand : execute() | ||
activate FindExercisesCommand | ||
|
||
FindExercisesCommand-> Model : updateFilteredExerciseList(predicate) | ||
activate Model | ||
|
||
Model --> FindExercisesCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindExercisesCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> FindExercisesCommand | ||
deactivate CommandResult | ||
|
||
FindExercisesCommand --> LogicManager : result | ||
deactivate FindExercisesCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.