Skip to content

Commit ac3cccc

Browse files
committed
Add cluster, find and update logic sequence diagrams
1 parent 2777a34 commit ac3cccc

File tree

3 files changed

+193
-0
lines changed

3 files changed

+193
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR
8+
participant ":ClusterCommandParser" as ClusterCommandParser LOGIC_COLOR
9+
participant "c:ClusterCommand" as ClusterCommand LOGIC_COLOR
10+
participant "r:CommandResult" as CommandResult LOGIC_COLOR
11+
end box
12+
13+
box Model MODEL_COLOR_T1
14+
participant "m:Model" as Model MODEL_COLOR
15+
end box
16+
17+
[-> LogicManager : execute("cluster 50 ...")
18+
activate LogicManager
19+
LogicManager -> ImmuniMateParser : parseCommand("cluster 50 ...")
20+
activate ImmuniMateParser
21+
22+
create ClusterCommandParser
23+
ImmuniMateParser -> ClusterCommandParser
24+
activate ClusterCommandParser
25+
ClusterCommandParser --> ImmuniMateParser
26+
deactivate ClusterCommandParser
27+
ImmuniMateParser -> ClusterCommandParser : parse("50 ...")
28+
activate ClusterCommandParser
29+
30+
create ClusterCommand
31+
ClusterCommandParser -> ClusterCommand
32+
activate ClusterCommand
33+
ClusterCommand --> ClusterCommandParser
34+
deactivate ClusterCommand
35+
ClusterCommandParser --> ImmuniMateParser : c
36+
deactivate ClusterCommandParser
37+
'Hidden arrow to position the destroy marker below the end of the activation bar.
38+
ClusterCommandParser -[hidden]-> ImmuniMateParser
39+
destroy ClusterCommandParser
40+
ImmuniMateParser --> LogicManager : c
41+
deactivate ImmuniMateParser
42+
LogicManager -> ClusterCommand : execute(m)
43+
activate ClusterCommand
44+
ClusterCommand -> Model : updateFilteredPersonList(...)
45+
activate Model
46+
Model --> ClusterCommand
47+
deactivate Model
48+
ClusterCommand -> Model : getFilteredPersonList(...)
49+
activate Model
50+
Model --> ClusterCommand
51+
deactivate Model
52+
53+
create CommandResult
54+
ClusterCommand -> CommandResult
55+
activate CommandResult
56+
CommandResult --> ClusterCommand
57+
deactivate
58+
ClusterCommand --> LogicManager : r
59+
deactivate ClusterCommand
60+
61+
[<--LogicManager : r
62+
deactivate LogicManager
63+
@enduml

docs/diagrams/FindLogicDiagram.puml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR
8+
participant ":FindCommandParser" as FindCommandParser LOGIC_COLOR
9+
participant "f:FindCommand" as FindCommand LOGIC_COLOR
10+
participant "r:CommandResult" as CommandResult LOGIC_COLOR
11+
end box
12+
13+
box Model MODEL_COLOR_T1
14+
participant "m:Model" as Model MODEL_COLOR
15+
end box
16+
17+
[-> LogicManager : execute("find ...")
18+
activate LogicManager
19+
LogicManager -> ImmuniMateParser : parseCommand("find ...")
20+
activate ImmuniMateParser
21+
22+
create FindCommandParser
23+
ImmuniMateParser -> FindCommandParser
24+
activate FindCommandParser
25+
FindCommandParser --> ImmuniMateParser
26+
deactivate FindCommandParser
27+
ImmuniMateParser -> FindCommandParser : parse("...")
28+
activate FindCommandParser
29+
30+
create FindCommand
31+
FindCommandParser -> FindCommand
32+
activate FindCommand
33+
FindCommand --> FindCommandParser
34+
deactivate FindCommand
35+
FindCommandParser --> ImmuniMateParser : f
36+
deactivate FindCommandParser
37+
'Hidden arrow to position the destroy marker below the end of the activation bar.
38+
FindCommandParser -[hidden]-> ImmuniMateParser
39+
destroy FindCommandParser
40+
ImmuniMateParser --> LogicManager : f
41+
deactivate ImmuniMateParser
42+
LogicManager -> FindCommand : execute(m)
43+
activate FindCommand
44+
FindCommand -> Model : updateFilteredPersonList(...)
45+
activate Model
46+
Model --> FindCommand
47+
deactivate Model
48+
49+
create CommandResult
50+
FindCommand -> CommandResult
51+
activate CommandResult
52+
CommandResult --> FindCommand
53+
deactivate
54+
FindCommand --> LogicManager : r
55+
deactivate FindCommand
56+
57+
[<--LogicManager : r
58+
deactivate LogicManager
59+
@enduml

docs/diagrams/UpdateLogicDiagram.puml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR
8+
participant ":UpdateCommandParser" as UpdateCommandParser LOGIC_COLOR
9+
participant "u:UpdateCommand" as UpdateCommand LOGIC_COLOR
10+
participant "r:CommandResult" as CommandResult LOGIC_COLOR
11+
end box
12+
13+
box Model MODEL_COLOR_T1
14+
participant "m:Model" as Model MODEL_COLOR
15+
end box
16+
17+
[-> LogicManager : execute("update T0123456A ...")
18+
activate LogicManager
19+
LogicManager -> ImmuniMateParser : parseCommand("update T0123456A ...")
20+
activate ImmuniMateParser
21+
22+
create UpdateCommandParser
23+
ImmuniMateParser -> UpdateCommandParser
24+
activate UpdateCommandParser
25+
UpdateCommandParser --> ImmuniMateParser
26+
deactivate UpdateCommandParser
27+
ImmuniMateParser -> UpdateCommandParser : parse("T0123456A ...")
28+
activate UpdateCommandParser
29+
30+
create UpdateCommand
31+
UpdateCommandParser -> UpdateCommand
32+
activate UpdateCommand
33+
UpdateCommand --> UpdateCommandParser
34+
deactivate UpdateCommand
35+
UpdateCommandParser --> ImmuniMateParser : u
36+
deactivate UpdateCommandParser
37+
'Hidden arrow to position the destroy marker below the end of the activation bar.
38+
UpdateCommandParser -[hidden]-> ImmuniMateParser
39+
destroy UpdateCommandParser
40+
ImmuniMateParser --> LogicManager : u
41+
deactivate ImmuniMateParser
42+
LogicManager -> UpdateCommand : execute(m)
43+
activate UpdateCommand
44+
UpdateCommand -> Model : getFilteredPersonList()
45+
activate Model
46+
Model --> UpdateCommand : lastShownList
47+
deactivate Model
48+
UpdateCommand -> Model : hasPerson(...)
49+
activate Model
50+
Model --> UpdateCommand : true
51+
deactivate Model
52+
UpdateCommand -> Model : setPerson(...)
53+
activate Model
54+
Model --> UpdateCommand
55+
deactivate Model
56+
UpdateCommand -> Model : updateFilteredPersonList(...)
57+
activate Model
58+
Model --> UpdateCommand
59+
deactivate Model
60+
61+
create CommandResult
62+
UpdateCommand -> CommandResult
63+
activate CommandResult
64+
CommandResult --> UpdateCommand
65+
deactivate
66+
UpdateCommand --> LogicManager : r
67+
deactivate UpdateCommand
68+
69+
[<--LogicManager : r
70+
deactivate LogicManager
71+
@enduml

0 commit comments

Comments
 (0)