~aleteoryx/muditaos

ref: 798a2fb45afee614205ae8d8f7680dc678e251da muditaos/module-sys/SystemManager/doc/services_synchronization.puml -rw-r--r-- 475 bytes
798a2fb4 — Mateusz Grzegorzek [BH-361] Move date to separate directory 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@startuml

actor Driver
participant "System Manager" as sysmgr
participant "Dependency Graph" as graph
participant Service as srv

Driver -> sysmgr: Pass a list\nof services
sysmgr -> graph **: create

|||
sysmgr -> graph: addServices()

|||
sysmgr -> graph: topologicalSort()

|||
activate graph
graph --> sysmgr: sorted services
deactivate graph
destroy graph
|||

loop for each service in sorted services
sysmgr -> srv: Start
srv --> sysmgr: Confirmation
end
|||

@enduml