![]() |
![]() |
![]() |
![]() |
![]() |
ISM Value Encoding
The ISM Value Encoding defines how values are encoded when sent, or decoded when received. It also defines the format for values when printed or read as test suite parameters. The format is not 100% compatible with the SDL Simulator format, or the MSC generation format, though in most cases it will be able to read those values as well.
The general syntax for the value notation is as follows. Rules named with all capital letters are tokens.
ISMValueEncoding ::= OptionalTypeAndValue ;OptionalTypeAndValue ::= [TYPE] Value ;TYPE ::= <Name of type defined in TTCN test suite> ;Value ::= Composite | Atomic | OMIT;Atomic ::= CSTRING | OSTRING | HSTRING | BSTRING | INTEGER | BOOLEAN ;Composite ::= LPAR {OptionalTypeAndValue OPTCOMMA } RPAR;CSTRING ::= '"' .* '"' ;OSTRING ::= ''' ([09afAF][09afAF])* ''O' ;HSTRING ::= ''' [09afAF]* ''H' ;BSTRING ::= ''' [01]* ''B' ;INTEGER ::= '-' [09]* | [09]* ;BOOLEAN ::= 'TRUE' | 'FALSE' | 'true' | 'false' ;LPAR ::= '{' | '(' ;RPAR ::= '}' | ')' ;OPTCOMMA ::= ',' | ;OMIT ::= '-';The CSTRING type is by default IA5String, use TYPE to override with a different character string type. Note also that in TTCN, the character string types are compatible and it may not be necessary to make the distinction.
Examples of this encoding include:
1 FALSE MyINTEGER 23 BIT4 '1001'B { 1 , 2 , 3 } ASP1 { 711, TRUE } ASP2(BIT4 '1001'B PDU1(1 2))
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |