-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLEAVE_emu_seq.txt
43 lines (43 loc) · 1003 Bytes
/
CLEAVE_emu_seq.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
title CLEAVE Emulation Sequence
participantgroup #lightgreen Client
participant #darkgreen Plant
activecolor Plant #darkgreen
end
participantgroup #pink Backend
participant #purple Dispatcher
activecolor Dispatcher #purple
participant #darkred Controller
activecolor Controller #darkred
activate Plant
Plant -> Dispatcher: spawn controller
deactivate Plant
activate Dispatcher
Dispatcher ->* Controller:spawn
end
Dispatcher -->Plant: spawned <id>
activate Plant
deactivate Dispatcher
Plant -> Plant: emulation start
activate Plant
loop #orange t < target time
Plant ->(1) Controller: <samples>
activate Controller
Controller -->(1) Plant: <commands>
deactivate Controller
end
Plant -> Plant: emulation end
deactivate Plant
Plant ->Dispatcher: shutdown <id>
deactivate Plant
activate Dispatcher
parallel on
Dispatcher -> Controller: shutdown
Controller -> ]: Logs
destroy Controller
parallel off
parallel on
Dispatcher -> Plant: success
deactivate Dispatcher
Plant -> [: Logs
destroy Plant
parallel off