ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0000424 | Part 01: TTCN-3 Core Language | New Feature | public | 24-11-2006 14:51 | 12-03-2008 10:24

Reporter | Stephan Schulz |
Assigned To | Ina Schieferdecker |
Priority | high | Severity | feature | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v3.1.1 (published 2005-06) |
Target Version | v3.3.2 (published 2008-04) | Fixed in Version | v3.3.2 (published 2008-04) |
Clause Reference(s) | 6.3.3.0
Source (company - Author) | Siemens

Summary | 0000424: operations on "record of" structures

Description

Currently there are only limited operation on "record of" structures. It is rather clear that how could one element be added into the record of sturcure. But there is on explicit statement on how to remove certain element. It would be useful that the operations on "record of" could be explicitly defined.
Currently only assignments to "record of" variables are possible, e.g.
var MyRecordOf MyRecordVar := { 0, 1, 2, 3, 4 };
// The assignment
MyRecordVar := { 0, 1, -, 2, omit };
// will change the value of MyRecordVar to { 0, 1, 2 <unchanged>, 2};
// Note, that the 3rd element would be undefined if had had no previous assigned value. (6.3.3.0)

Steps To Reproduce |

Additional Information

Proposed Solution:
The operations on "record of" should be explicitly defined. From the current situation we can only guess that the "omit" assignment to the 5th element in the list removes it. What happens if "omit" is assigned to an element in the middle of the list? Besides assignments, there should be operations to add/remove elements to/from a "record of" list, e.g. using the equivalent array notation:
// add a new element
MyRecordVar[sizeof(MyRecordVar)] := 5;
// remove an element at the end of the list
MyRecordVar[sizeof(MyRecordVar)-1] := omit;
// remove an element in the middle of the list
MyRecordVar[0] := omit; // ???

Tags | No tags attached.

Relationships

related to | 0000382 | closed |  | Iterators for record of/set of structures

Attached Files |

Issue History
Date Modified | Username | Field | Change
24-11-2006 14:51 | Stephan Schulz | New Issue |
24-11-2006 14:51 | Stephan Schulz | Clause Reference(s) | => 6.3.3.0
24-11-2006 14:51 | Stephan Schulz | Source (company - Author) | => Siemens
24-11-2006 14:51 | Stephan Schulz | Note Added: 0000324 |
24-11-2006 14:51 | Stephan Schulz | Status | new => feedback
24-11-2006 15:01 | Stephan Schulz | Note Added: 0000327 |
24-11-2006 15:05 | Stephan Schulz | Relationship added | related to 0000382
15-06-2007 19:17 | Stephan Schulz | Status | feedback => assigned
15-06-2007 19:17 | Stephan Schulz | Assigned To | => Ina Schieferdecker
13-10-2007 19:17 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => developer_u
15-10-2007 13:32 | Ina Schieferdecker | Note Added: 0003614 |
17-10-2007 12:41 | user10 | Assigned To | developer_u => Thomas DeiÃŸ
18-10-2007 12:13 | Ina Schieferdecker | Target Version | => Edition 3.3.1 (not yet published)
19-10-2007 13:12 | Gyorgy Rethy | Resolution | open => fixed
19-10-2007 13:13 | Gyorgy Rethy | Note Added: 0003701 |
19-10-2007 13:13 | Gyorgy Rethy | Note Added: 0003702 |
03-12-2007 12:09 | Jens Grabowski | Assigned To | Thomas DeiÃŸ => Ina Schieferdecker
04-12-2007 16:43 | Ina Schieferdecker | Status | assigned => resolved
06-12-2007 16:26 | Gyorgy Rethy | Assigned To | Ina Schieferdecker => Thomas DeiÃŸ
06-12-2007 16:26 | Gyorgy Rethy | Status | resolved => feedback
06-12-2007 16:26 | Gyorgy Rethy | Resolution | fixed => reopened
06-12-2007 16:26 | Gyorgy Rethy | Note Added: 0004390 |
06-12-2007 17:43 | Thomas DeiÃŸ | Note Added: 0004400 |
06-12-2007 17:44 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Ina Schieferdecker
06-12-2007 17:44 | Thomas DeiÃŸ | Status | feedback => resolved
06-12-2007 17:44 | Thomas DeiÃŸ | Resolution | reopened => fixed
06-12-2007 18:05 | Ina Schieferdecker | Status | resolved => closed
06-12-2007 18:05 | Ina Schieferdecker | Fixed in Version | => Edition 3.3.1 (not yet published)
12-03-2008 10:22 | user10 | Fixed in Version | Edition 3.3.1 --will not be published, see 3.3.2 => Edition 3.3.2 (not yet published)
12-03-2008 10:24 | user10 | Target Version | Edition 3.3.1 --will not be published, see 3.3.2 => Edition 3.3.2 (not yet published)

Notes

(0000324)
Stephan Schulz
24-11-2006 14:51

Waiting for providers response

(0000327)
Stephan Schulz
24-11-2006 15:01

To separate problem is identified: - defining the semantics of omit in the contecx of record/set of; - predefined functions for inserting and removing elements to/from reocr/set of

(0003614)
Ina Schieferdecker
15-10-2007 13:32

To be considered in the broader context of operations on sequence-like types.

(0003701)
Gyorgy Rethy
19-10-2007 13:13

STF solution text is in the common file attached to CR383

(0003702)
Gyorgy Rethy
19-10-2007 13:13

STF solution text is in the common file attached to CR383

(0004390)
Gyorgy Rethy
06-12-2007 16:26

Functionality and example to be checked

(0004400)
Thomas DeiÃŸ
06-12-2007 17:43

The example is actually incorrect, omit cannot be used inside a record of. The example in the standard has been corrected. An element in a record of can be removed by using the function replace, which has been extend from strings to all list types. The solution is integrated into the solution of CR 383.