SimuCom code generation for 'MinimumEventExample' broken. action method not applicable for arguments

Description

When running the 'MinimumEventExample' model, the simucom code generation fails due to a type mismatch of passed paramter to method 'action'

How to reproduce:
1. start Eclipse runtime instance
2. Import 'MinimumEventExample'
3. Run simulation by executing launch config 'MinimuEventExample.launch'

Note: the problem is cause by passing a wrong context parameter to the action method.
The context should be 'ctx' (type: <Allocation>RuntimeContext, which extend from SimuComContext) instead of this.myContext (type: = IEventDistributionSource_EventGroup_<component>Sender_<>Context)

Affected file: SimSEFFBodyXpt.xtend l. 207 and l.224
Solution: the parameter 'this.myContext' should be replaced by 'ctx'

Update: this problem is also reproducable for the MediaStore model

Environment

None

Activity

Show:
Martina Rapp
November 30, 2020, 10:35 AM

Created follow-up task to further investigate problem.

Martina Rapp
November 30, 2020, 10:35 AM

Could not reproduce the originally reported problem in SIMUCOM-49. Thus this task will be closed again.

Instead a different following problem occured:

Stephan Seifermann
November 17, 2020, 2:36 PM

Issue seems to still exist. See

Martina Rapp
October 22, 2020, 2:50 PM
Edited

After correcting the problem, the code compiles again. But it resolves in a follow-up runtime error during simulation execution of MinimumEventExample (see ticket )

Martina Rapp
October 22, 2020, 2:45 PM

Problem was detected while working on issue

Fixed

Assignee

Martina Rapp

Reporter

Martina Rapp

Labels

None

Requirement Category

None

External issue URL

None

Fix versions

Affects versions

Priority

Major