![]() |
![]() |
![]() |
![]() |
![]() |
The TTCN Access Notation
The notation used to describe a node in TTCN Access is described as below (a simple BNF for an example node):
Node ::= TypeReference Assign TypeAssignmentTypeReference ::= Identifier--has to start with an upper case letterAssign ::= "::="TypeAssignment ::= ClassType ClassBody | "TERMINAL"ClassType ::= "SEQUENCE" | "SEQUENCE OF" | "CHOICE"ClassBody ::= "{" { Slot }+ "}"Slot ::= SlotName TypeReference[ "OPTIONAL" | "FIELD"]SlotName ::= Identifier--has to start with a lower case letterStructTypeDef ::= SEQUENCE {structId FullIdentifier FIELDcomment Comment FIELDelemDcls ElemDclsdetailedComment DetailedComment FIELD}
- A TTCN Access node type is defined in Bold starting with an upper case letter.
- A node can be of type SEQUENCE, SEQUENCE OF or CHOICE. A SEQUENCE contains an ordered collection of elements, a SEQUENCE OF a vector of elements (possibly empty) and a CHOICE is a collection of possible elements.
- Each slot in a TypeAssignment starts with a SlotName followed by a SlotType. Each SlotType has a corresponding node in TTCN Access.
- The SlotType can be followed by a FIELD symbol meaning that the slot is associated with a field in the TTCN-GR format.
- The SlotType can be followed by a OPTIONAL symbol meaning that the slot can be absent.
- Each slot is followed by a page reference to the node corresponding to the SlotType. This page reference is not a part of the Abstract Data Structure.
For more information see The TTCN Access Class Reference Manual.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |