forked from AY2324S2-CS2103T-T08-1/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.
Merge branch 'alex-setyawan-developer-guide-3' into upstream
* alex-setyawan-developer-guide-3: Edit diagram for deleteinfo command Fix format issues, add implementation of find and cluster commands Add sequence diagram images Add another update command sequence diagram Add cluster, find and update logic sequence diagrams # Conflicts: # docs/DeveloperGuide.md # docs/diagrams/DeleteInfoModelDiagram.puml # docs/images/DeleteInfoModelDiagram.png
- Loading branch information
Showing
18 changed files
with
419 additions
and
61 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,63 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR | ||
participant ":ClusterCommandParser" as ClusterCommandParser LOGIC_COLOR | ||
participant "c:ClusterCommand" as ClusterCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("cluster 50 ...") | ||
activate LogicManager | ||
LogicManager -> ImmuniMateParser : parseCommand("cluster 50 ...") | ||
activate ImmuniMateParser | ||
|
||
create ClusterCommandParser | ||
ImmuniMateParser -> ClusterCommandParser | ||
activate ClusterCommandParser | ||
ClusterCommandParser --> ImmuniMateParser | ||
deactivate ClusterCommandParser | ||
ImmuniMateParser -> ClusterCommandParser : parse("50 ...") | ||
activate ClusterCommandParser | ||
|
||
create ClusterCommand | ||
ClusterCommandParser -> ClusterCommand | ||
activate ClusterCommand | ||
ClusterCommand --> ClusterCommandParser | ||
deactivate ClusterCommand | ||
ClusterCommandParser --> ImmuniMateParser : c | ||
deactivate ClusterCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ClusterCommandParser -[hidden]-> ImmuniMateParser | ||
destroy ClusterCommandParser | ||
ImmuniMateParser --> LogicManager : c | ||
deactivate ImmuniMateParser | ||
LogicManager -> ClusterCommand : execute(m) | ||
activate ClusterCommand | ||
ClusterCommand -> Model : updateFilteredPersonList(...) | ||
activate Model | ||
Model --> ClusterCommand | ||
deactivate Model | ||
ClusterCommand -> Model : getFilteredPersonList(...) | ||
activate Model | ||
Model --> ClusterCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ClusterCommand -> CommandResult | ||
activate CommandResult | ||
CommandResult --> ClusterCommand | ||
deactivate | ||
ClusterCommand --> LogicManager : r | ||
deactivate ClusterCommand | ||
|
||
[<--LogicManager : r | ||
deactivate LogicManager | ||
@enduml |
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
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,59 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR | ||
participant ":FindCommandParser" as FindCommandParser LOGIC_COLOR | ||
participant "f:FindCommand" as FindCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("find ...") | ||
activate LogicManager | ||
LogicManager -> ImmuniMateParser : parseCommand("find ...") | ||
activate ImmuniMateParser | ||
|
||
create FindCommandParser | ||
ImmuniMateParser -> FindCommandParser | ||
activate FindCommandParser | ||
FindCommandParser --> ImmuniMateParser | ||
deactivate FindCommandParser | ||
ImmuniMateParser -> FindCommandParser : parse("...") | ||
activate FindCommandParser | ||
|
||
create FindCommand | ||
FindCommandParser -> FindCommand | ||
activate FindCommand | ||
FindCommand --> FindCommandParser | ||
deactivate FindCommand | ||
FindCommandParser --> ImmuniMateParser : f | ||
deactivate FindCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindCommandParser -[hidden]-> ImmuniMateParser | ||
destroy FindCommandParser | ||
ImmuniMateParser --> LogicManager : f | ||
deactivate ImmuniMateParser | ||
LogicManager -> FindCommand : execute(m) | ||
activate FindCommand | ||
FindCommand -> Model : updateFilteredPersonList(...) | ||
activate Model | ||
Model --> FindCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindCommand -> CommandResult | ||
activate CommandResult | ||
CommandResult --> FindCommand | ||
deactivate | ||
FindCommand --> LogicManager : r | ||
deactivate FindCommand | ||
|
||
[<--LogicManager : r | ||
deactivate LogicManager | ||
@enduml |
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
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,71 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR | ||
participant ":UpdateCommandParser" as UpdateCommandParser LOGIC_COLOR | ||
participant "u:UpdateCommand" as UpdateCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("update T0123456A ...") | ||
activate LogicManager | ||
LogicManager -> ImmuniMateParser : parseCommand("update T0123456A ...") | ||
activate ImmuniMateParser | ||
|
||
create UpdateCommandParser | ||
ImmuniMateParser -> UpdateCommandParser | ||
activate UpdateCommandParser | ||
UpdateCommandParser --> ImmuniMateParser | ||
deactivate UpdateCommandParser | ||
ImmuniMateParser -> UpdateCommandParser : parse("T0123456A ...") | ||
activate UpdateCommandParser | ||
|
||
create UpdateCommand | ||
UpdateCommandParser -> UpdateCommand | ||
activate UpdateCommand | ||
UpdateCommand --> UpdateCommandParser | ||
deactivate UpdateCommand | ||
UpdateCommandParser --> ImmuniMateParser : u | ||
deactivate UpdateCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
UpdateCommandParser -[hidden]-> ImmuniMateParser | ||
destroy UpdateCommandParser | ||
ImmuniMateParser --> LogicManager : u | ||
deactivate ImmuniMateParser | ||
LogicManager -> UpdateCommand : execute(m) | ||
activate UpdateCommand | ||
UpdateCommand -> Model : getFilteredPersonList() | ||
activate Model | ||
Model --> UpdateCommand : lastShownList | ||
deactivate Model | ||
UpdateCommand -> Model : hasPerson(...) | ||
activate Model | ||
Model --> UpdateCommand : true | ||
deactivate Model | ||
UpdateCommand -> Model : setPerson(...) | ||
activate Model | ||
Model --> UpdateCommand | ||
deactivate Model | ||
UpdateCommand -> Model : updateFilteredPersonList(...) | ||
activate Model | ||
Model --> UpdateCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
UpdateCommand -> CommandResult | ||
activate CommandResult | ||
CommandResult --> UpdateCommand | ||
deactivate | ||
UpdateCommand --> LogicManager : r | ||
deactivate UpdateCommand | ||
|
||
[<--LogicManager : r | ||
deactivate LogicManager | ||
@enduml |
Oops, something went wrong.