修訂 | 6bb3f34c79cd141286a84052adf6c2a8aa487462 (tree) |
---|---|
時間 | 2023-10-22 23:24:42 |
作者 | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
refactor (DesignDiagram) added sub-NS'ses
@@ -5,42 +5,45 @@ | ||
5 | 5 | |
6 | 6 | @startuml |
7 | 7 | |
8 | - package "Protocols in ‘TheSieve’" <<Node>> { | |
9 | - package start_sieve { | |
8 | + package "Protocols in ‘TheSieve’" as P1 <<Node>> { | |
9 | + | |
10 | + package start_sieve as P1A { | |
10 | 11 | object start_sieve <<Source_NS>> #LightSkyBlue { |
11 | 12 | file: 'start_sieve.Castle' |
12 | 13 | } |
13 | - object " " as P1_d <<dict>> #lightcyan { | |
14 | - startSieve | |
14 | + object " " as P1A_d <<dict>> #lightcyan { | |
15 | + StartSieve | |
16 | + base :NS | |
15 | 17 | } |
16 | 18 | object StartSieve <<EventProtocol>> |
17 | 19 | |
18 | - start_sieve o-- P1_d | |
19 | - P1_d::startSieve -> StartSieve | |
20 | + start_sieve o-- P1A_d | |
20 | 21 | start_sieve <-- StartSieve |
22 | + P1A_d::StartSieve -> StartSieve #DarkMagenta | |
21 | 23 | } |
22 | 24 | |
23 | - package slow_start { | |
25 | + package slow_start as P1B { | |
24 | 26 | object slow_start <<Source_NS>> #LightSkyBlue { |
25 | 27 | file: 'slow_start.Castle' |
26 | 28 | } |
27 | - object " " as P2_d <<dict>> #lightcyan { | |
29 | + object " " as P1B_d <<dict>> #lightcyan { | |
28 | 30 | SlowStart |
31 | + base :NS | |
29 | 32 | } |
30 | 33 | object SlowStart <<EventProtocol>> { |
31 | 34 | queue_max :int |
32 | 35 | } |
33 | 36 | |
34 | - slow_start o-- P2_d | |
35 | - P2_d::slowStart -> SlowStart | |
37 | + slow_start o-- P1B_d | |
36 | 38 | slow_start <-- SlowStart |
39 | + P1B_d::SlowStart -> SlowStart #DarkMagenta | |
37 | 40 | } |
38 | 41 | |
39 | - package simple_sieve { | |
42 | + package simple_sieve as P1C { | |
40 | 43 | object simple_sieve <<Source_NS>> #LightSkyBlue { |
41 | 44 | file: 'simple_sieve.Castle' |
42 | 45 | } |
43 | - object " " as P3_d <<dict>> #lightcyan { | |
46 | + object " " as P1C_d <<dict>> #lightcyan { | |
44 | 47 | SlowStart(1) |
45 | 48 | SimpleSieve |
46 | 49 | } |
@@ -50,24 +53,27 @@ | ||
50 | 53 | object SimpleSieve <<EventProtocol>> |
51 | 54 | SlowStart_1 <|-- SimpleSieve: based_on |
52 | 55 | |
53 | - simple_sieve o-- P3_d | |
54 | - P3_d::SlowStart_1 -> SlowStart_1 | |
55 | - P3_d::SimpleSieve -> SimpleSieve | |
56 | + simple_sieve o-- P1C_d | |
56 | 57 | simple_sieve <-- SlowStart_1 |
57 | 58 | simple_sieve <--- SimpleSieve |
59 | + P1C_d::SlowStart_1 -> SlowStart_1 #DarkMagenta | |
60 | + P1C_d::SimpleSieve -> SimpleSieve #DarkMagenta | |
58 | 61 | } |
59 | 62 | |
60 | - SlowStart <|---- SlowStart_1 #darkblue : based_on | |
63 | + SlowStart <|---- SlowStart_1 #SkyBlue : based_on | |
61 | 64 | } |
62 | 65 | |
63 | - package "Build-in Protocols" <<Node>> { | |
66 | + package "Build-in Protocols" as P4 <<Node>> { | |
64 | 67 | package base { |
65 | 68 | object Protocol <<_RootProtocol>> |
66 | 69 | } |
67 | 70 | package buildin { |
68 | 71 | } |
69 | 72 | } |
70 | - Protocol <|.. StartSieve #aqua : based_on | |
71 | - Protocol <|.. SlowStart #aqua : based_on | |
73 | + Protocol <|-- StartSieve #SkyBlue : based_on | |
74 | + Protocol <|-- SlowStart #SkyBlue : based_on | |
75 | + | |
76 | + P1A_d::base -> base #DarkMagenta | |
77 | + P1B_d::base -> base #DarkMagenta | |
72 | 78 | |
73 | 79 | @enduml |