Sync with 5.2.0
[deliverable/titan.core.git] / regression_test / ttcn2json / MiniRanap.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 MiniRanap
10
11 -- This module contains a simplified version of the type DirectTransferInformationList-RANAP-RelocInf
12 -- from the RANAP protocol module and any elements needed to recreate it.
13 -- Used for tesing the JSON schema generator on an ASN.1 ellipsis type
14
15 DEFINITIONS
16
17 AUTOMATIC TAGS ::=
18
19 BEGIN
20
21 IMPORTS ;
22
23 -- RANAP-CommonDataTypes
24 Criticality ::= ENUMERATED { reject, ignore, notify }
25
26 Presence ::= ENUMERATED { optionalValue, conditional, mandatory }
27
28 ProtocolIE-ID ::= INTEGER (0..65535)
29
30 -- RANAP-Containers
31 RANAP-PROTOCOL-IES ::= CLASS {
32 &id ProtocolIE-ID UNIQUE,
33 &criticality Criticality,
34 &Value,
35 &presence Presence
36 }
37 WITH SYNTAX {
38 ID &id
39 CRITICALITY &criticality
40 TYPE &Value
41 PRESENCE &presence
42 }
43
44 ProtocolIE-ContainerList {INTEGER : lowerBound, INTEGER : upperBound, RANAP-PROTOCOL-IES : IEsSetParam} ::=
45 SEQUENCE (SIZE (lowerBound..upperBound)) OF
46 ProtocolIE-Container {{IEsSetParam}}
47
48 ProtocolIE-Container {RANAP-PROTOCOL-IES : IEsSetParam} ::=
49 SEQUENCE (SIZE (0..maxProtocolIEs)) OF
50 ProtocolIE-Field {{IEsSetParam}}
51
52 ProtocolIE-Field {RANAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE {
53 id RANAP-PROTOCOL-IES.&id ({IEsSetParam}),
54 criticality RANAP-PROTOCOL-IES.&criticality ({IEsSetParam}{@id}),
55 valueField RANAP-PROTOCOL-IES.&Value ({IEsSetParam}{@id})
56 }
57
58 -- RANAP-PDU-Contents
59 DirectTransfer-IE-ContainerList { RANAP-PROTOCOL-IES : IEsSetParam } ::=
60 ProtocolIE-ContainerList { 1, maxNrOfDTs, {IEsSetParam} }
61
62 DirectTransferInformationList-RANAP-RelocInf ::=
63 DirectTransfer-IE-ContainerList { {DirectTransferInformationItemIEs-RANAP-RelocInf} }
64
65 DirectTransferInformationItemIEs-RANAP-RelocInf RANAP-PROTOCOL-IES ::= {
66 { ID id-DirectTransferInformationItem-RANAP-RelocInf
67 CRITICALITY ignore TYPE INTEGER --DirectTransferInformationItem-RANAP-RelocInf
68 PRESENCE mandatory },
69 ...
70 }
71
72 -- RABAP-Constants
73 maxNrOfDTs INTEGER ::= 15
74
75 id-DirectTransferInformationItem-RANAP-RelocInf INTEGER ::= 80
76
77 maxProtocolIEs INTEGER ::= 65535
78
79 END
80
This page took 0.046951 seconds and 5 git commands to generate.