Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
修订版 | c0b6ee0ee86f2a53376f46ad1a9d1ac1b082edcc (tree) |
---|---|
时间 | 2023-10-22 22:20:37 |
作者 | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
refactor (DesignDiagram) added buildin.Protocol & layout/spaces
@@ -15,9 +15,9 @@ | ||
15 | 15 | } |
16 | 16 | object StartSieve <<EventProtocol>> |
17 | 17 | |
18 | - start_sieve o-- P1_d | |
19 | - P1_d::startSieve -> StartSieve | |
20 | - start_sieve <-- StartSieve | |
18 | + start_sieve o-- P1_d | |
19 | + P1_d::startSieve -> StartSieve | |
20 | + start_sieve <-- StartSieve | |
21 | 21 | } |
22 | 22 | |
23 | 23 | package slow_start { |
@@ -31,9 +31,9 @@ | ||
31 | 31 | queue_max :int |
32 | 32 | } |
33 | 33 | |
34 | - slow_start o-- P2_d | |
35 | - P2_d::slowStart -> SlowStart | |
36 | - slow_start <-- SlowStart | |
34 | + slow_start o-- P2_d | |
35 | + P2_d::slowStart -> SlowStart | |
36 | + slow_start <-- SlowStart | |
37 | 37 | } |
38 | 38 | |
39 | 39 | package simple_sieve { |
@@ -48,15 +48,26 @@ | ||
48 | 48 | queue_max=1 |
49 | 49 | } |
50 | 50 | object SimpleSieve <<EventProtocol>> |
51 | - SlowStart_1 <|-- SimpleSieve: based on | |
51 | + SlowStart_1 <|-- SimpleSieve: based_on | |
52 | 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 | |
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 | 58 | } |
59 | 59 | |
60 | - SlowStart <|---- SlowStart_1 #darkblue : based on | |
60 | + SlowStart <|---- SlowStart_1 #darkblue : based_on | |
61 | 61 | } |
62 | + | |
63 | + package "Build-in Protocols" <<Node>> { | |
64 | + package base { | |
65 | + object Protocol <<_RootProtocol>> | |
66 | + } | |
67 | + package buildin { | |
68 | + } | |
69 | + } | |
70 | + Protocol <|.. StartSieve #aqua : based_on | |
71 | + Protocol <|.. SlowStart #aqua : based_on | |
72 | + | |
62 | 73 | @enduml |
@@ -17,7 +17,7 @@ | ||
17 | 17 | cc_CI_Sieve.ports.append(buildin.CC_B_C_PortID(name="try", |
18 | 18 | portNo=2, # XXXX |
19 | 19 | protocol=SimpleSieve.cc_P_SimpleSieve, |
20 | - direction=buildin.PortDirection.In, ## or base.? | |
20 | + direction=buildin.PortDirection.In, | |
21 | 21 | part_of=cc_CI_Sieve)) |
22 | 22 | cc_CI_Sieve.ports.append(buildin.CC_B_C_PortID(name="coprime", |
23 | 23 | portNo=3, #XXX |