Revisión | be0b174423946d61ddf3dfeb14c59f97a6e13a25 (tree) |
---|---|
Tiempo | 2023-10-22 21:54:53 |
Autor | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
DesignDiagram: Sieve-NS: Put the 3 NS'ses in a package
@@ -5,61 +5,58 @@ | ||
5 | 5 | |
6 | 6 | @startuml |
7 | 7 | |
8 | - package P1_start { | |
9 | - object start_sieve <<Source_NS>> #LightSkyBlue { | |
10 | - file: 'start_sieve.Castle' | |
11 | - } | |
12 | - object " " as P1_d <<dict>> #lightcyan { | |
13 | - startSieve | |
14 | - } | |
15 | - object StartSieve <<EventProtocol>> | |
8 | + package "Protocols in ‘TheSieve’" <<Node>> { | |
9 | + package start_sieve { | |
10 | + object start_sieve <<Source_NS>> #LightSkyBlue { | |
11 | + file: 'start_sieve.Castle' | |
12 | + } | |
13 | + object " " as P1_d <<dict>> #lightcyan { | |
14 | + startSieve | |
15 | + } | |
16 | + object StartSieve <<EventProtocol>> | |
16 | 17 | |
17 | - start_sieve o-- P1_d | |
18 | - P1_d::startSieve -> StartSieve | |
19 | - start_sieve <-- StartSieve | |
20 | - } | |
21 | - | |
22 | - | |
23 | - '------------------ | |
24 | - | |
25 | - package P2_slow { | |
26 | - object slow_start <<Source_NS>> #LightSkyBlue { | |
27 | - file: 'slow_start.Castle' | |
28 | - } | |
29 | - object " " as P2_d <<dict>> #lightcyan { | |
30 | - SlowStart | |
31 | - } | |
32 | - object SlowStart <<EventProtocol>> { | |
33 | - queue_max :int | |
18 | + start_sieve o-- P1_d | |
19 | + P1_d::startSieve -> StartSieve | |
20 | + start_sieve <-- StartSieve | |
34 | 21 | } |
35 | 22 | |
36 | - slow_start o-- P2_d | |
37 | - P2_d::slowStart -> SlowStart | |
38 | - slow_start <-- SlowStart | |
39 | - } | |
40 | - | |
41 | - '------------------ | |
23 | + package slow_start { | |
24 | + object slow_start <<Source_NS>> #LightSkyBlue { | |
25 | + file: 'slow_start.Castle' | |
26 | + } | |
27 | + object " " as P2_d <<dict>> #lightcyan { | |
28 | + SlowStart | |
29 | + } | |
30 | + object SlowStart <<EventProtocol>> { | |
31 | + queue_max :int | |
32 | + } | |
42 | 33 | |
43 | - package P3_simple { | |
44 | - object simple_sieve <<Source_NS>> #LightSkyBlue { | |
45 | - file: 'simple_sieve.Castle' | |
46 | - } | |
47 | - object " " as P3_d <<dict>> #lightcyan { | |
48 | - SlowStart(1) | |
49 | - SimpleSieve | |
34 | + slow_start o-- P2_d | |
35 | + P2_d::slowStart -> SlowStart | |
36 | + slow_start <-- SlowStart | |
50 | 37 | } |
51 | - object "SlowStart(1)" as SlowStart_1 <<ProtocolWrapper>> { | |
52 | - queue_max=1 | |
53 | - } | |
54 | - object SimpleSieve <<EventProtocol>> | |
55 | - SlowStart_1 <|-- SimpleSieve: based on | |
56 | 38 | |
57 | - simple_sieve o-- P3_d | |
58 | - P3_d::SlowStart_1 -> SlowStart_1 | |
59 | - P3_d::SimpleSieve -> SimpleSieve | |
60 | - simple_sieve <-- SlowStart_1 | |
61 | - simple_sieve <--- SimpleSieve | |
39 | + package simple_sieve { | |
40 | + object simple_sieve <<Source_NS>> #LightSkyBlue { | |
41 | + file: 'simple_sieve.Castle' | |
42 | + } | |
43 | + object " " as P3_d <<dict>> #lightcyan { | |
44 | + SlowStart(1) | |
45 | + SimpleSieve | |
46 | + } | |
47 | + object "SlowStart(1)" as SlowStart_1 <<ProtocolWrapper>> { | |
48 | + queue_max=1 | |
49 | + } | |
50 | + object SimpleSieve <<EventProtocol>> | |
51 | + SlowStart_1 <|-- SimpleSieve: based on | |
52 | + | |
53 | + simple_sieve o-- P3_d | |
54 | + P3_d::SlowStart_1 -> SlowStart_1 | |
55 | + P3_d::SimpleSieve -> SimpleSieve | |
56 | + simple_sieve <-- SlowStart_1 | |
57 | + simple_sieve <--- SimpleSieve | |
58 | + } | |
59 | + | |
60 | + SlowStart <|---- SlowStart_1 #darkblue : based on | |
62 | 61 | } |
63 | - | |
64 | - SlowStart <|---- SlowStart_1 #darkblue : based on | |
65 | - @enduml | |
62 | + @enduml |