ETSI's Bug Tracker - Part 06: TTCN-3 Control Interface
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0000364 | Part 06: TTCN-3 Control Interface | Technical | public | 22-11-2006 15:27 | 12-12-2008 11:38

Reporter | Stephan Schulz |
Assigned To |  |
Priority | high | Severity | major | Reproducibility | always
Status | closed | Resolution | won't fix |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v3.2.1 (published 2007-02) | Fixed in Version |  |
Clause Reference(s) | 7.2.2.1
Source (company - Author) | Stephan Tobies, Nokia

Summary | 0000364: Add operations to the TciType Interface
Description | The current interface of Type does not have support for the retrieval of the field names for structured types, and also no possibility to retrieve the type of a field. This makes is unnecessarily hard to, e.g., obtain attribute values for a types fields.
Steps To Reproduce |

Additional Information

7.2.2.1 Abstract TTCN-3 data types
According to the present document TTCN-3 types, either predefined or user-defined, will be represented at the TCI interfaces using the abstract data type Type.
For the abstract data type Type a set of operations is defined to:
ï¿½ reference predefined and user-defined TTCN-3 data types; and to
ï¿½ create and maintain TTCN-3 values.
The following operations are defined for the abstract data type Type:
TciModuleIdType getDefiningModule() Returns the module identifier of the module in which type is defined. Returns the distinct value null if type is a TTCN-3 base type, e.g. boolean, integer, etc.)
TString getName() Returns the name of the type as defined in the TTCN-3 module
TciTypeClassType getTypeClass() Returns the type class of the respective type. A value of TciTypeClassType can have one of the following constants: ADDRESS, ANYTYPE, BITSTRING, BOOLEAN, CHAR, CHARSTRING, COMPONENT, ENUMERATED, FLOAT, HEXSTRING, INTEGER, OBJID, OCTETSTRING, RECORD, RECORD_OF, SET, SET_OF, UNION, UNIVERSAL_CHARSTRING, UNIVERSAL_CHAR, VERDICT
Value newInstance() Returns a freshly created value of the given type. This initial value of the created value is undefined
TString getTypeEncoding() Returns the type encoding attribute as defined in the TTCN-3 module
TString getTypeEncodingVariant() This operation returns the value encoding variant attribute as defined in TTCN-3, if any. If no encoding variant attribute is defined the distinct value null is returned
TStringSeq getFieldNames() If the type is of type class SET, RECORD, or UNION, this operation returns the field names for that type. The empty sequence is returned, if the type is a record, set, or union with no fields. The distinct value null is returned if the type is of a different type class.
Type getFieldType() If the type is of type class SET, RECORD, or UNION, this operation returns the type of the specified field of that type. The distinct value null is returned if the type is of a different type class or does not have a field of that name.
Type getElementType() If the type is of type class RECORD OF, SET OF, ADDRESS, or ARRAY, this operation returns the type of the type's element type. The distinct value null is returned if the type is of a different type class.

Tags | No tags attached.

Relationships

related to | 0000374 | closed |  | Request for adding tciGetModuleParType to the API

Attached Files |

Issue History
Date Modified | Username | Field | Change
22-11-2006 15:27 | Stephan Schulz | New Issue |
22-11-2006 15:27 | Stephan Schulz | Clause Reference(s) | => 7.2.2.1
22-11-2006 15:27 | Stephan Schulz | Source (company - Author) | => Stephan Tobies, Nokia
22-11-2006 15:29 | Stephan Schulz | Status | new => closed
22-11-2006 15:29 | Stephan Schulz | Note Added: 0000287 |
22-11-2006 15:29 | Stephan Schulz | Resolution | open => won't fix
24-11-2006 13:41 | Stephan Schulz | Relationship added | related to 0000374
12-12-2008 11:38 | Ina Schieferdecker | Target Version | => Edition 3.2.1
12-12-2008 11:38 | Ina Schieferdecker | Additional Information Updated |

Notes

(0000287)
Stephan Schulz
22-11-2006 15:29

Rejected. If the problem still exists a CR with extension and generalization of the TCI type interface should be provided.