Type Mappings in Integrated-Simulation
This section specifies the data type mapping used by the integrated-simulation of the SDL Simulator and the SDL and TTCN Integrated Simulator. Specifically it identifies the transfer syntax used in the communication between the SDL Simulator and the SDL and TTCN Integrated Simulators for each supported data type.
TTCN Types
This subsection describes the mapping from TTCN types to SDL types. For each TTCN type the corresponding SDL type and some examples of the transfer syntax is given.
Predefined Types
TTCN Type |
SDL Type |
Transfer Syntax Example |
INTEGER
|
integer
|
1 -3
|
BOOLEAN
|
boolean
|
true false
|
BITSTRING
|
bit_string
|
`0101'B
|
HEXSTRING
|
-
|
|
OCTETSTRING
|
octet_string
|
`4BA0'O
|
NumericString
|
NumericString
|
`3295' (0..9 + space)
|
PrintableString
|
PrintableString
|
`ask38-'
|
TeletexString
|
-
|
|
VideotextString
|
-
|
|
VisibleString
|
VisibleString
|
`xy'
|
IA5String
|
charstring
|
`123 abc'
|
GraphicString
|
-
|
|
GeneralString
|
-
|
|
References Types
TTCN Type |
SDL Type |
Transfer Syntax Example |
SimpleType
|
syntype
|
same as referenced type
|
Struct
|
struct
|
(. 1, true .)
|
PDU
|
struct
|
(. 1, true .)
|
ASP
|
- (ASPs maps to signals)
|
|
ASN.1 Types
This subsection describes the mapping from ASN.1 types to SDL types. For each ASN.1 type the corresponding SDL type and some examples of the transfer syntax is given.
ASN.1 Type |
SDL Type |
Transfer Syntax Example |
BOOLEAN
|
boolean
|
true false
|
INTEGER
|
integer
|
1 0 -55
|
ENUMERATED
|
enumeration types
|
The enumerated values
|
REAL
|
- (Not supported in the TTCN to C compiler)
|
|
BIT STRING
|
bit_string
|
`0100'B
|
OCTET STRING
|
octet_string
|
`4BA0'O
|
NULL
|
null
|
Null
|
SEQUENCE
|
struct
|
(. 1, true .)
|
SEQUENCE OF
|
array, string
|
(: 1, 2 :)
|
SET
|
-
|
|
SET OF
|
bag, powerset
|
[ 1, 2, 2 ]
|
CHOICE
|
choice
|
<name> : <value>
|
ANY
|
-
|
|
OBJECT IDENTIFIER
|
-
|
|
Selection type
|
-
|
|
Tagged type
|
-
|
|
SubType
|
syntype
|
same as referenced type
|
SDL Types
This subsection defines the mapping from SDL to TTCN and to ASN.1. For each SDL type first the TTCN type is given, then the ASN.1 type and finally an example of transfer syntax.
Predefined Sorts
SDL Type |
TTCN Type |
ASN.1 Type |
Transfer Syntax Example |
Bit
|
BITSTRING
|
BIT STRING
(SIZE (1))
|
`1'B
|
Bit_String
|
BITSTRING
|
BIT STRING
|
`1010'B
|
Boolean
|
BOOLEAN
|
BOOLEAN
|
true false
|
Character
|
IA5String
|
IA5String (SIZE
(1))
|
`a'
|
Charstring
|
IA5String
|
IA5String
|
`123 abc'
|
IA5String
|
IA5String
|
IA5String
|
`123 abc'
|
NumericString
|
NumericString
|
NumericString
|
`123'
|
PrintableString
|
PrintableString
|
PrintableString
|
`ask38-'
|
VisibleString
|
VisibleString
|
VisibleString
|
`xy'
|
Duration
|
-
|
-
|
|
Time
|
-
|
-
|
|
Integer
|
INTEGER
|
INTEGER
|
0 4 -66
|
Natural
|
INTEGER
|
INTEGER
|
0 55
|
Null
|
-
|
NULL
|
Null
|
Object_Identifier
|
-
|
-
|
|
Octet
|
OCTETSTRING
|
OCTET STRING
(SIZE (1))
|
`FE'O
|
Octet_String
|
OCTETSTRING
|
OCTET STRING
|
`F0E2'O
|
PId
|
-
|
-
|
|
Real
|
-
|
-
|
|
User Defined Sorts
SDL Type |
TTCN Type |
ASN.1 Type |
Transfer Syntax Example |
Syntypes
|
SimpleTypes
|
SubType
|
same as referenced type
|
Enumeration Sorts
|
-
|
ENUMERATED
|
the enumerated values
|
Struct
|
struct
|
SEQUENCE
|
(. 1, true .)
|
Bit Fields
|
-
|
-
|
(. 2, 3, 0 .)
|
Optional
|
-
|
-
|
|
Choice
|
-
|
CHOICE
|
C1 : 1
|
Predefined Generators
SDL Type |
TTCN Type |
ASN.1 Type |
Transfer Syntax Example |
Array
|
-
|
SEQUENCE OF
|
(: 1, 4, 7 :)
|
String
|
-
|
SEQUENCE OF
|
(: 1, 4, 7 :)
|
Powerset
|
-
|
SET OF
|
[ 1, 6, 8 ]
|
Bag
|
-
|
SET OF
|
[ 1, 6, 6 ]
|