Rev | Line | |
---|
[4] | 1 | module checkPortMessageGrouping {
|
---|
| 2 | import from checkPortMessageGroupingExternal all;
|
---|
| 3 | //correct examples
|
---|
| 4 |
|
---|
| 5 | group correct {
|
---|
| 6 | type port port1 message {
|
---|
| 7 | in m1;
|
---|
| 8 | out m2, m3;
|
---|
| 9 | }
|
---|
| 10 | type port port2 message {
|
---|
| 11 | inout m1, m3;
|
---|
| 12 | }
|
---|
| 13 | type port port3 message {
|
---|
| 14 | inout m4, m3;
|
---|
| 15 | out m1, m2;
|
---|
| 16 | in integer, charstring;
|
---|
| 17 | out integer;
|
---|
| 18 | }
|
---|
| 19 | type port port4 procedure {
|
---|
| 20 | in sm1, sm2;
|
---|
| 21 | out sm3, sm4;
|
---|
| 22 | inout sm5, sm6;
|
---|
| 23 | }
|
---|
| 24 | type port port5 mixed {
|
---|
| 25 | in sm1, m1;
|
---|
| 26 | out integer;
|
---|
| 27 | }
|
---|
| 28 | group nested {
|
---|
| 29 | group signatures {
|
---|
| 30 | signature sm1();
|
---|
| 31 | signature sm2();
|
---|
| 32 | signature sm3();
|
---|
| 33 | signature sm4();
|
---|
| 34 | signature sm5();
|
---|
| 35 | signature sm6();
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | type integer m1;
|
---|
| 41 |
|
---|
| 42 | type record m2 {
|
---|
| 43 |
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | type set m3 {
|
---|
| 47 |
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | type record m4 {
|
---|
| 51 |
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | }
|
---|
| 55 | //incorrect examples
|
---|
| 56 |
|
---|
| 57 | group incorrect {
|
---|
| 58 | type port port6 message {
|
---|
| 59 | in m1, m2;
|
---|
| 60 | out m3;
|
---|
| 61 | }
|
---|
| 62 | type port port7 message {
|
---|
| 63 | inout checkPortMessageGroupingExternal.m5;
|
---|
| 64 | out m6;
|
---|
| 65 | }
|
---|
| 66 | type port port8 procedure {
|
---|
| 67 | inout sm1, sm2;
|
---|
| 68 | out sm3;
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | type record m6 {
|
---|
| 73 |
|
---|
| 74 | }
|
---|
| 75 |
|
---|
| 76 | type port port9 message {
|
---|
| 77 | inout m6, m7;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | group g1 {
|
---|
| 81 | type set m7 {
|
---|
| 82 |
|
---|
| 83 | }
|
---|
| 84 | type record m8 {
|
---|
| 85 |
|
---|
| 86 | }
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.