Bi-Ruei, Chiu | bc6ef1f | 2017-10-20 22:38:01 +0800 | [diff] [blame] | 1 | ModuleParameterizationMoreThanTwoLevel { iso org(3) dod(6) internet(1) |
| 2 | private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) |
| 3 | 156 } |
| 4 | DEFINITIONS ::= |
| 5 | BEGIN |
| 6 | |
| 7 | TOTAL-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 | |
| 16 | CLASS-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 | |
| 24 | CLASS-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 | |
| 32 | SAMPLE-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 | |
| 52 | item1-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 | |
| 58 | item1-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 | |
| 64 | item1-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 | |
| 70 | item2-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 | |
| 76 | item2-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 | |
| 82 | item2-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 | |
| 88 | id1-1 RELATIVE-OID ::= { 1 1 } |
| 89 | |
| 90 | id1-2 RELATIVE-OID ::= { 1 2 } |
| 91 | |
| 92 | id1-3 RELATIVE-OID ::= { 1 3 } |
| 93 | |
| 94 | id2-1 RELATIVE-OID ::= { 2 1 } |
| 95 | |
| 96 | id2-2 RELATIVE-OID ::= { 2 2 } |
| 97 | |
| 98 | id2-3 RELATIVE-OID ::= { 2 3 } |
| 99 | |
| 100 | SampleType ::= SEQUENCE { |
| 101 | ... |
| 102 | } |
| 103 | |
| 104 | Salt ::= SET { |
| 105 | ... |
| 106 | } |
| 107 | |
| 108 | END |