Rev | Line | |
---|
[7] | 1 | module configuration { |
---|
| 2 | //import from types all; |
---|
| 3 | group ports{ |
---|
| 4 | type port samplePortM1 message{ |
---|
| 5 | inout charstring, integer |
---|
| 6 | } |
---|
| 7 | type port samplePortM2 message{ |
---|
| 8 | inout sampleType1 |
---|
| 9 | } |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | group test_components{ |
---|
| 13 | type component sampleComponent1{ |
---|
| 14 | port samplePortM1 p1 |
---|
| 15 | port samplePortM2 p2 |
---|
| 16 | timer t1 |
---|
| 17 | } |
---|
| 18 | /* |
---|
| 19 | @desc description |
---|
| 20 | */ |
---|
| 21 | type component sampleComponent3{ |
---|
| 22 | port samplePortM1 p1 |
---|
| 23 | port samplePortM2 p2 |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | type component sampleComponent2{ |
---|
| 27 | port samplePortM1 p1 |
---|
| 28 | port samplePortM2 p2 |
---|
| 29 | timer t1, t2, t3 |
---|
| 30 | const sampleType1 c1 := 1 |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | } |
---|
| 37 | //not used, not documented(?) |
---|
| 38 | group components{ |
---|
| 39 | type component sampleComponentX{ |
---|
| 40 | port samplePortM1 p1 |
---|
| 41 | port samplePortM2 p2 |
---|
| 42 | timer t1, t2, t3 |
---|
| 43 | const sampleType1 c1 := 1 |
---|
| 44 | } |
---|
| 45 | } |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.