Sync with 5.2.0
[deliverable/titan.core.git] / regression_test / ttcn2json / PDU_Definitions.asn
1 ------------------------------------------------------------------------------
2 -- Copyright (c) 2000-2015 Ericsson Telecom AB
3 -- All rights reserved. This program and the accompanying materials
4 -- are made available under the terms of the Eclipse Public License v1.0
5 -- which accompanies this distribution, and is available at
6 -- http://www.eclipse.org/legal/epl-v10.html
7 ------------------------------------------------------------------------------
8
9 --
10 -- Based on definitions used in S1AP
11 --
12
13 PDU-Definitions DEFINITIONS ::=
14 BEGIN
15
16 Priority ::= ENUMERATED { low, normal, medium, high, urgent }
17
18 Conditionality ::= ENUMERATED { optional, conditional, mandatory }
19
20 ProtocolElem-ID ::= INTEGER (0..65535)
21
22
23 --IOC
24 PROTOCOL-ELEMS ::= CLASS
25 {
26 &id ProtocolElem-ID UNIQUE,
27 &priority Priority,
28 &Value,
29 &conditionality Conditionality
30 }
31 WITH SYNTAX
32 {
33 ID &id
34 PRIORITY &priority
35 TYPE &Value
36 CONDITIONALITY &conditionality
37 }
38
39 --parameterized type
40 ProtocolElem-Field {PROTOCOL-ELEMS : ElemsSetParam} ::= SEQUENCE
41 {
42 id PROTOCOL-ELEMS.&id ({ElemsSetParam}),
43 priority PROTOCOL-ELEMS.&priority ({ElemsSetParam}{@id}),
44 val PROTOCOL-ELEMS.&Value ({ElemsSetParam}{@id})
45 }
46
47
48 --Information objects
49 ies-Set-Element-1 PROTOCOL-ELEMS ::=
50 {
51 ID 0
52 PRIORITY low
53 TYPE INTEGER
54 CONDITIONALITY mandatory
55 }
56
57 ies-Set-Element-2 PROTOCOL-ELEMS ::=
58 {
59 ID 1
60 PRIORITY high
61 TYPE IA5String
62 CONDITIONALITY optional
63 }
64 --Information Object Set
65 Elems-Set PROTOCOL-ELEMS ::= { ies-Set-Element-1 | ies-Set-Element-2 }
66
67
68 --instantiation
69 ProtocolElem-Field1 ::= ProtocolElem-Field {{Elems-Set}}
70
71 ProtocolElem-Field2 ::= ProtocolElem-Field {{ies-Set-Element-2 }}
72
73 --Choice containing NULL
74 Price ::= CHOICE
75 {
76 value REAL,
77 invaluable NULL
78 }
79
80 --Sequence containing an object identifier and an ANY type
81 Object ::= SEQUENCE
82 {
83 id OBJECT IDENTIFIER,
84 data ANY
85 }
86
87 --Sequence containing an optional NULL field
88 HasNull ::= SEQUENCE
89 {
90 theNull NULL OPTIONAL
91 }
92
93 END
This page took 0.039163 seconds and 5 git commands to generate.