修訂 | 59f1803d4b4811b6d941948f5219046bd51b51d2 (tree) |
---|---|
時間 | 2023-10-10 20:37:07 |
作者 | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
Updated TD/AIGR uml graphs: added Wrapper for 'SlowStart(1)'
@@ -1,42 +0,0 @@ | ||
1 | -.. -*- plantuml -*- | |
2 | - | |
3 | -TestDoubles/AIGR: The protocols of the Sieve | |
4 | -============================================ | |
5 | - | |
6 | -.. uml:: | |
7 | - | |
8 | - @startuml | |
9 | - | |
10 | - object StartSieve <<EventProtocol>> | |
11 | - object runTo <<Event>>{ | |
12 | - max: int | |
13 | - } | |
14 | - object newMax <<Event>> { | |
15 | - max: int | |
16 | - } | |
17 | - StartSieve *-- runTo | |
18 | - StartSieve *-- newMax | |
19 | - | |
20 | - '--- | |
21 | - | |
22 | - object SlowStart << EventProtocol>> | |
23 | - object queue_max <<TypedParameter>> { | |
24 | - :int | |
25 | - } | |
26 | - object setMax <<Event>> { | |
27 | - setMax :int | |
28 | - } | |
29 | - SlowStart *-- setMax | |
30 | - SlowStart *- queue_max | |
31 | - | |
32 | - '--- | |
33 | - | |
34 | - object SimpleSieve <<EventProtocol>> | |
35 | - SlowStart <-- SimpleSieve: based_on | |
36 | - | |
37 | - object input <<Event>> { | |
38 | - try :int | |
39 | - } | |
40 | - SimpleSieve *--input | |
41 | - | |
42 | - @enduml |
@@ -0,0 +1,50 @@ | ||
1 | +.. -*- plantuml -*- | |
2 | + | |
3 | +TestDoubles/AIGR: The protocols of the Sieve | |
4 | +============================================ | |
5 | + | |
6 | +.. uml:: | |
7 | + | |
8 | + @startuml | |
9 | + | |
10 | + object StartSieve <<EventProtocol>> | |
11 | + object runTo <<Event>>{ | |
12 | + max: int | |
13 | + } | |
14 | + object newMax <<Event>> { | |
15 | + max: int | |
16 | + } | |
17 | + StartSieve *-- runTo | |
18 | + StartSieve *-- newMax | |
19 | + | |
20 | + '--- | |
21 | + | |
22 | + object SlowStart << EventProtocol>> | |
23 | + object queue_max <<TypedParameter>> { | |
24 | + :int | |
25 | + } | |
26 | + object setMax <<Event>> { | |
27 | + setMax :int | |
28 | + } | |
29 | + SlowStart *-- setMax | |
30 | + SlowStart *- queue_max | |
31 | + | |
32 | + '--- | |
33 | + | |
34 | + object "SlowStart(1)" as SlowStart_1 <<ProtocolWrapper>> { | |
35 | + queue_max=1 | |
36 | + } | |
37 | + SlowStart <-- SlowStart_1: based on | |
38 | + | |
39 | + | |
40 | + '--- | |
41 | + | |
42 | + object SimpleSieve <<EventProtocol>> | |
43 | + SlowStart_1 <-- SimpleSieve: based_on | |
44 | + | |
45 | + object input <<Event>> { | |
46 | + try :int | |
47 | + } | |
48 | + SimpleSieve *--input | |
49 | + | |
50 | + @enduml |
@@ -0,0 +1,26 @@ | ||
1 | +.. -*- plantuml -*- | |
2 | + | |
3 | +TestDoubles/AIGR: The interfaces of the SIEVE (BUSY) | |
4 | +==================================================== | |
5 | + | |
6 | +.. uml:: | |
7 | + | |
8 | + @startuml | |
9 | + | |
10 | + object "**Sieve**" as Sieve <<ComponentInterface>> { | |
11 | + + {static} new(onPrime:int) | |
12 | + } | |
13 | + note right of Sieve: alt-name: **SieveMoat** | |
14 | + object try <<Port>>{ | |
15 | + In: PortDirection | |
16 | + SimpleSieve: type | |
17 | + } | |
18 | + object corprime <<Port>> { | |
19 | + Out: PortDirection | |
20 | + SimpleSieve: type | |
21 | + } | |
22 | + | |
23 | + Sieve *-- try | |
24 | + Sieve *-- corprime | |
25 | + | |
26 | + @enduml |