Logo etsi

ETSI's Bug Tracker

Notice: information submitted on the ETSI issue Tracker may be incorporated in ETSI publication(s) and therefore subject to the ETSI IPR policy.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007853Ext Pack: Advanced Parametrization (ES 202 784)Clarificationpublic07-08-2019 09:4017-12-2019 10:22
ReporterJacob Wieland - Spirent 
Assigned ToJens Grabowski 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Versionv1.6.1 (published 2017-04) 
Summary0007853: classes should allow type parameterization
DescriptionIf 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;
}
TagsNo tags attached.
TS version
Clause Reference(s)
Source (company - Author)
Attached Filesdocx file icon CR7853.docx [^] (153,932 bytes) 08-08-2019 10:02
docx file icon CR7853-2.docx [^] (179,778 bytes) 08-08-2019 11:29

- Relationships

-  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
Powered by Mantis Bugtracker