blob: 8d21c9f1ebce22240c1508f0b9959bdbf80217f7 [file] [log] [blame]
Bi-Ruei, Chiubc6ef1f2017-10-20 22:38:01 +08001ModuleParameterizationMoreThanTwoLevel { iso org(3) dod(6) internet(1)
2 private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
3 156 }
4DEFINITIONS ::=
5BEGIN
6
7TOTAL-CLASS SAMPLE-CLASS ::= {({ IDENTIFIED BY id1-1 } | { WITH CODE 1 IDENTIFIED BY id1-2 }) ({ IDENTIFIED BY id1-1 } | { WITH CODE 1 IDENTIFIED BY id1-2 }) | ({ IDENTIFIED BY id2-1 }) ({ IDENTIFIED BY id2-1 }),...}
8-- Information Object Set has 4 entries:
9-- [ &id][ &code][ &Type]
10-- [1] id1-1 <no entry> <no entry>
11-- [2] id1-2 1 <no entry>
12-- [3] id2-2 1 <no entry>
13-- [4] id2-3 2 SampleType
14
15
16CLASS-1 SAMPLE-CLASS ::= {{ IDENTIFIED BY id1-1 } | { WITH CODE 1 IDENTIFIED BY id1-2 },...,{ TYPE SampleType WITH CODE 2 IDENTIFIED BY id1-3 }}
17-- Information Object Set has 2 entries:
18-- [ &id][&code][&Type]
19-- [1] id1-1 <no entry> <no entry>
20-- [2] id1-2 1 <no entry>
21-- [ ] ...
22
23
24CLASS-2 SAMPLE-CLASS ::= {{ IDENTIFIED BY id2-1 },...,{ WITH CODE 1 IDENTIFIED BY id2-2 } | { TYPE SampleType WITH CODE 2 IDENTIFIED BY id2-3 }}
25-- Information Object Set has 2 entries:
26-- [ &id][ &code][ &Type]
27-- [1] id2-2 1 <no entry>
28-- [2] id2-3 2 SampleType
29-- [ ] ...
30
31
32SAMPLE-CLASS ::= CLASS {
33 &id RELATIVE-OID UNIQUE,
34 &code ENUMERATED {
35 request(0),
36 response(1),
37 status(2)
38 } DEFAULT 0,
39 &Type OPTIONAL
40} WITH SYNTAX { [TYPE &Type] [WITH CODE &code] IDENTIFIED BY &id }
41
42-- Information Object Set has 6 entries:
43-- [ &id][ &code][ &Type]
44-- [1] id1-1 <no entry> <no entry>
45-- [2] id1-2 1 <no entry>
46-- [3] id2-2 1 <no entry>
47-- [4] id2-3 2 SampleType
48-- [5] id1-3 2 SampleType
49-- [6] id2-1 <no entry> <no entry>
50
51
52item1-1 SAMPLE-CLASS ::= { IDENTIFIED BY id1-1 }
53-- Information Object Set has 1 entry:
54-- [ &id][&code][&Type]
55-- [1] id1-1 <no entry> <no entry>
56
57
58item1-2 SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY id1-2 }
59-- Information Object Set has 1 entry:
60-- [ &id][&code][&Type]
61-- [1] id1-2 1 <no entry>
62
63
64item1-3 SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY id1-3 }
65-- Information Object Set has 1 entry:
66-- [ &id][ &code][ &Type]
67-- [1] id1-3 2 SampleType
68
69
70item2-1 SAMPLE-CLASS ::= { IDENTIFIED BY id2-1 }
71-- Information Object Set has 1 entry:
72-- [ &id][&code][&Type]
73-- [1] id2-1 <no entry> <no entry>
74
75
76item2-2 SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY id2-2 }
77-- Information Object Set has 1 entry:
78-- [ &id][&code][&Type]
79-- [1] id2-2 1 <no entry>
80
81
82item2-3 SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY id2-3 }
83-- Information Object Set has 1 entry:
84-- [ &id][ &code][ &Type]
85-- [1] id2-3 2 SampleType
86
87
88id1-1 RELATIVE-OID ::= { 1 1 }
89
90id1-2 RELATIVE-OID ::= { 1 2 }
91
92id1-3 RELATIVE-OID ::= { 1 3 }
93
94id2-1 RELATIVE-OID ::= { 2 1 }
95
96id2-2 RELATIVE-OID ::= { 2 2 }
97
98id2-3 RELATIVE-OID ::= { 2 3 }
99
100SampleType ::= SEQUENCE {
101 ...
102}
103
104Salt ::= SET {
105 ...
106}
107
108END