Line | |
---|
1 | module NC_modules_groups_dataTypes {
|
---|
2 | //data type definitions, good and bad
|
---|
3 | type record address {
|
---|
4 | charstring host,
|
---|
5 | integer portField
|
---|
6 | }
|
---|
7 |
|
---|
8 | type address Addr;
|
---|
9 |
|
---|
10 | type set of charstring Method_List;
|
---|
11 |
|
---|
12 | type record of charstring CharList;
|
---|
13 |
|
---|
14 | type record of charstring charList1;
|
---|
15 |
|
---|
16 | type record TypeA {
|
---|
17 | integer field1,
|
---|
18 | charstring field2,
|
---|
19 | boolean feild3
|
---|
20 | }
|
---|
21 |
|
---|
22 | type record TypeB {
|
---|
23 | integer field1,
|
---|
24 | charstring field2,
|
---|
25 | boolean feild3,
|
---|
26 | TypeA field4
|
---|
27 | }
|
---|
28 | //groups, good and bad
|
---|
29 |
|
---|
30 | group g1 {
|
---|
31 | }
|
---|
32 |
|
---|
33 | group G1 {
|
---|
34 | }
|
---|
35 | //ports, filed under dataTypes, good and bad
|
---|
36 |
|
---|
37 | type port port_1 message {
|
---|
38 | inout integer;
|
---|
39 | }
|
---|
40 |
|
---|
41 | type port Port_2 message {
|
---|
42 | inout integer;
|
---|
43 | }
|
---|
44 |
|
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.