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

ID | Project | Category | View Status | Date Submitted | Last Update
0007055 | Part 01: TTCN-3 Core Language | New Feature | public | 13-05-2015 10:42 | 15-12-2015 09:54

Reporter | Gyorgy Rethy |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.7.1 (published 2015-06) |
Target Version | v4.8.1 (published 2016-07) | Fixed in Version | v4.8.1 (published 2016-07) |
Clause Reference(s) | 8.2.1
Source (company - Author) | L.M.Ericsson

Summary | 0007055: Allow component and default types in module parameters

Description

Currently the standard disallows port, default and component types in module parameters. Clause 8.2.1 restriction
"b) Module parameters shall not be of port type, default type or component type."
However, using a field of component type in a type definition also used for a module parameter have a use case:
The type SimulatedNodes below contains the parameters of the nodes simulated from TTCN-3, including their component references. Of course, actual component reference values are assigned to the simulated nodes "database" at component creation, but other parameters are assigned semi-statically, during runtime configuration of the test system.
Forcing the users to define parallel types - which are not compatible to each other by definition -, one for the simulated nodes "database" and one for the runtime parameters of the nodes (or one per node), would be very user-unfriendly, complicating the code unnecessarily.
modulepar SimulatedNodes tsp_SimulatedNodes;
type record SimulatedNode
{
charstring name,
NodeInfo info,
IPL4_Sockets sockets
}
type union NodeInfo
{
ENodeB eNodeB,
RNC rnc,
DiameterNode diameterNode,
SGSN_MME sgsn_mme,
SGW sgw,
CBC cbc,
RADIUS radius
}
type record RNC
{
Interface iu_ss7,
RNC_Mapping_CT mapping_ct,
integer sccp_connId,
octetstring trafficModeType,
octetstring routingContext,
RAI rai,
OCT2 sac,
BIT24 iuSigConnId,
integer id
}

Steps To Reproduce |
Additional Information | Proposed solution: allow default and component types in module parameters, but their runtime configuration values shall be null. In clause 8.2.1 restrictions: b) Module parameters shall not be of, and shall not contain at any level of embedding port types. ... f) <new> Module parameters of default or component types shall only be initialized with the special value null.
Tags | No tags attached.
Relationships |
Attached Files | CR7055_resolution.docx (169,887) 15-10-2015 14:21 http://oldforge.etsi.org/mantis/file_download.php?file_id=3322&type=bug CR7055_resolution_v2.docx (170,520) 16-10-2015 10:44 http://oldforge.etsi.org/mantis/file_download.php?file_id=3330&type=bug

Issue History
Date Modified | Username | Field | Change
13-05-2015 10:42 | Gyorgy Rethy | New Issue |
13-05-2015 10:44 | Gyorgy Rethy | Product Version | => v4.7.1 (published 2015-06)
13-05-2015 10:44 | Gyorgy Rethy | Target Version | => v4.8.1 (published 2016-07)
03-08-2015 13:56 | Gyorgy Rethy | Note Added: 0013034 |
03-08-2015 13:56 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
03-08-2015 13:56 | Gyorgy Rethy | Status | new => assigned
15-10-2015 14:20 | Jacob Wieland - Spirent | Assigned To | Gyorgy Rethy => Jacob Wieland - Spirent
15-10-2015 14:21 | Jacob Wieland - Spirent | File Added: CR7055_resolution.docx |
15-10-2015 14:21 | Jacob Wieland - Spirent | Note Added: 0013413 |
15-10-2015 14:21 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Axel Rennoch
15-10-2015 14:21 | Jacob Wieland - Spirent | Status | assigned => confirmed
16-10-2015 10:44 | Axel Rennoch | File Added: CR7055_resolution_v2.docx |
16-10-2015 10:49 | Axel Rennoch | Note Added: 0013426 |
16-10-2015 10:53 | Axel Rennoch | Note Added: 0013427 |
16-10-2015 10:53 | Axel Rennoch | Status | confirmed => resolved
16-10-2015 10:53 | Axel Rennoch | Fixed in Version | => v4.8.1 (published 2016-07)
16-10-2015 10:53 | Axel Rennoch | Resolution | open => fixed
16-10-2015 10:53 | Axel Rennoch | Assigned To | Axel Rennoch => Gyorgy Rethy
15-12-2015 09:54 | Gyorgy Rethy | Note Added: 0013632 |
15-12-2015 09:54 | Gyorgy Rethy | Status | resolved => closed

Notes

(0013034)
Gyorgy Rethy
03-08-2015 13:56

STF discussion 03-08-2015: agreed, implement proposed change.

(0013413)
Jacob Wieland - Spirent
15-10-2015 14:21

please review and resolve

(0013426)
Axel Rennoch
16-10-2015 10:49

Proposd text changes are fine; in resolution v2 there are just some more font changes for the keywords.

(0013427)
Axel Rennoch
16-10-2015 10:53

The resolution v2 resolves the CR, please close.

(0013632)
Gyorgy Rethy
15-12-2015 09:54

Added to draft V4.7.4