ETSI's Bug Tracker |
Anonymous | Login | Signup for local Mantis account | 02-05-2024 20:19 IST |
Main | My View | View Issues | Change Log | Roadmap | Monitor project |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0007853 | Ext Pack: Advanced Parametrization (ES 202 784) | Clarification | public | 07-08-2019 09:40 | 17-12-2019 10:22 | ||||
Reporter | Jacob Wieland - Spirent | ||||||||
Assigned To | Jens Grabowski | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | v1.6.1 (published 2017-04) | |||||||
Summary | 0007853: classes should allow type parameterization | ||||||||
Description | If a TTCN-3 class shall be mapped to an external class which is generic over types, it should be possible to also model this in TTCN-3 as a generic class. This will allow mapping of external generic libraries like collections to TTCN-3 without loss of generality. Example: type external class @abstract Iterator<T> { function hasNext() return boolean; function next() return T; } type external class @abstract Container<T> { function iterator() return Iterator<T>; function size() return integer; function isEmpty() return boolean; } type external class Set<T> extends Container<T> { } type external class List<T> extends Container<T> { } type external class MapEntr<Key, Value> { function getKey() return Key; function getValue() return Value; } type external class Map<Key,Value> { function get(Key key) return Value; function put(Key key, Value val); function keySet() return Set<Key>; function values() return List<Value>; function entrySet() return Set<MapEntry<Key, Value>>; function containsKey(Key key) return boolean; function contains(Value val) return boolean; } | ||||||||
Tags | No tags attached. | ||||||||
TS version | |||||||||
Clause Reference(s) | |||||||||
Source (company - Author) | |||||||||
Attached Files | CR7853.docx [^] (153,932 bytes) 08-08-2019 10:02 CR7853-2.docx [^] (179,778 bytes) 08-08-2019 11:29 | ||||||||
Notes | |
(0015429) Jacob Wieland - Spirent (reporter) 08-08-2019 10:03 |
please review |
(0015432) Tomas Urban (developer) 08-08-2019 11:32 |
The proposal is fine. I only changed the font from bold to normal in the example (only keywords should be bold) and added p_ prefixes to the parameters to follow the standard naming convention. Please check. |
Issue History | |||
Date Modified | Username | Field | Change |
07-08-2019 09:40 | Jacob Wieland - Spirent | New Issue | |
07-08-2019 09:40 | Jacob Wieland - Spirent | Status | new => assigned |
07-08-2019 09:40 | Jacob Wieland - Spirent | Assigned To | => Jacob Wieland - Spirent |
07-08-2019 12:30 | Kristóf Szabados | Project | Ext Pack: Object-oriented features (ES 203 790) => Ext Pack: Advanced Parametrization (ES 202 784) |
08-08-2019 10:02 | Jacob Wieland - Spirent | File Added: CR7853.docx | |
08-08-2019 10:03 | Jacob Wieland - Spirent | Note Added: 0015429 | |
08-08-2019 10:03 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Tomas Urban |
08-08-2019 10:03 | Jacob Wieland - Spirent | Status | assigned => confirmed |
08-08-2019 11:29 | Tomas Urban | File Added: CR7853-2.docx | |
08-08-2019 11:32 | Tomas Urban | Note Added: 0015432 | |
08-08-2019 11:32 | Tomas Urban | Assigned To | Tomas Urban => Jacob Wieland - Spirent |
08-08-2019 11:32 | Tomas Urban | Category | General => Clarification |
08-08-2019 13:12 | Jacob Wieland - Spirent | Status | confirmed => resolved |
08-08-2019 13:12 | Jacob Wieland - Spirent | Fixed in Version | => v1.6.1 (published 2017-04) |
08-08-2019 13:12 | Jacob Wieland - Spirent | Resolution | open => fixed |
08-08-2019 13:12 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Jens Grabowski |
17-12-2019 10:22 | Jens Grabowski | Status | resolved => closed |
MantisBT 1.2.14 [^] Copyright © 2000 - 2024 MantisBT Team |